Hi, I want to ask. I want to count the number of fish, exact no of tilapia baby fish. until now, i already did until erosion and dilation. but, if the fish overlapped, it count as 1. how to solve this? what should i change? thankyou in advance
1 回表示 (過去 30 日間)
古いコメントを表示
clear all;
close all;
A = imread('cluster22.png'); threshold = 50; B = rgb2gray(A); C = B >threshold; figure,imshow(C);
se = strel('disk',4 ); erodedBW = imerode(C,se); figure, imshow(erodedBW)
SE = strel('disk',4 ); BW3 = imdilate(erodedBW,SE); figure, imshow(BW3)
s = regionprops(BW3, 'Area'); N_objects = numel(s);
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!