[vtkusers] (no subject)

David Doria daviddoria at gmail.com
Thu Jun 23 08:01:43 EDT 2011


On Thu, Jun 23, 2011 at 7:53 AM, Jyothilekshmi <lekshmijyothi at cdactvm.in> wrote:
> vtkJPEGReader *v16=vtkJPEGReader::New();
>  v16->SetFilePrefix("D:/Images/SolidWorksimages/Nut/binaryjpeg/");//Here  in
> each time I manually set the image path.
> v16->SetDataExtent(0,1151,0,776,1,38);
> v16->SetFilePattern("%s%1d.jpeg");
> v16->SetDataSpacing (0.056,0.056,0.6);
>
>  Instead of it is there any way to do it without specifying the path.
> Thanks
> Jyothi

If you only specify the filename, it will automatically use the
working directory. So if your code has

v16->SetFilePrefix(".");

and you ran the program with:

/home/you$ ./yourProgram

"." should evaluate to "/home/you"

David



More information about the vtkusers mailing list