- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thank you Albert.
msjuniorc
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite