Skip to content

Cell segmentation mask doesn't fit image #267

@pikapika505

Description

@pikapika505

As the automatic cell segmentation did not work in SAW count, we manually labeled cells in Napari using the initial SN.tif (DAPI) and SN_IF.tif (FB28_IF) images. In Napari, all three images overlap and all files have the same sizes.

In the StereoMap4 Image Processing step, I loaded the SN.tif DAPI and SN_IF.tif FB28_IF files, and then opened the manually labeled SN_mask.tif file. However, the mask appears smaller and shifted relative to the images.

Image

Then I registered images according to 254 issue and did:

path/saw/saw-8.2.1/anaconda/bin/python path/saw/saw-8.2.1/lib/register/register/main.pyc
 -i SN_DAPI.tif,SN_IF_mask16.tif 
-o . -w False --sn D05508E2 
-v path/outs/feature_expression/D05508E2.raw.gef 

This generated SN_DAPI_regist.tif. I then used SN_DAPI_regist.tif in StereoMap, but the mask still appears smaller and shifted.

Image

What should I do to properly use my cell segmentation mask?

Another thing I noticed is that although each cell was manually drawn and labeled in Napari, and the .tif file was converted to a binary .tif because StereoMap only accepts binary mask files, the cells appear merged in StereoMap.

Image

Why does this happen?

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