- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
What is the easiest way to set a pixel value in a 8u_C1 image? I have a loop that needs to set pixels to a value as it goes.
IPL had a PutPixel, but IPP has nothing of that kind.
Thanks in advanced.
Hugo
What is the easiest way to set a pixel value in a 8u_C1 image? I have a loop that needs to set pixels to a value as it goes.
IPL had a PutPixel, but IPP has nothing of that kind.
Thanks in advanced.
Hugo
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
in IPP it is very easy because you have direct access to image data. So all you need is to calculate pixel address, for 8u_C1 images it is something like this:
let i - is column #
and j is row #
pixel_value = pSrc[ j*imageStep + i ];
Regards,
Vladimir

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