Auto selecting square blob area from image : Computer Vision
조회 수: 8 (최근 30일)
이전 댓글 표시
I am trying to develop auto calibration plugin, for which I need average pixel value value of centre blob in the image. As of now I am converting this image to binary, and able to identify different blobs in image.
But, I want that central blob getting identified some how. Maybe we can take help of surrounding 6 small blobs.
Matlab Code:
I = imread('BLOB.TIF');
Ibw = ~im2bw(I, 0.75);
Ifill = imfill(Ibw,'holes');
Iarea = bwareaopen(Ifill, 500);
stat = regionprops(Ifinal,'boundingbox');
imshow(I); hold on;
for cnt = 1 : numel(stat)
bb = stat(cnt).BoundingBox;
rectangle('position',bb,'edgecolor','r','linewidth',2);
end
댓글 수: 0
답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!