- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to scale the pixel intensities of an image between [0 - maxValue]. But I experience tremendous rounding error with the operation. I'm attaching the code snippet. I would appreciate if anyone can tell me if there is something I can do about it.
Ipp8u maxValue, minValue;
ippiMin_8u_C1R(inputImageUSC, imgSize.width, imgSize, &minValue);
ippiSubC_8u_C1RSfs(inputImageUSC, imgSize.width, minValue, outputImageUSC,imgSize.width, imgSize, 0);
ippiMin_8u_C1R(inputImageUSC, imgSize.width, imgSize, &minValue);
ippiSubC_8u_C1RSfs(inputImageUSC, imgSize.width, minValue, outputImageUSC,imgSize.width, imgSize, 0);
ippiMax_8u_C1R(inputImageUSC, imgSize.width, imgSize, &maxValue);
ippiDivC_8u_C1IRSfs(maxValue, outputImageUSC, imgSize.width, imgSize, 0);
maxValue = 255;
ippiMulC_8u_C1IRSfs(maxValue, outputImageUSC, imgSize.width, imgSize, 0);
ippiMulC_8u_C1IRSfs(maxValue, outputImageUSC, imgSize.width, imgSize, 0);
Thanks very much,
Madhu.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may contact us via Intel Premier Support for issue resolution, please submit a detailed report with your test case, so we can look into it.
Thanks,
Ying
Thanks,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Madhu, can you call ippiScale function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MulC
I done with it

Reply
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