Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® Integrated Performance Primitives
- Find clusters of integers?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Richard_Lindberg

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-17-2010
06:26 AM

57 Views

Find clusters of integers?

1. Im interested in a function that can find coherent clusters of integers in an integer vector or matrix. That is I have a vector with numbers [0, 0, 0, 1, 1, 1, 1, 2, 3, 3, 2] and I have the integer 1 and a threshold of 2. I would like to find the clusters of ones larger than 2 items in above vector.

2. I would like to be able to create a mask vector or matrix from a scalar number. I have a vector [0, 1, 2, 3, 1, 1, 2, 1] and a scalar 1. When calling this function I would like it to return the vector [0, 1, 0, 0, 1, 1, 0, 1].

3. I want to use the above mask vector or matrix of zeros and ones and apply a function to all elements of another vector at the indices of the ones in the mask vector.

Is any of the above cases supported in these libraries?

Best regards

Richard

Link Copied

1 Reply

Ying_H_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-19-2010
12:16 AM

57 Views

It seems noobvious IPP function which can for such kind of operation. Can i understand the operation isfrom data mining?is these operation related to a some known algorithm for example, Haar classifier, watershed image segmentationetc.

Just share some i can suggest,

1) the operation is like image segementation. what's output you may check IPPi manual and see computer vision section. The operations may becompleted by ippiThreshold_LT, or ippiLabelMarkers.

2)seems use ippiThreshold_x or ippiThreshold_LTValGTVal can do this

3) some of ipp function support Mask operation. for example,ippiCopy , which can copy one array to another arrayaccording to theMask (0,don't copyand 1 copy) .

Operation on masked pixels only

IppStatus ippiCopy_

Ipp

maskStep);

Best Regards

Ying

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.