<div dir="ltr">Hi N�stor,<div class="gmail_extra"><br><div class="gmail_quote">Nestor Morales Hern�ndez <span dir="ltr"></span>wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir="ltr"><br><div><div> // I get the input images</div><div>AbstractStereoMatcher::input_image_view_t</div><div>� � � � � � � � input_left_view(video_input_p->get_left_image()),</div><div>� � � � � � � � input_right_view(video_input_p->get_right_image());</div> </div><br><div><div>AbstractVideoInput::input_image_t</div><div>� � � � � � � � rectified_left_view(input_left_view._dynamic_cast<AbstractVideoInput::input_image_t>()),</div><div>� � � � � � � � rectified_right_view(input_right_view._dynamic_cast<AbstractVideoInput::input_image_t>());</div> <div>� � � � � � � � � ��</div><div>homography_rectifier_p->run(input_left_view, 0, boost::gil::view(rectified_left_view));</div></div><div><br></div></div></blockquote><div>Note that AbstractStereoMatcher::input_image_view_t and AbstractVideoInput::input_image_t are different types.� The former is an any_image_view of const data, while the latter is an rgb8_image_t.</div> <div>�<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>// The ouput of the compiler is the following:</div><div> <div> /home/nestor/Dropbox/KULeuven/projects/doppia/src/applications/stixel_world_improved/StixelWorldApplication.cpp:296:102: � required from here</div> <div>/home/nestor/Dropbox/KULeuven/projects/doppia/libs/boost/gil/image_view.hpp:101:143: error: �const class boost::gil::any_image_view<boost::mpl::v_item<boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<const boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t> > >*> > >, boost::mpl::v_item<boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<const boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector1<boost::gil::gray_color_t> > >*> > >, boost::mpl::vector0<mpl_::na>, 0>, 0> >� has no member named �pixels�</div> <div>make[2]: *** [CMakeFiles/stixel_world.dir/StixelWorldApplication.cpp.o] Error 1</div></div></div></blockquote><div><br></div><div>You can edit the message down to this:<br><div> StixelWorldApplication.cpp:296<br>error: �const class boost::gil::any_image_view</*unintelligible template gobbledygook*/>� has no member named �pixels�</div> <br></div><div>Which is true.� It looks like you're passing input_left_view, of any_image_view type, into run, which expects rgb8c_view_t.� Perhaps you need to use rectified_left_view (which isn't really a view) in conjunction with gil::view() (which will retrieve a view from the image).</div> <div>�</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I hope somebody can help me with that. As I said, I'm new on using Boost Generic Image Library and it is driving me crazy.<br> </div></blockquote></div><br>I can sympathize -- it's pretty easy to do basic things with GIL, and GIL allows you to do very complex things elegantly, but there can be a steep learning curve in between.<br><br><br></div> <div class="gmail_extra">HTH,<br>Nate<br><br></div></div>