for (int i = 0; i < 3; i++)
pImageBuff = ippiMalloc_32f_C1(width, height, &stride);
should the width and height be same as the RGB(pixel order) image here?
3. I use the ippi Copy function convert from c3 to p3 with the strid evalue for RGB planar taken from step2.
Can anyone please let me know if I am going wrong anywhere.
yes, as it seems to me, all stuff you are doing is correct.
One note - please pay attention thatstridewill not be exactly equalwidth*heightbecause of
ippiMalloc (width,height,StepBytes)allocates a memory block aligned to a 32-byte boundary.
therefore each stride == stepBytes *height