<?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 Re: how to convert vsdk::Mat to cv::Mat? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745184#M2513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible share your project?&amp;nbsp; If you can't share it on community, you can send it to my email address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2018 12:26:09 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-03-29T12:26:09Z</dc:date>
    <item>
      <title>how to convert vsdk::Mat to cv::Mat?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745181#M2510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SDK to Get the Camera Capture, but My Application is written by OpenCV,&amp;nbsp; I need to deal with the cv::Mat data , but I don't know how to do this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:02:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745181#M2510</guid>
      <dc:creator>justforfunl</dc:creator>
      <dc:date>2018-03-28T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert vsdk::Mat to cv::Mat?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745182#M2511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info&amp;nbsp; you can look at VisionSDK_UMat.pdf file. File is located&amp;nbsp;[S32DS_VISION_INSTALL_PATH]\S32DS\s32v234_sdk\docs\vsdk\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that also GDI_Mat class can handle cv::Mat data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745182#M2511</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-28T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert vsdk::Mat to cv::Mat?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745183#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I test the following codes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vsdk::Mat frame_map = lFrame.mUMat.getMat(vsdk::ACCESS_READ | OAL_USAGE_CACHED);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("channel is d%",frame_map.channels());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("rows is d%",frame_map.rows);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("cols is d%",frame_map.cols);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("depth is d%",frame_map.depth());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("elemSize is d%",frame_map.elemSize());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("elemSize1 is d%",frame_map.elemSize1());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("total is d%",frame_map.total());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("type is d%",frame_map.type());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;result is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;channel is 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rows is 960&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cols is 1280&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;depth is 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;elemSize is 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;elemSize1 is 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;total is 1228800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;type is 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what’s meaning of “channel is 2”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;OpenCV Error: Assertion failed (image.channels() == 1 || image.channels() == 3 || image.channels() == 4) in imwrite_, file /home/b45336/git/vsdk/opencv_src/modules/imgcodecs/src/loadsave.cpp, line 455&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;../src/sdi.cpp:1548/SeqEventHandler : [Note]: Grabber got Sequencer event number 4098.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Frame done message arrived #3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;../src/sdi.cpp:1566/SeqEventHandler : [Note]: Frame done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;terminate called after throwing an instance of 'cv::Exception'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp; what():&amp;nbsp; /home/b45336/git/vsdk/opencv_src/modules/imgcodecs/src/loadsave.cpp:455: error: (-215) image.channels() == 1 || image.channels() == 3 || image.channels() == 4 in function imwrite_&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Aborted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #1f497d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 05:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745183#M2512</guid>
      <dc:creator>justforfunl</dc:creator>
      <dc:date>2018-03-29T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert vsdk::Mat to cv::Mat?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745184#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible share your project?&amp;nbsp; If you can't share it on community, you can send it to my email address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745184#M2513</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-29T12:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert vsdk::Mat to cv::Mat?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745185#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jiri Kral, Thanks for your help. I find the error that is confused to understand the image format, I try to use the UYVY format data " = "&amp;nbsp; CV_16UC1 format data. so It's error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 01:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-convert-vsdk-Mat-to-cv-Mat/m-p/745185#M2514</guid>
      <dc:creator>justforfunl</dc:creator>
      <dc:date>2018-03-30T01:08:54Z</dc:date>
    </item>
  </channel>
</rss>

