- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am using the dotnet-cpp (C#) examples to become more familiar with the ways IPP can be used through P/Invoke in C#.
From time to time, I run into "issues" that could be the fruit either of my IPP inexperience or of a need to correct the example code. I understand the example code is not supposed to be a full application.
Issue with Filtering Functions:
The code is shipped with an "roi" definition of 3/4 width * 3/4 height. I actually liked the approach because is shows the effects of a filter on a subsection of the image that can immediately be compared with the original.
I am now in need to use a blur filter on the entire picture. Thus I resized the ROI to:
roi = new IppiSize(bmpsrc.Width, bmpsrc.Height);
Unfortunately this causes an error (System.AccessViolationException: Attempted to read or write protected memory.)
In order to successfully invoke the method, I have to reduce the ROI as follows:
roi = new IppiSize(bmpsrc.Width - 4, bmpsrc.Height - 4);
Is this correct because the "maskSize" is 2*2 or is there some other issue that doesn't allow me to address the entire ROI?
TIA,
msjuniorc
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Albert.
msjuniorc

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