You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open saved ROI file, would find POI position z is 0.0, which should be 50.0
Expected behavior (i.e. solution)
Solution1: z-axis value of the poi created by mouse clicked, would be set as same as scanner z position, below code should be a quick fix:
line 572 in "gui/poimanger/poimangui.py"
#TODO: Z position from ROI origin is 0.new_pos=self.poimanagerlogic().roi_originnew_pos[2] =self.poimanagerlogic().scanner_position[2]
Solution2: Not so sure, but would restore clicked poi z-value from shifted ROI:
line 572 in "gui/poimanger/poimangui.py"
#TODO: restore z-axis value from shift origin postition ?new_pos=self.poimanagerlogic().roi_originnew_pos[2] =self.poimanagerlogic().scanner_position[2] -new_pos[2]
Other Comments
Does "roi_origin" most likely mean as "default shift"? Since its default value is np.zeros(3)
The text was updated successfully, but these errors were encountered:
This bug is affected because, as you mentioned, when you Add POI's or click a new POI on the confocal image, it only saves the x, y position into the roi_origin, and since, by default, the values are set to zero.
The z position is not saved into the POI file, which in this case, should be a fixed value (focal plane e.g. Z_pos = 50.00) and take it from ROI origin.
So simply adding new_pos[2] = self.poimanagerlogic().scanner_position[2] line 629 "gui/poimanger/poimangui.py"
625# Z position from ROI origin, X and Y positions from click event626new_pos=self.poimanagerlogic().roi_origin627new_pos[0]=pos.x()628new_pos[1]=pos.y()629new_pos[2]=self.poimanagerlogic().scanner_position[2]#Add this line
To check if the value is stored in the POI file, check on the console typing.
In[1]: poimanagerlogic.poi_positions
and the last value should be different from zero.
(Example 3 point)
#512 (comment)
This bug is affected because POI on the confocal image only saves the x, y position into the roi_origin, and since, by default, the values are set to zero. Since the z position is not saved into the POI file (which should be a fixed value) and take it from ROI origin.
So simply adding new_pos[2] = self.poimanagerlogic().scanner_position[2] line 629 "gui/poimanger/poimangui.py" will fix this bug.
What is affected by this bug?
When does this occur?
Where on the platform does it happen?
How do we replicate the issue?
Expected behavior (i.e. solution)
line 572 in "gui/poimanger/poimangui.py"
line 572 in "gui/poimanger/poimangui.py"
Other Comments
The text was updated successfully, but these errors were encountered: