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: Find a cluster of points and leave only one
Replies: 5   Last Post: May 22, 2011 10:30 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ImageAnalyst

Posts: 12,875
Registered: 12/26/06
Re: Find a cluster of points and leave only one
Posted: May 21, 2011 5:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

How about assigning the spot you want to an output image:

desiredSpotImage =zeros(size(initial_Image));
desiredSpotImage(row1:row2, column1:column2) =
initial_Image(row1:row2, column1:column2):

or something like that?

Or you can erase the other two spots like this:

initial_Image(row1:row2, column1:column2) = 0;
initial_Image(row3:row4, column3:column4) = 0;

Of course you need to figure out what the starting and ending row and
column numbers are but that shouldn't be two hard for well separated
spots like you showed. If the clusters overlap then you have a bigger
problem.



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

[Privacy Policy] [Terms of Use]

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