Export Boundary Pixel Location of Segmented mask

Dear Community,

Is there any way to extract “Boundary Pixel Location” of segmented cells. I want “Excel Sheet” of x,y coordinate of all pixels which are at the boundary of the cell?

PS: Particularly I’m interested in function like B = bwboundaries(BW) in cell profiler.

Hi,

That’s not currently possible in CP. You can however export an IMAGE of the boundaries (simplest would be just to use the OverlayOutlines module to get all outlines as a binary image, but if you needed to track each pixel back to its corresponding object there would be ways to do that too), which would allow you in some other scripting language to extract the pixel XY coordinates.

Sorry!

Thank you bcimini for the prompt reply.