CamiTK Community Edition issueshttps://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/issues2023-06-02T16:49:24+02:00https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/issues/101viewer extension dependencies in wizard2023-06-02T16:49:24+02:00Maxime Calkaviewer extension dependencies in wizard## About you
Occasional CamiTK developer
## Product
Wizard
## Overview
Add in the dependencies of the extension the possibilities to link a viewer extension.
## Relevant logs and/or screenshots
Already implemented:
![image](/uploa...## About you
Occasional CamiTK developer
## Product
Wizard
## Overview
Add in the dependencies of the extension the possibilities to link a viewer extension.
## Relevant logs and/or screenshots
Already implemented:
![image](/uploads/d5dac9ba6884a5565013cbc41f370457/image.png)
Needed:
![image](/uploads/4c4851f8c2277b4c451ecd4129a12339/image.png)Maxime CalkaMaxime Calkahttps://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/issues/65Unexpected image behaviors in Viewers2023-05-15T15:59:39+02:00Emmanuel PromayonUnexpected 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...## 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)
[testImages.zip](/uploads/dbdae0b5992f6f646f9f890d03bd277e/testImages.zip)
## 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](/uploads/dbdae0b5992f6f646f9f890d03bd277e/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.develophttps://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/issues/59Auto center option in InteractiveViewer2018-06-15T18:17:15+02:00Emmanuel PromayonAuto center option in InteractiveViewer## About you
This is a feature request that summarizes two bugs submitted on the old bugzilla:
- "InteractiveViewer option for specifying whether the scene must be centered when a Component is added" submitted by Hadrien Oliveri on 2015...## About you
This is a feature request that summarizes two bugs submitted on the old bugzilla:
- "InteractiveViewer option for specifying whether the scene must be centered when a Component is added" submitted by Hadrien Oliveri on 2015-07-07
- "Impossible to scroll through a zoomed image without the image automatically de-zooming" submitted by Nikolai on 2015-01-16
## Product:
imp
## Overview:
### Hadrien's submission
> Hello everyone,
> I'm developping a surgery simulator, and I need to add Components during the simulation. By default, the scene is
> recentered by the InteractiveViewer each time a Component is added (which is quite annoying). I modified this locally in
> my sdk and it works well for my ad hoc needs.
>
> I would be great if recentering the scene by default could be specified in the Imp user preferences for example.
>
> Thank you
>
> -- Hadrien Oliveri
### Nikolai's submission
> Imp de-zooms automatically when it's not expected. In this case, the 2D medical viewer panes de-zoom when you try to scroll through the image's volume with the vertical slider.
>
>
> Steps to Reproduce:
> Open Imp. Open any 3D image. Zoom in on any of the 2D viewers using the scroll wheel of your mouse. Move the vertical slider to another image plane. You will see the viewer de-zoom automatically.
>
>
> The viewer should stay zoomed while scrolling with the sliders.
>
> -- Nikolai
## Interpretation & Possible fixes
Both problems can be solved by implementing a special "Auto Center" option for the `InteractiveViewer`s.
Auto center
- [ ] When a new component is loaded (default is yes)
- [ ] When a slice is changed (default is yes)
As well as a "Center" Icon on the toolbar or the slice viewer side bar.
Depends on #17