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 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Image Segmentation and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!