[vtkusers] Readers read image with some kind of reveral?

David Doria daviddoria at gmail.com
Tue Apr 16 12:17:12 EDT 2013


On Tue, Apr 16, 2013 at 11:45 AM, ChenDawnWind <cybfly1 at hotmail.com> wrote:
> Hi everyone,
> when i use the reader such as vtkJPEGReader to read one image file(see
> attachment) and extract the contour of
> the img, then read the result output and print the points with OpenCV.
> Then i found the image was not the way it used to be.
> In the attachment the original image is number 1, and the contour image is
> number 2.
> It is clear that the image reversal in some way.
> Cause i have to set the point of the contour in the 3D model,
> with this revesal the calculated center of the white target in the the
> original image was not suit the reveral image 2.
> So i wanna know is there any way to avoid this revesal and to read file as
> it used to be?
> Thanks!
>
> DawnWind.Chen
> CSU


It looks to me like you are just viewing the points from a different
viewpoint. If you want to change the view on the VTK side of things,
check out:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/vtkCamera

for how to position and aim the camera.

David



More information about the vtkusers mailing list