- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since it is = the size of the image + the size of the filter- 1.
Now the filter works well, it doesn`t crash during the execution, but the exit is not likeI was waiting, the output image remains distorted, works out cut away and stretched, though with total size like the previous one. This is the code that I am using:
CVA_IPPDoc* pDst = CVA_IPPDoc::CreateNewDoc(pSrc, FALSE);
if (!pDst) return;IppiPoint anchor;
anchor.x=1;
anchor.y=1;
IppiMaskSize mask;
mask=ippMskSize3x3;
IppStatus status;
if (!FitImage(pSrc)) return;IppiSize roiSize;
roiSize.height=pSrc->Height()-anchor.x-1;
roiSize.width=pSrc->Width()-anchor.y-1;
pDst->m_height=roiSize.height;
pDst->m_width=roiSize.width;
Ipp8u* psrcaux;
psrcaux=(Ipp8u*)pSrc->DataPtr()+ anchor.x + anchor.y * pSrc->Step();
status= ippiFilterSobelCross_8u16s_C1R((Ipp8u*)psrcaux,pSrc->Step(),
(Ipp16s*)pDst->DataPtr(),pDst->Step(),roiSize, mask);
IppErrorMessage("ippiFilterSobelCross_8u16s_C1R", status);
/*****************************************************************************************/
I have read the manual volume 2 image and video processing, and all about the ROI, the neighborhood... But I`m triying very much thinks and it doesnt work well, and the errors that I`m having are always for this reason, I think.
Could you help me ?
Thanks in advance
"A smell of petroleum prevails throughout"
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page