Borrar filtros
Borrar filtros

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 visualización (últimos 30 días)
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);

Respuestas (0)

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by