itk-vtk-viewer icon indicating copy to clipboard operation
itk-vtk-viewer copied to clipboard

Reset Camera resizes image with Distance Widget

Open seattlewayne opened this issue 4 years ago • 4 comments

I saw some odd behavior today. Performing Camera Reset shrinks the display of the image when using the Distance Widget.

Steps to reproduce:

  • Load a .vti image in the itk-vtk-viewer.
  • Switch view to X plane (or Y or Z)
  • Enable the Distance Widget and take a measurement on the image
  • Click Reset Camera.

Result: Image shrinks substantially

seattlewayne avatar Jul 31 '20 18:07 seattlewayne

https___kitware github io_itk-vtk-viewer_app_

@seattlewayne is the above what you observe or is there a bigger change?

thewtex avatar Aug 05 '20 02:08 thewtex

I am seeing a much bigger change. After Reset Camera the image is rendered a quarter the size (or less) than the default. I have attached a simple test file that shows this behavior.

test.zip

seattlewayne avatar Aug 05 '20 17:08 seattlewayne

I bet the issue is related to the aspect ratio of the data. (That I did not look at).

jourdain avatar Aug 05 '20 17:08 jourdain

The test file provided has a uniform aspect ratio on all three axes.

seattlewayne avatar Aug 06 '20 20:08 seattlewayne