- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
strtSrc = (Ipp8u*)pSrc - ( kHeight - anchor.y - 1 ) * srcStep - ( kWidth - anchor.x - 1 );
so foryour image (ifyou want to filter the whole image) strtSrc point should be at the upper left corner of the border and he should pass pSrc pointer to the function. It is users responsibility to provide appropriate border for correct function work.
Fffffbbbbbbbbbb
fffffbbbbbbbbbb
ffAffiiiiiiiiii
fffffiiiiiiiiii
fffffiiiiiiiiii
bbiiiiiiiiiiiii
bbiiiiiiiiiiiii
Here is an example for 5x5 mask, C1 image and anchor in the center of the kernel:
f = filter mask
b = border
i = image
A = the anchor point and it should point to the same position as pSrc
F = the upper left corner or strtSrc point, from which filtering begins.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
Kamil
- 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
Is the well-read one this part of the manual but I do not understand it well.
StrtSrc = (Ipp8u *) pSrc - (kHeight - anchor.y - 1) * srcStep - (kWidth - anchor.x - 1);
Where do I obtain the value of anchor.x and anchor.y?
KWidth does it refer to the total width of the image?
This one is the code that I was using:
status = ippiFilterMax_8u_C3R( (Ipp8u*)pSrc->DataPtr() , pSrc->Step() ,(Ipp8u*)pDst->DataPtr(), pDst->Step(), pSrc->Size(), mask, anchor);
And it works very well whit small images.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message Edited by vdudnik on 05-13-2005 07:49 AM
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page