vtkBMPReader::SetImageRange()

lloyddj lloyddj at wiproge.med.ge.com
Fri Jan 28 04:13:50 EST 2000


Hi,
It is very similar to what you have written.
vtkBMPReader *reader =vtkBMPReader::New();
reader->SetFilePrefix("c:\\data.bmp"); //design
 reader->Update ();
 reader->SetDataExtent(0,255,0,255,0,10);
The files should be saved as in my case
data.bmp.0,data.bmp.1........
Regards,
lloyd
vtk wrote:

> Hello lloyddj,
>
> Thanks for your help.
> But can you please tell me what the meaning of other parameters?
> say: (0,255,0,255,0,..)?
>
> BTW, if I want to read a set of slice start from
> d:\ct\0080.bmp to d:\ct\0090.bmp,
> the code should be:
>   ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   vtkBMPReader *reader;
>   reader->SetFilePrefix ("d:/ct/");
>   reader->SetFilePattern("%s008%d.bmp");
>   reader->SetDataExtent(0,255,0,255,0,10);
>   ....
>   ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Is that right?
>
> How about if there are some files in that directory,
> eg. 0091.bmp, 0070.bmp, and I do not want these files
> to be read?
>
> Thanks a lot.
>
> Best regards,
>
> -Travis
>
> Thursday, January 27, 2000, 3:21:07 AM, you wrote:
>
> l> Hi,
> l> Create an object of the vtkBMPReader.
> l> For eg:  vtkBMPReader *reader.
>
> reader->>SetDataExtent(0,255,0,255,0,x);
> l> Where x is the number of files to be read.The 5th parameter shold be zero.
> l> Hope This Helps
> l> Regards,
> l> lloyd
>
> l> vtk wrote:
>
> >> Hello vtkusers,
> >>
> >> I am using vtkBMPReader to read a set of slices (to build a 3D
> >> volume), in vtk man page, it says:
> >>
> >> **********************************
> >> The dimension of the dataset depends upon the number of files
> >> read. Reading a single file results in a 2D image, while reading
> >> more than one file results in a 3D volume. To read a volume,
> >> files must be of the form "FileName." (e.g., foo.ppm.0,
> >> foo.ppm.1, ...).
> >>
> >> You must also specify the image range. This range specifies the
> >> beginning and ending files to read (range can be any pair of
> >> non-negative numbers).
> >> **********************************
> >>
> >> But the problem is that I can not find a method can assign the
> >> file range, like vtkVolum16Reader::SetImageRange().
> >>
> >> Somebody can help me?
> >>
> >> Thanks in advance!
> >>
> >> -Travis
> >> --
> >> Best regards,
> >>  vtk                          mailto:vtk at yifan.net
> >>
> >> -----------------------------------------------------------------------------
> >> This is the private VTK discussion list.  Please keep messages on-topic.
> >> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> >> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> >> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> >> "info vtkusers" to the same address.     Live long and prosper.
> >> -----------------------------------------------------------------------------
>
> l> --
> l> "Success always occurs in private, and failure in full view."
> l>    -Anon.
>
> l> ***********************************
> l> LLOYD JATHANNNA
> l> EMAIL: lloyddj at wiproge.med.ge.com
> l>              lloyd_jath at yahoo.com
> l> Ph no: 5263121
> l>           5263496    extn 306
> l> Address:Wipro ge medical systems
> l>         Golden enclave building
> l>         Airport road
> l>         Bangalore
> l> ************************************
>
> --
> Best regards,
>  vtk                            mailto:vtk at yifan.net
>
> -----------------------------------------------------------------------------
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------

--
"Success always occurs in private, and failure in full view."
   -Anon.

***********************************
LLOYD JATHANNNA
EMAIL: lloyddj at wiproge.med.ge.com
             lloyd_jath at yahoo.com
Ph no: 5263121
          5263496    extn 306
Address:Wipro ge medical systems
        Golden enclave building
        Airport road
        Bangalore
************************************




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list