Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: labeling superpixels
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
thouraya

Posts: 1
Registered: 8/16/14
labeling superpixels
Posted: Aug 16, 2014 3:33 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hey, i want to label a hole superpixel for more clarity of the object and the background based on the number of labels of pixels , i had the label using regression tree :
this piece of code is not working :
for ij = 1 : size (SP, 1)
if Label1(SP(ij))== 1
n = n + 1;
else
m=m+1;
end
end


for zz = 1 : size (SP, 1)
NB = m/(m+n) ;
if NB > 0.6
Label1( Label1(SP(zz))== 2) = 1;%set all object
else
Label1( Label1(SP(zz))== 1) = 2;%set all background
end
end
end
Help please ?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.