<?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 Realsense-ROS: Decompressing compressedImages to get original 16UC1 byte representation in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Realsense-ROS-Decompressing-compressedImages-to-get-original/m-p/717675#M17146</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Realsense-ROS's published topic "'/camera/aligned_depth_to_color/image_raw/compressed". It is jpeg compressed and originally was 16UC1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then want to decompress this compressedImage for using in Unity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I use OpenCV's imdecode function with flag 'CV_LOAD_IMAGE_ANYDEPTH'. Instead of getting the original 16UC1 representation back, I am receiving a 8UC1 representation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is , is it possible to decompress the compressedImage pulished by the "'/camera/aligned_depth_to_color/image_raw/compressed" topic back to 16UC1  ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 07:30:04 GMT</pubDate>
    <dc:creator>ACast36</dc:creator>
    <dc:date>2019-02-25T07:30:04Z</dc:date>
    <item>
      <title>Realsense-ROS: Decompressing compressedImages to get original 16UC1 byte representation</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-ROS-Decompressing-compressedImages-to-get-original/m-p/717675#M17146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Realsense-ROS's published topic "'/camera/aligned_depth_to_color/image_raw/compressed". It is jpeg compressed and originally was 16UC1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then want to decompress this compressedImage for using in Unity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I use OpenCV's imdecode function with flag 'CV_LOAD_IMAGE_ANYDEPTH'. Instead of getting the original 16UC1 representation back, I am receiving a 8UC1 representation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is , is it possible to decompress the compressedImage pulished by the "'/camera/aligned_depth_to_color/image_raw/compressed" topic back to 16UC1  ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-ROS-Decompressing-compressedImages-to-get-original/m-p/717675#M17146</guid>
      <dc:creator>ACast36</dc:creator>
      <dc:date>2019-02-25T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Realsense-ROS: Decompressing compressedImages to get original 16UC1 byte representation</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Realsense-ROS-Decompressing-compressedImages-to-get-original/m-p/717676#M17147</link>
      <description>&lt;P&gt;I should first provide the disclaimer that my knowledge of ROS programming is not advanced, but I will do my best to assist!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another person who asked about decompressing the image had two approaches suggested to them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.  Use a ROS plugin called &lt;B&gt;compressed_image_transport&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ros.org/compressed_image_transport"&gt;http://wiki.ros.org/compressed_image_transport&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Convert the ROS messages to an OpenCV image using the &lt;B&gt;cv_bridge &lt;/B&gt;package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ros.org/cv_bridge"&gt;http://wiki.ros.org/cv_bridge&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full discussion can be found at the link below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.ros.org/question/276352/how-to-understand-data-from-the-image_rawcompressed-topic/"&gt;https://answers.ros.org/question/276352/how-to-understand-data-from-the-image_rawcompressed-topic/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 17:53:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Realsense-ROS-Decompressing-compressedImages-to-get-original/m-p/717676#M17147</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2019-02-25T17:53:21Z</dc:date>
    </item>
  </channel>
</rss>

