scan through bwconncomp PixelIdxList in another image
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello. I am working on an image processing project.I have generated a binary image from an image and used the bwconncomp to detect closed contours.
Next I would like to scan each Pixel group in another image and analyse the value that is in them.
gammabin = zeros(size(lens_mask)); % Creating a zero Matrix with image size
gammabin(gammafactor > 0.038) = 1; % Setting my binary limit value
CCgamma=bwconncomp(gammabin); % Generating Closed contour struct
% größte Region identifizieren - das ist die Linse
numPixels = cellfun(@numel,CCgamma.PixelIdxList); Generating %array with number of pixels for every cluster
% Looking for clusters bigger than 25
for i = 1:CCgamma.NumObjects
if numPixels(i) > 25
for j = 1 : numPixels(i)
% This is were I am kind of stuck
end
end
end
4 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!