navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.log_files
    • navigate.model
    • navigate.tools
      • navigate.tools.common_dict_tools
      • navigate.tools.common_functions
      • navigate.tools.decorators
      • navigate.tools.file_functions
      • navigate.tools.image
      • navigate.tools.linear_algebra
        • navigate.tools.linear_algebra.affine_rotation
        • navigate.tools.linear_algebra.affine_shear
      • navigate.tools.main_functions
      • navigate.tools.multipos_table_tools
      • navigate.tools.sdf
      • navigate.tools.slicing
      • navigate.tools.waveform_template_funcs
      • navigate.tools.xml_tools
    • navigate.view
navigate
  • Software API
  • navigate.tools
  • navigate.tools.linear_algebra
  • navigate.tools.linear_algebra.affine_shear
  • View page source

navigate.tools.linear_algebra.affine_shear

navigate.tools.linear_algebra.affine_shear(dz, dy, dx, dimension='YZ', angle=0)

Calculate the general 3D affine transform for shear.

Returns a shear matrix for a shear about the x, y, and z axes.

Affine Transform for shear has the following form:

[1 hxy hxz, 0, hyx 1 hyz, 0, hzx hzy 1, 0, 0, 0, 0, 1]

Parameters:
  • dz (float) – Voxel size in Z.

  • dy (float) – Voxel size in Y.

  • dx (float) – Voxel size in X.

  • dimension (str, optional) – The dimension to shear in. Options are “XY”, “XZ”, and “YZ”.

  • angle (float, optional) – The angle to shear in degrees.

Returns:

shear_transform – A 4x4 affine transformation matrix.

Return type:

numpy.ndarray

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.