<?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: question about the rs-measure example in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671391#M15524</link>
    <description>Hello zting1,

Thank you for your interest in the Intel RealSense Technology.

Here are the answers to your questions:

Confusion 1: The "source" is not an input. It is an output.

This code in rs_measure.cpp:

rs2::processing_block frame_processor(

            [&amp;amp;](rs2::frameset data, // Input frameset (from the pipeline)

                rs2::frame_source&amp;amp; source) // Frame pool that can allocate new frames

 

Calls this template below, where "processing function" = (rs2::frameset data, rs2::frame_source&amp;amp; source). You can see this if you debug the rs-measure.cpp code with a breakpoint at the above function call and step into the call.

 template&amp;lt;class S&amp;gt;

        processing_block(S processing_function)

        {

            rs2_error* e = nullptr;

            _block = std::shared_ptr&amp;lt;rs2_processing_block&amp;gt;(

                rs2_create_processing_block(new frame_processor_callback&amp;lt;S&amp;gt;(processing_function), &amp;amp;e),

                rs2_delete_processing_block);

            options::operator=(_block);

            error::handle(e);

        }

 

The "frame_processor_callback" from the above function, calls this template below. The "on_frame_function" returns the output - src, which is a reference to the input - frm.

 

 class frame_processor_callback : public rs2_frame_processor_callback

    {

        T on_frame_function;

    public:

        explicit frame_processor_callback(T on_frame) : on_frame_function(on_frame) {}

        void on_frame(rs2_frame* f, rs2_source * source) override

        {

            frame_source src(source);

            frame frm(f);

            on_frame_function(std::move(frm), src);

        }

 

Confusion 2 and 3: This command frame_processor &amp;gt;&amp;gt; postprocessed_frames; "frame_processor" is the input, and "postprocessed_frames" is the output. The "on_frame" returns to "postprocessed_frames." The description in bold tells you what it does

 

* Does the same thing as "start" function

        *

        * \param[in] on_frame      address of callback function for noticing the frame to be processed is ready.

        * \return address of callback function.

        */

        template&amp;lt;class S&amp;gt;

        S&amp;amp; operator&amp;gt;&amp;gt;(S&amp;amp; on_frame)

        {

            start(on_frame);

            return on_frame;

        }

Thank you and best regards,
Eliza</description>
    <pubDate>Wed, 06 Mar 2019 14:07:06 GMT</pubDate>
    <dc:creator>Eliza_D_Intel</dc:creator>
    <dc:date>2019-03-06T14:07:06Z</dc:date>
    <item>
      <title>question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671390#M15523</link>
      <description>&lt;P&gt;I have some question about the example of rs-measure. mainly in the code below：&lt;/P&gt;&lt;CODE&gt;std::thread video_processing_thread([&amp;amp;]() {
        // In order to generate new composite frames, we have to wrap the processing
        // code in a lambda
        rs2::processing_block frame_processor(
            [&amp;amp;](rs2::frameset data, // Input frameset (from the pipeline)
                rs2::frame_source&amp;amp; source) // Frame pool that can allocate new frames
        {
            // First make the frames spatially aligned
            data = data.apply_filter(align_to);
&amp;nbsp;
            // Decimation will reduce the resultion of the depth image,
            // closing small holes and speeding-up the algorithm
            data = data.apply_filter(dec);
&amp;nbsp;
            // To make sure far-away objects are filtered proportionally
            // we try to switch to disparity domain
            data = data.apply_filter(depth2disparity);
&amp;nbsp;
            // Apply spatial filtering
            data = data.apply_filter(spat);
&amp;nbsp;
            // Apply temporal filtering
            data = data.apply_filter(temp);
&amp;nbsp;
            // If we are in disparity domain, switch back to depth
            data = data.apply_filter(disparity2depth);
&amp;nbsp;
            // Send the post-processed depth for path-finding
            pathfinding_queue.enqueue(data.get_depth_frame());
&amp;nbsp;
            //Apply color map for visualization of depth
            data = data.apply_filter(color_map);
&amp;nbsp;
            // Send the composite frame for rendering
            source.frame_ready(data);
        });
        // Indicate that we want the results of frame_processor
        // to be pushed into postprocessed_frames queue
        frame_processor &amp;gt;&amp;gt; postprocessed_frames;
&amp;nbsp;
        while (alive)
        {
            // Fetch frames from the pipeline and send them for processing
            rs2::frameset fs;
            if (pipe.poll_for_frames(&amp;amp;fs)) frame_processor.invoke(fs);
        }
    });&lt;/CODE&gt;&lt;P&gt;I can understand the central idea​ is that:&lt;/P&gt;&lt;P&gt;1.when receive a frame , frame processor invoke the processing function,that is the lambda function:&lt;/P&gt;&lt;CODE&gt;[&amp;amp;](rs2::frameset data, // Input frameset (from the pipeline)
                rs2::frame_source&amp;amp; source) // Frame pool that can allocate new frames
        {
               ……
         }&lt;/CODE&gt;&lt;P&gt;&lt;B&gt;confusion 1.&lt;/B&gt; if fs is the first parameter(rs2::frameset data&lt;/P&gt;&lt;P&gt;) of the lambda function, what is the second parameter(rs2::frame_source&amp;amp; source&lt;/P&gt;&lt;P&gt;), I can't find any variable Incoming the lambda function as the second parameter.&lt;/P&gt;&lt;P&gt;&lt;B&gt;confusio2. &lt;/B&gt;frame_processor &amp;gt;&amp;gt; postprocessed_frames; the operator &amp;gt;&amp;gt; is a callback function to notice the frame_ready. Am I right? Can I see it as frame_processor.operator&amp;gt;&amp;gt;(postprocessed_frames)? if so, I can't find any operation that can push back the frame processed to postprocessed_frames. Or what does the operator &amp;gt;&amp;gt; push back to the postprocessed_frames?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;confusion 3: &lt;/B&gt;if the postprocessed_frames is the parameter of on_frame, and the operator &amp;gt;&amp;gt; also return on_frame, which variable receive the on_frame?&lt;/P&gt;&lt;CODE&gt;template&amp;lt;class S&amp;gt;
        S&amp;amp; operator&amp;gt;&amp;gt;(S&amp;amp; on_frame)
        {
            start(on_frame);
            return on_frame;
        }&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you trouble explain? Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 16:45:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671390#M15523</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-05T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671391#M15524</link>
      <description>Hello zting1,

Thank you for your interest in the Intel RealSense Technology.

Here are the answers to your questions:

Confusion 1: The "source" is not an input. It is an output.

This code in rs_measure.cpp:

rs2::processing_block frame_processor(

            [&amp;amp;](rs2::frameset data, // Input frameset (from the pipeline)

                rs2::frame_source&amp;amp; source) // Frame pool that can allocate new frames

 

Calls this template below, where "processing function" = (rs2::frameset data, rs2::frame_source&amp;amp; source). You can see this if you debug the rs-measure.cpp code with a breakpoint at the above function call and step into the call.

 template&amp;lt;class S&amp;gt;

        processing_block(S processing_function)

        {

            rs2_error* e = nullptr;

            _block = std::shared_ptr&amp;lt;rs2_processing_block&amp;gt;(

                rs2_create_processing_block(new frame_processor_callback&amp;lt;S&amp;gt;(processing_function), &amp;amp;e),

                rs2_delete_processing_block);

            options::operator=(_block);

            error::handle(e);

        }

 

The "frame_processor_callback" from the above function, calls this template below. The "on_frame_function" returns the output - src, which is a reference to the input - frm.

 

 class frame_processor_callback : public rs2_frame_processor_callback

    {

        T on_frame_function;

    public:

        explicit frame_processor_callback(T on_frame) : on_frame_function(on_frame) {}

        void on_frame(rs2_frame* f, rs2_source * source) override

        {

            frame_source src(source);

            frame frm(f);

            on_frame_function(std::move(frm), src);

        }

 

Confusion 2 and 3: This command frame_processor &amp;gt;&amp;gt; postprocessed_frames; "frame_processor" is the input, and "postprocessed_frames" is the output. The "on_frame" returns to "postprocessed_frames." The description in bold tells you what it does

 

* Does the same thing as "start" function

        *

        * \param[in] on_frame      address of callback function for noticing the frame to be processed is ready.

        * \return address of callback function.

        */

        template&amp;lt;class S&amp;gt;

        S&amp;amp; operator&amp;gt;&amp;gt;(S&amp;amp; on_frame)

        {

            start(on_frame);

            return on_frame;

        }

Thank you and best regards,
Eliza</description>
      <pubDate>Wed, 06 Mar 2019 14:07:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671391#M15524</guid>
      <dc:creator>Eliza_D_Intel</dc:creator>
      <dc:date>2019-03-06T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671392#M15525</link>
      <description>&lt;P&gt;Hi, &lt;A href="https://forums.intel.com/s/profile/0050P00000896pfQAA" target="_self" alt="https://forums.intel.com/s/profile/0050P00000896pfQAA"&gt;ElizaD_Intel&lt;/A&gt;, Thanks for your explanation.&lt;/P&gt;&lt;P&gt;I'm confused about the "on_frame" returns to "postprocessed_frames."&lt;/P&gt;&lt;P&gt;​"on_frame" is a function, and "postprocessed_frames" is a queue of frame.  How can the "on_frame" return to "postprocessed_frames"?&lt;/P&gt;&lt;P&gt;I'm looking forward to your further reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 23:04:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671392#M15525</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-06T23:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671393#M15526</link>
      <description>Hello zting1,

According to this comment in  rs-measure.cpp, the results of the frame_processor get pushed into postprocessed_frames. Somehow all the function templates, callbacks, and references make it all work.

        // Indicate that we want the results of frame_processor
        // to be pushed into postprocessed_frames queue
        frame_processor &amp;gt;&amp;gt; postprocessed_frames;

Thank you and best regards,
Eliza</description>
      <pubDate>Thu, 07 Mar 2019 00:21:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671393#M15526</guid>
      <dc:creator>Eliza_D_Intel</dc:creator>
      <dc:date>2019-03-07T00:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671394#M15527</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://forums.intel.com/s/profile/0050P00000896pfQAA" target="_self" alt="https://forums.intel.com/s/profile/0050P00000896pfQAA"&gt;ElizaD&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I understood the comment. But I just encounter some problem when use the code block, so I want to know this code block better.&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:58:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671394#M15527</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-07T08:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671395#M15528</link>
      <description>Hello zting1,

Could you please let us know what are the problems you have encountered? 

Thank you and best regards,
Eliza</description>
      <pubDate>Thu, 07 Mar 2019 16:55:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671395#M15528</guid>
      <dc:creator>Eliza_D_Intel</dc:creator>
      <dc:date>2019-03-07T16:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671396#M15529</link>
      <description>&lt;P&gt;Hello ElizaD&lt;/P&gt;&lt;P&gt;I wrote a simple program to get distance from the depth frame based on the example of rs-measure, but the code crash when it run to&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;auto udist = depth.get_distance(u, v);&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and there is no useful message output. I don't know how to fix it. Can you give me some advice. Thanks a lot!&lt;/P&gt;&lt;P&gt;The complete code is below, it is just a process thread and a main thread to visit the depth.&lt;/P&gt;&lt;CODE&gt;// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved.
&amp;nbsp;
#include &amp;lt;librealsense2/rs.hpp&amp;gt; // Include RealSense Cross Platform API
#include &amp;lt;librealsense2/rsutil.h&amp;gt;
#include "example.hpp"          // Include short list of convenience functions for rendering
// This example will require several standard data-structures and algorithms:
#define _USE_MATH_DEFINES
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;queue&amp;gt;
#include &amp;lt;algorithm&amp;gt;            // std::min, std::max
#include &amp;lt;thread&amp;gt;
#include &amp;lt;atomic&amp;gt;
#include &amp;lt;opencv2/opencv.hpp&amp;gt;   // Include OpenCV API
#include &amp;lt;mutex&amp;gt;
//PCL
#include &amp;lt;pcl/common/common_headers.h&amp;gt;
#include &amp;lt;pcl/visualization/pcl_visualizer.h&amp;gt;
#include &amp;lt;pcl/io/pcd_io.h&amp;gt;
#include &amp;lt;pcl/filters/passthrough.h&amp;gt;
typedef pcl::PointXYZRGB RGB_Cloud;
typedef pcl::PointCloud&amp;lt;RGB_Cloud&amp;gt; point_cloud;
typedef point_cloud::Ptr cloud_pointer;
typedef point_cloud::Ptr prevCloud;
using pixel = std::pair&amp;lt;int, int&amp;gt;;
//Global variable
int i = 1; // Index for incremental file name
int width = 1280;
int height = 720;
using namespace std;
&amp;nbsp;
std::shared_ptr&amp;lt;pcl::visualization::PCLVisualizer&amp;gt; createRGBVisualizer(pcl::PointCloud&amp;lt;pcl::PointXYZRGB&amp;gt;::ConstPtr cloud);
cloud_pointer PCL_Conversion_rect(const rs2::depth_frame&amp;amp; frame, const rs2::video_frame &amp;amp;color, const vector&amp;lt;cv::Point_&amp;lt;u_int32_t&amp;gt;&amp;gt; &amp;amp;vertex,const rs2_intrinsics intr_);
&amp;nbsp;
int main(int argc, char * argv[]) try
{
    rs2::align align_to(RS2_STREAM_COLOR);
    // Decimation filter reduces the amount of data (while preserving best samples)
    rs2::decimation_filter dec;
    // If the demo is too slow, make sure you run in Release (-DCMAKE_BUILD_TYPE=Release)
    // but you can also increase the following parameter to decimate depth more (reducing quality)
    dec.set_option(RS2_OPTION_FILTER_MAGNITUDE, 2);
    // Define transformations from and to Disparity domain
    rs2::disparity_transform depth2disparity;
    rs2::disparity_transform disparity2depth(false);
    // Define spatial filter (edge-preserving)
    rs2::spatial_filter spat;
    // Enable hole-filling
    // Hole filling is an agressive heuristic and it gets the depth wrong many times
    spat.set_option(RS2_OPTION_HOLES_FILL, 5); // 5 = fill all the zero pixels
    // Define temporal filter
    rs2::temporal_filter temp;
&amp;nbsp;
    // After initial post-processing, frames will flow into this queue:
    rs2::frame_queue postprocessed_frames;
&amp;nbsp;
    // Declare RealSense pipeline, encapsulating the actual device and sensors
    rs2::pipeline pipe;
&amp;nbsp;
    rs2::config cfg;
    cfg.enable_stream(RS2_STREAM_DEPTH,width,height,RS2_FORMAT_Z16,30);
    // For the color stream, set format to RGBA
    // To allow blending of the color frame on top of the depth frame
    cfg.enable_stream(RS2_STREAM_COLOR, width,height,RS2_FORMAT_BGR8,30);
    // Start streaming with default recommended configuration
    auto profile = pipe.start(cfg);
    auto stream = profile.get_stream(RS2_STREAM_COLOR).as&amp;lt;rs2::video_stream_profile&amp;gt;();
    auto intr =stream.get_intrinsics();
&amp;nbsp;
    cv::Point_&amp;lt;u_int32_t&amp;gt; left_up(540,240);
    cv::Point_&amp;lt;u_int32_t&amp;gt; right_up(740,240);
    cv::Point_&amp;lt;u_int32_t&amp;gt; right_down(740,420);
    cv::Point_&amp;lt;u_int32_t&amp;gt; left_down(540,420);
&amp;nbsp;
    // Alive boolean will signal the worker threads to finish-up
    std::atomic_bool alive{ true };
    // Video-processing thread will fetch frames from the camera,
    // apply post-processing and send the result to the main thread for rendering
    // It recieves synchronized (but not spatially aligned) pairs
    // and outputs synchronized and aligned pairs
    std::thread video_processing_thread([&amp;amp;]() {
        // In order to generate new composite frames, we have to wrap the processing
        // code in a lambda
        rs2::processing_block frame_processor(
                [&amp;amp;](rs2::frameset data, // Input frameset (from the pipeline)
                    rs2::frame_source&amp;amp; source) // Frame pool that can allocate new frames
                {
                    // First make the frames spatially aligned
                    data = data.apply_filter(align_to);
&amp;nbsp;
                    // Decimation will reduce the resultion of the depth image,
                    // closing small holes and speeding-up the algorithm
                    data = data.apply_filter(dec);
&amp;nbsp;
                    // To make sure far-away objects are filtered proportionally
                    // we try to switch to disparity domain
                    data = data.apply_filter(depth2disparity);
&amp;nbsp;
                    // Apply spatial filtering
                    data = data.apply_filter(spat);
&amp;nbsp;
                    // Apply temporal filtering
                    data = data.apply_filter(temp);
&amp;nbsp;
                    // If we are in disparity domain, switch back to depth
                    data = data.apply_filter(disparity2depth);
&amp;nbsp;
                    // Send the composite frame for rendering
                    source.frame_ready(data);
                });
        // Indicate that we want the results of frame_processor
        // to be pushed into postprocessed_frames queue
        frame_processor &amp;gt;&amp;gt; postprocessed_frames;
&amp;nbsp;
        while (alive)
        {
            // Fetch frames from the pipeline and send them for processing
            rs2::frameset fs;
            if (pipe.poll_for_frames(&amp;amp;fs)) frame_processor.invoke(fs);
        }
    });
&amp;nbsp;
//main thread
    while (alive) {
        static rs2::frameset current_frameset;
        postprocessed_frames.poll_for_frame(&amp;amp;current_frameset);
        if(current_frameset)
        {
            auto depth = current_frameset.get_depth_frame();
            auto color = current_frameset.get_color_frame();
            int cloud_width  = right_up.x - left_up.x;
            int cloud_height = left_down.y - left_up.y;
            for (int i = 0; i &amp;lt; cloud_height; i++)
            {
                for (int j = 0; j &amp;lt; cloud_width; ++j) {
                    int index_pcl = i * cloud_width +j;
                    int v = left_up.y + i  ;
                    int u = left_up.x + j;
                    cout&amp;lt;&amp;lt;"u="&amp;lt;&amp;lt;u&amp;lt;&amp;lt;",v="&amp;lt;&amp;lt;v&amp;lt;&amp;lt;endl;
                    auto udist = depth.get_distance(u, v);
                    cout&amp;lt;&amp;lt;"u="&amp;lt;&amp;lt;u&amp;lt;&amp;lt;",v="&amp;lt;&amp;lt;v&amp;lt;&amp;lt;endl;
    }
    alive = false;
    video_processing_thread.join();
    return EXIT_SUCCESS;
}
catch (const rs2::error &amp;amp; e)
{
    std::cerr &amp;lt;&amp;lt; "RealSense error calling " &amp;lt;&amp;lt; e.get_failed_function() &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; e.get_failed_args() &amp;lt;&amp;lt; "):\n    " &amp;lt;&amp;lt; e.what() &amp;lt;&amp;lt; std::endl;
    return EXIT_FAILURE;
}
catch (const std::exception &amp;amp; e)
{
    std::cerr &amp;lt;&amp;lt; e.what() &amp;lt;&amp;lt; std::endl;
    return EXIT_FAILURE;
}&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 18:17:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671396#M15529</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-07T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671397#M15530</link>
      <description>Hello zting1,

Another RealSense user posted a similar issue on GitHub, and by debugging the code he found that the issue was not related to the function. Here is the link: &lt;A href="https://github.com/IntelRealSense/librealsense/issues/3365"&gt;https://github.com/IntelRealSense/librealsense/issues/3365&lt;/A&gt;

Thank you,
Eliza</description>
      <pubDate>Thu, 07 Mar 2019 22:30:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671397#M15530</guid>
      <dc:creator>Eliza_D_Intel</dc:creator>
      <dc:date>2019-03-07T22:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671398#M15531</link>
      <description>&lt;P&gt;Hello ElizaD,&lt;/P&gt;&lt;P&gt;Oh no, The user is me. There was another problem that time. But this time I simplify the code as above,  I really don't know what cause the crash. Can you help me?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 22:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671398#M15531</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-07T22:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671399#M15532</link>
      <description>Hello zting1,

Could you please let us know what is the error you are receiving when running this code? what is the message received by your compiler? 

Thank you,
Eliza</description>
      <pubDate>Fri, 08 Mar 2019 00:10:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671399#M15532</guid>
      <dc:creator>Eliza_D_Intel</dc:creator>
      <dc:date>2019-03-08T00:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671400#M15533</link>
      <description>&lt;P&gt;Hello Eliza,&lt;/P&gt;&lt;P&gt;The message is :Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)&lt;/P&gt;&lt;P&gt;I just can't get anything from this message.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:30:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671400#M15533</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-08T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671401#M15534</link>
      <description>&lt;P&gt;I point out which line of code cause the exiting,  The code in this line is below:&lt;/P&gt;&lt;CODE&gt;                    // Decimation will reduce the resultion of the depth image,
                    // closing small holes and speeding-up the algorithm
                   data = data.apply_filter(dec);&lt;/CODE&gt;&lt;P&gt;I'm trying to figure out why could this line cause the exiting. If you have some idea, please let me know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:39:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671401#M15534</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-08T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: question about the rs-measure example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671402#M15535</link>
      <description>&lt;P&gt;Hello Eliza&lt;/P&gt;&lt;P&gt;The problem has been solved in &lt;A href="https://github.com/IntelRealSense/librealsense/issues/3410" target="_self" alt="https://github.com/IntelRealSense/librealsense/issues/3410"&gt;github&lt;/A&gt;, Thanks for your patient answer.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 17:00:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/question-about-the-rs-measure-example/m-p/671402#M15535</guid>
      <dc:creator>zting1</dc:creator>
      <dc:date>2019-03-08T17:00:04Z</dc:date>
    </item>
  </channel>
</rss>

