Skip to content

Spot Z position is not set in Roi Manager  #6

@CellKai

Description

@CellKai

Hi, I noticed that when adding the spot ROIs to the Roi Manager, their Z-position is not set explicitly, which can lead to this information getting lost in some cases, see related image.sc forum thread: https://forum.image.sc/t/rois-added-to-roi-manager-by-macro-do-not-maintain-all-properties/37533/5

Example issue: Run RS fish including"add ROIs to RoiManager", then save the image using Bio-Formats as ome.tif including the ROIs.

This issue can be solved by setting the spots z positions explicitly by adding a line in RS-FISH/src/main/java/gui/Radial_Symmetry.java after line 344

imp.setSliceWithoutUpdate( 1 + (int)Math.round( spot.getDoublePosition( 2 ) ) );

e.g.: p.setPosition( 1 + (int)Math.round( spot.getDoublePosition( 2 ) ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions