Unexpected image behaviors in Viewers
About you
Bug filed on Bugzilla by @jaffarda on 2016-04-22
Overview:
when looking at an image in 2D viewer (axial for exemple)
- pb1/ border voxels are only half-sized (both in 2D and in 3D)
- pb2/ border box does not adjust to displayed image
- pb3/ picking is not possible a all places inside pixels
- pb4/ picking is possible outside the image
- pb5/ picking actor (crossing bars are not always visible)
attached images are very small in number of voxels for a better view provided:
- testImage.bmp (the expected visble result)
- testData.raw (raw file for 2D images)
- testData3D.raw (raw file for 3D image)
- test1.mhd ( image 5x5x1 black & white grid, spacing 10x10x1)
- test2.mhd ( image 5x5x1 black & white grid, spacing 1x1x1)
- test_3D.mhd ( image 5x5x5 black & white grid, spacing 1x1x1)
Steps to Reproduce
- step 1/ Load test1.mhd in camitk
- step 2/ click on centralViewer and press I (to toogle off image interpolation)
- step 3/ open axial viewer (ctrl + 2)
- step 4/ Pick a point (ctrl + click) close to the middle of a pixel
- step 5/ Pick a point (ctrl + click) close to the border of a pixel
- step 6/ Pick a point (ctrl + click) close to the middle of a pixel but on the outside of the displayed image
- step 7/ Load test2.mhd, open axial viewer, toogle off interpolation
- step 8/ Pick a point (ctrl + click) close to the middle of a pixel
Actual VS Expected Result
- at step 2/ we see pb1 all the pixels are not the same size but they should
- at step 3/ we see pb1 all the pixels are not the same size but they should
- at step 3/ we see pb2 the border does not match the image but should
- at step 5/ we see pb3 picking works close to centre of pixel but nowhere else picking should be available everwhere
- at step 6/ we see pb4 it is possible to pick a point outside the image, it should not
- at step 8/ we see pb5 when picking works (see with pb3) the actor (small lines) are not visible, it should
Relevant logs and/or screenshots:
See testImages.zip
Interpretation & Possible fixes:
- pb1/ maybe miss set of dimensions?
- pb2/ probably linked to pb1 the boxing seems to be the good size if pixels were correctly displayed
- pb3/ maybe bad use of pixel size?
- pb4/ probably linked to pb1 the selection box should be in pixel if pb1
- pb5/ no ideas
CamiTK Version:
Filed for CamiTK 3.6, but confirmed still on 4.1.develop
Edited by Emmanuel Promayon