Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
6815 Discussions

function for vectorizing an image-batch pixelwise

mweissbach
Beginner
552 Views
Hello

I have an batch/bunch of images which are a result of a filterjet. For further inspection of some statistics of these images i need a accelerated function, that imports the pixelvalues of the images into vectors like this:

vector0 = [image0(0), image1(0), image2(0), ... imageN(0)];
vector1 = [image0(1), image1(1), image2(1), ... imageN(1)];
...
vectorM = [image0(M), image1(M), image2(M), ... imageN(M)];

where imageX(Y) means the Y-th pixel of image X (the image is regarded as 1-dim-vector).

Is there a (bunch of) predefined functions that can do that ?

Thanks for help in advance

best regards

M.W.

edit: alternatively an image can be used, where the vectors are arranged horizontally.
0 Kudos
1 Reply
Chao_Y_Intel
Moderator
552 Views

Hi M.W.

It looks that these data are transposed ( you can check the transpose functions).

The original data are organized as:

[image0(0), image0(1), image0(2), ... image0(m);]
[image1(0), image1(1), image1(2), ... image1(m);]
[image2(0), image2(1), image2(2), ... image2(m);]

The transposed data is like:

[image0(0), image1(0), image2(0), ... imageN(0)];
[image0(1), image1(1), image2(1), ... imageN(1)];
...

[image0(M), image1(M), image2(M), ... imageN(M)];


Maybe you cancheck if such functions can provide some help.

Thanks,
Chao

0 Kudos
Reply