- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
roiSize.width = 1;
roiSize.height = width * height;
ippiMulC_8u_C1IRSfs(value, pSrcDst+3, 4, roiSize, scaleFactor);
If you have some padding, you can use something like that:
roiSize.width = 1;
roiSize.height = width;
for (i = 0; i < height; i ++)
{
ippiMulC_8u_C1IRSfs(value, pSrcDst+3, 4, roiSize, scaleFactor);
pSrcDst += step;
}
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have tried the following lines and failed. It seems that the multiplication is performed to the whole image in some strange way. I don't think I'm using any padding. The bottom of the page contains the actual code that I used. The "size" is the size of my 1Darray of pixels. Theheight of region of interest is the same as"size" and thewidth is 1 since it's a 1D array.I have set the step to be 8 because the color of the pixels contains 4 channels (R, G, B and A) andit uses 2 bytes to store each 16-bit unsigned integer. I have added 3 to both the source and destination pointers so that it only performs the multiplication to the alpha channels. Thank you very much for your help.
IppiSize roi = {1, size};
ippiMulCScale_16u_C1R(((
const Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, (Ipp16u)factor, ((Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, roi);Regards,
Kennant

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