Burn multiple lines into a binary image problem
Mostrar comentarios más antiguos
I am working on images where I have to extract 24 cells. I should already have them, because by applying multiple lines (images.roi.Line) on the current binary image.

I thought(pretty convinced about it) to use createMask with these lines, and then using bwlabel to extract every cell portion with a certain range of quantity of pixels (and so on..)
The only problem is that, as I start processing this code for each line, I keep on getting discontinuous lines
roiLine = images.roi.Line(gca, 'Position', [x1, y1; x2, y2]);
mask = createMask(roiLine);
cumulativeBinaryImage = cumulativeBinaryImage | mask;
binaryImage(cumulativeBinaryImage) = 0;
Here's the problem

I also tried to use the hough transform but the problem is similar, I can't get these lines burned into the image.
Someone had also told me to use insertShape, but nothing new happened.
I look forward to your comments. Thanks.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Category Classification en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!