Burn multiple lines into a binary image problem
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Category Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!