- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I have a mask image which contains 1s and 0s, I want to invert, namely apply a bitwise NOT operation, but ippiNot just subtracts values from 255, this is not what I need. Also I tried ippiThreshold_LTValGTVal with values
const Ipp8u threshLT[] = {1,1,1};
const Ipp8u valueLT[] = {1,1,1};
const Ipp8u threshGT[] = {0,0,0};
const Ipp8u valueGT[] = {0,0,0};
ippiThreshold_LTValGTVal_8u_C3R(roiMaskC3, 3*srcWidth, roiMaskNotC3, 3*srcWidth, roiSize, threshLT, valueLT, threshGT, valueGT);
but I get a weird result, filled with repeating quadruple values of 13 240 173 186...
Would you please suggest a solution?
const Ipp8u threshLT[] = {1,1,1};
const Ipp8u valueLT[] = {1,1,1};
const Ipp8u threshGT[] = {0,0,0};
const Ipp8u valueGT[] = {0,0,0};
ippiThreshold_LTValGTVal_8u_C3R(roiMaskC3, 3*srcWidth, roiMaskNotC3, 3*srcWidth, roiSize, threshLT, valueLT, threshGT, valueGT);
but I get a weird result, filled with repeating quadruple values of 13 240 173 186...
Would you please suggest a solution?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, may be you can try ippiXor function for that purpose?
Vladimir
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello, its ok Thank you, I have XoRed the mask with an array of 1s in the same size with source, than I get the inverted result.
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