<?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 Where is the source code for the alignment function in RealSense SDK2.0? in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615769#M13232</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out where the source code (C++) is for the alignment function in RealSense SDK2.0 and wonder if someone can give me an advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, I wrote codes for aligning a depth frame to the corresponding color frame as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frameset frames = pipe.wait_for_frames();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::align align(rs2_stream::RS2_STREAM_COLOR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frameset aligned_frames = align.process(frames);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frame color_frame = frames.get_color_frame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frame depth_frame = aligned_frames.get_depth_frame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to see source codes for checking how the alignment is accomplished. I found the following codes in "rs_processing.hpp" but I do not see any code for actual calculations for the alignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class align&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;public:&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I've found that "align.cpp" has the "void align_images()" function but I am not sure if this is the same as the alignment function above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find the source code for the alignment function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2018 12:39:57 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-06-04T12:39:57Z</dc:date>
    <item>
      <title>Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615769#M13232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out where the source code (C++) is for the alignment function in RealSense SDK2.0 and wonder if someone can give me an advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, I wrote codes for aligning a depth frame to the corresponding color frame as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frameset frames = pipe.wait_for_frames();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::align align(rs2_stream::RS2_STREAM_COLOR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frameset aligned_frames = align.process(frames);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frame color_frame = frames.get_color_frame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::frame depth_frame = aligned_frames.get_depth_frame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to see source codes for checking how the alignment is accomplished. I found the following codes in "rs_processing.hpp" but I do not see any code for actual calculations for the alignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class align&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;public:&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I've found that "align.cpp" has the "void align_images()" function but I am not sure if this is the same as the alignment function above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find the source code for the alignment function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:39:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615769#M13232</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-04T12:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615770#M13233</link>
      <description>&lt;P&gt;There is also a file in the source code called align.h in the src/proc folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/blob/093186bfaaf89a3bd140fc943daf46cd5a6eadc3/src/proc/align.h"&gt;https://github.com/IntelRealSense/librealsense/blob/093186bfaaf89a3bd140fc943daf46cd5a6eadc3/src/proc/align.h&lt;/A&gt; librealsense/align.h at 093186bfaaf89a3bd140fc943daf46cd5a6eadc3 · IntelRealSense/librealsense · GitHub &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:03:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615770#M13233</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-04T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615771#M13234</link>
      <description>&lt;P&gt;Hi MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know align.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that the critical part of alignment is the following code in align.cpp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;frameset process(frameset frame)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     (*_block)(frame);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     rs2::frame f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           _queue.poll_for_frame(&amp;amp;f);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     return frameset(f);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Nonetheless, from here, I cannot figure out how to get to the source code for actual calculations for the alignment. Is the source code available or hidden?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,  &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 23:09:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615771#M13234</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-04T23:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615772#M13235</link>
      <description>&lt;P&gt;SDK 2.0 is fully open source, so it is unlikely there are hidden parts.  They may just be very difficult to find.    I went through the source code carefully and all roads of the investigation seemed to lead back to rs_processing.hpp, the file you'd already found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This documentation page has an outline explanation of how Align is processed, and may give you some new leads to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://unanancyowen.github.io/librealsense2_apireference/classrs2_1_1align.html"&gt;https://unanancyowen.github.io/librealsense2_apireference/classrs2_1_1align.html&lt;/A&gt; Intel® RealSense™ Cross Platform API: rs2::align Class Reference &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 06:49:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615772#M13235</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-05T06:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615773#M13236</link>
      <description>&lt;P&gt;Thanks MartyG. I sent an email to the guy who created the website about the alignment function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 09:17:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615773#M13236</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-05T09:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615774#M13237</link>
      <description>&lt;P&gt;If you mean UnaNancyOwen, their documentation site draws its contents directly from the official documentation and arranges it in a more user-friendly interface.  Having said that, UnaNancyOwen is a very skilled developer, having created a set of sample programs for using SDK 2.0 camera functions such as depth and align with OpenCV.  So maybe they can give you some useful insight.  &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 09:22:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615774#M13237</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-05T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615775#M13238</link>
      <description>&lt;P&gt;MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I meant UnaNancyOwen. He was quick in replying to my email. He said the alignment function is written in align.cpp. I will take a closer look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, thanks always for giving me helpful advices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615775#M13238</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-05T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the source code for the alignment function in RealSense SDK2.0?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615776#M13239</link>
      <description>&lt;P&gt;You are very welcome.   It's great that UnaNancyOwen replied so fast.  Have a great day!  &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:20:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Where-is-the-source-code-for-the-alignment-function-in-RealSense/m-p/615776#M13239</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-05T11:20:06Z</dc:date>
    </item>
  </channel>
</rss>

