Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 28th March 2004, 12:41 PM   (permalink)
Default Urgent help needed

I'm trying to filter off little black spots on my processed image after blob formation. I got some help and came up with this but it doesnt work. Please help as it is quite urgent. My image is "map".
COdes:

% Thresholding
map = DM > 5;

% Form blobs
ccamap = bwlabel(map);
maxlabel = max(max(ccamap));
bufmap = zeros(ImgHeight,ImgWidth);

% Remove small regions
newlabel=1;
for i=1:maxlabel
fInd=[]; fInd = find(ccamap==i);
sizeregion = length(fInd);
if sizeregion>500
bufmap(fInd) = newlabel;
newlabel = newlabel+1;
end
end

ccamap = bufmap;
imshow(ccamap);
scout_54 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:23 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker