I want to do some calculations with masked area of the image with ipps functions. So is there some nice way to convert only masked area of the image to signal representation ? I know target signal length i.e. how many pixels masked area covers.
Yes, ippiCopy with mask but so that destination is signal wich contains only masked values:
image 1 2 3 4
mask 0 1 1 0
result signal: 2 3
For result signal I currently calculate cosine and I also use sorting and SubCRev
For my purposes I need datatype Ipp32f. And I need only one channel operation, because I have 3 channel planar image. Or would it be much faster to copy with function ippiCopy_32f_C3P3MR (*) than three times with ippiCopy_32f_C1MR ?
( * ) actually library does not even contain function ippiCopy_32f_C3P3MR
this seems to be very speific usage and there is no much opportunities for cpu optimization. To be honest I do not see a value of putting that functionality into IPP (it will not be significantly faster compiled C code).