tomviz icon indicating copy to clipboard operation
tomviz copied to clipboard

Binning tilt images does not change pixel size

Open ercius opened this issue 2 years ago • 1 comments

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

ercius avatar Sep 29 '23 18:09 ercius

Hi @ercius Can I take the issue ?

dikshasaraswa avatar Dec 05 '23 07:12 dikshasaraswa