<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problems with ROI in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-with-ROI/m-p/990050#M22186</link>
    <description>&lt;DIV&gt;
&lt;DIV&gt;Hello Vladimir!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;When I filtered an image, is the outputimage has major size, hasn`t it?&lt;BR /&gt;Since it is = the size of the image + the size of the filter- 1.&lt;/DIV&gt;
&lt;DIV&gt;For this reason I tried to make a region of interest, of the input image , in whichI was reducing some pixels, and this way have an output image of equal sizethat the input image.&lt;BR /&gt;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:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;/*****************************************************************************/&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;
&lt;P&gt;CVA_IPPDoc* pDst = CVA_IPPDoc::CreateNewDoc(pSrc, FALSE);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt; (!pDst) &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IppiPoint anchor;&lt;/P&gt;
&lt;P&gt;anchor.x=1;&lt;/P&gt;
&lt;P&gt;anchor.y=1;&lt;/P&gt;
&lt;P&gt;IppiMaskSize mask;&lt;/P&gt;
&lt;P&gt;mask=ippMskSize3x3;&lt;/P&gt;
&lt;P&gt;IppStatus status; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt; (!FitImage(pSrc)) &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;IppiSize roiSize;&lt;/P&gt;
&lt;P&gt;roiSize.height=pSrc-&amp;gt;Height()-anchor.x-1;&lt;/P&gt;
&lt;P&gt;roiSize.width=pSrc-&amp;gt;Width()-anchor.y-1;&lt;/P&gt;
&lt;P&gt;pDst-&amp;gt;m_height=roiSize.height;&lt;/P&gt;
&lt;P&gt;pDst-&amp;gt;m_width=roiSize.width;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Ipp8u* psrcaux;&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;psrcaux=(Ipp8u*)pSrc-&amp;gt;DataPtr()+ anchor.x + anchor.y * pSrc-&amp;gt;Step();&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;status= ippiFilterSobelCross_8u16s_C1R((Ipp8u*)psrcaux,pSrc-&amp;gt;Step(),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(Ipp16s*)pDst-&amp;gt;DataPtr(),pDst-&amp;gt;Step(),roiSize, mask);&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;IppErrorMessage("ippiFilterSobelCross_8u16s_C1R", status);&lt;/P&gt;
&lt;P&gt;/*****************************************************************************************/&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Could you help me ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"A smell of petroleum prevails throughout"&lt;/EM&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 May 2005 18:28:22 GMT</pubDate>
    <dc:creator>jimawary_lauril</dc:creator>
    <dc:date>2005-05-30T18:28:22Z</dc:date>
    <item>
      <title>Problems with ROI</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-with-ROI/m-p/990050#M22186</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;Hello Vladimir!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;When I filtered an image, is the outputimage has major size, hasn`t it?&lt;BR /&gt;Since it is = the size of the image + the size of the filter- 1.&lt;/DIV&gt;
&lt;DIV&gt;For this reason I tried to make a region of interest, of the input image , in whichI was reducing some pixels, and this way have an output image of equal sizethat the input image.&lt;BR /&gt;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:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;/*****************************************************************************/&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;
&lt;P&gt;CVA_IPPDoc* pDst = CVA_IPPDoc::CreateNewDoc(pSrc, FALSE);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt; (!pDst) &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IppiPoint anchor;&lt;/P&gt;
&lt;P&gt;anchor.x=1;&lt;/P&gt;
&lt;P&gt;anchor.y=1;&lt;/P&gt;
&lt;P&gt;IppiMaskSize mask;&lt;/P&gt;
&lt;P&gt;mask=ippMskSize3x3;&lt;/P&gt;
&lt;P&gt;IppStatus status; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt; (!FitImage(pSrc)) &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;IppiSize roiSize;&lt;/P&gt;
&lt;P&gt;roiSize.height=pSrc-&amp;gt;Height()-anchor.x-1;&lt;/P&gt;
&lt;P&gt;roiSize.width=pSrc-&amp;gt;Width()-anchor.y-1;&lt;/P&gt;
&lt;P&gt;pDst-&amp;gt;m_height=roiSize.height;&lt;/P&gt;
&lt;P&gt;pDst-&amp;gt;m_width=roiSize.width;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Ipp8u* psrcaux;&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;psrcaux=(Ipp8u*)pSrc-&amp;gt;DataPtr()+ anchor.x + anchor.y * pSrc-&amp;gt;Step();&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;status= ippiFilterSobelCross_8u16s_C1R((Ipp8u*)psrcaux,pSrc-&amp;gt;Step(),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(Ipp16s*)pDst-&amp;gt;DataPtr(),pDst-&amp;gt;Step(),roiSize, mask);&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;IppErrorMessage("ippiFilterSobelCross_8u16s_C1R", status);&lt;/P&gt;
&lt;P&gt;/*****************************************************************************************/&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Could you help me ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"A smell of petroleum prevails throughout"&lt;/EM&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 May 2005 18:28:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-with-ROI/m-p/990050#M22186</guid>
      <dc:creator>jimawary_lauril</dc:creator>
      <dc:date>2005-05-30T18:28:22Z</dc:date>
    </item>
  </channel>
</rss>

