Open DanicaSTFC opened 1 month ago
What is an image of dimension 1? A vector?
What is an image of dimension 1? A vector?
It means a 2D image, where the third dimension is 1. This is related to single image reconstruction and visualisation of the average slice in the CIL-GUI.
Problem:
When image of dimension 1 is visualised in the viewer, the following error appears:
Debugging:
This error appears only the first time the viewer is launched. Even when mamba is restarted the error disappears
This error does not appear when the CILViewer2D class is used.
To print information:
Proposed solution:
The error is NOT raised inside the converter
numpy2vtkImage
, but it is generated inside this method. Here, the array vtkarray is added to an existing array e.g. Extent: (760, 760, 0, 1120, 0, 0) Number of Points: 1121 Number of Tuples in Scalars: 1121 Array 0 name = ImageScalars, Number of Tuples = 1121Image.The number or arrays can be checked with the following:
To resolve the bug the first array needs to be deleted.
The error is raised inside:
the method
_visualise
in CIL-GUIIt is inside
displayImage
in MainWindow in CIL-GUI, hence the method is in the viewer.NOT in
updateViewerCoordsDockWidgetWithCoords
It is in
viewer.setInputData(image)
It is in
viewer.installPipeline()
(the error is shown 2 times because there is 2d viewer and a 3D viewer and both have this method)It is in
viewer.installImageWithOverlayPipeline
---> self.ia.Update()