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!