Skip to content

Binning tilt images does not change pixel size #2293

@ercius

Description

@ercius

Describe the bug
When you use the binning function called "Bin tilt images x2" and "Bin Volume x2" the data dimensions are changed incorrectly. The full size of the data is divided by two when instead the pixel size should be reduced by two.

Example data loaded as-is:
bin0

object size:
image

Example data binned by 2:
bin2

Object size:
image

Note that the scale cube is the same size in both screenshots while the object reduces in size by 2x. The physical extent of the object should not change when it is binned. Instead, fewer pixels extend across the same physical dimension leading to the pixel/voxel size being increased by 2.

To Reproduce
Steps to reproduce the behavior:

  1. Load example tilt or reconstruction data
  2. Select Data Transforms -- Bin Volume x2 OR Select Tomography -- Bin Tilt Images x2
  3. Check the size of the object
  4. The extent of the object is half the size when it should be unchanged.

Expected behavior
The physical extent of the object should be unchanged.

Desktop (please complete the following information):

  • Operating system: Linux
  • Tomviz version: 1.10 and 2.0rc3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions