Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6913
| From | Peter Rodenbach <peter.rodenbach@googlemail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Delete close, but not identical elements in an array |
| Date | 2011-12-03 10:08 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbcsev$bvn$1@smc.vnet.net> (permalink) |
Hi,
I have the problem that I have to indentify peaks in an 2D array. I
can do this by Ordering[] the entries in the Flatten[] list. Then I
indentify the positions of the peaks in the array and write them into
a list. An example I work on in an 512 x 512 Pixel array:
Peaks={{229,170},{119,265},{331,202},{118,264},{314,245}}
As you can see from those 5 peaks, Number 2 and 4 belong to the same
peak. As I have to count the data at that positions and compare them,
I have to get rid of the peak postions that neighbor each other, as
they actually belong to the same peak.
What I want now is: have Mathem. evaluate the positions in the list
and delete those which are +-10 pixels around any other.
So the list would look like Peaks={{229,170},{119,265},{331,202},
{314,245}} afterwards.
Thanks for the help!!
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Delete close, but not identical elements in an array Peter Rodenbach <peter.rodenbach@googlemail.com> - 2011-12-03 10:08 +0000 Re: Delete close, but not identical elements in an array A Retey <awnl@gmx-topmail.de> - 2011-12-04 07:55 +0000 Re: Delete close, but not identical elements in an array A Retey <awnl@gmx-topmail.de> - 2011-12-04 07:55 +0000 Re: Delete close, but not identical elements in an array "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-12-04 07:56 +0000 Re: Delete close, but not identical elements in an array Ray Koopman <koopman@sfu.ca> - 2011-12-04 07:58 +0000
csiph-web