Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binning tilt images does not change pixel size #2293

Open
ercius opened this issue Sep 29, 2023 · 1 comment
Open

Binning tilt images does not change pixel size #2293

ercius opened this issue Sep 29, 2023 · 1 comment

Comments

@ercius
Copy link
Collaborator

ercius commented Sep 29, 2023

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
@dikshasaraswa
Copy link

Hi @ercius Can I take the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants