[vtkusers] 8 bit data volume rendering (yet again)

Divya Rathore divyarathore at gmail.com
Thu Apr 23 03:51:11 EDT 2009


Thanks Jerome!

Is:

virtual void SetDataExtent<http://www.vtk.org/doc/release/4.2/html/classvtkImageReader2.html#z2403_0>(int,
int, int, int, int, int)

the one to be used to set dimentions? What is the exact usage? which int is
what? :)
All that the docs mention is "Get/Set the extent of the data on disk."



On Thu, Apr 23, 2009 at 11:33 AM, Jérôme <jerome.velut at gmail.com> wrote:

> Hi,
>
> Sorry for my last answer, my understanding of your problem was wrong. If I
> am right, you should use the vtkImageReader (or vtkImageReader2) that allow
> you to load a stack of raw images as a volume. The member functions
> SetDataScalarTypeToChar( ) and SetFileDimensionality( 2 ) should do the
> trick for your 8bit stack. Set other information (file prefix, size, etc.)
> and you will have as output an 8bit volume with dimension on z equal to the
> number of files and x,y dimensions to the image size you set.
>
> Yes, keep hope! What you wish is possible with VTK!
>
> Best regards,
> Jerome
>
> 2009/4/23 Divya Rathore <divyarathore at gmail.com>
>
>> Hi All,
>>
>> Kind of my last attempt looking for a solution for this..
>>
>> How do I do volume rendering (one may call it skin extraction as in
>> Medical1 sample) for 8 Bit dataset in VTK?
>> Image format could be multiple Tiff files or multiple raw 8-bit files.
>>
>> Medical1 sample takes 16bit images. But I have around 800 files with
>> 1024*512 resolution so 16 bit data for that is a bit too much for Medical1
>> sample to handle. Hence the need to render 8 Bit data set.
>>
>> I guess this would be my last attempt to seek suggestions regarding VTK
>> before I try other options. But am still hopeful..
>>
>> regards,
>> D Rathore
>>
>>
>> On Sun, Apr 19, 2009 at 7:24 PM, Divya Rathore <divyarathore at gmail.com>wrote:
>>
>>> Hi All,
>>>
>>> I was using Medical sample with Visual C++.
>>> It takes 16 bit files in the format xxx.1, xxx.2, xxx.3 etc. All works to
>>> taste.
>>>
>>> The Problem - How can I supply it 8 bit files? I have around 800 files
>>> and converting them to 16 bit will double the data size - too huge for my
>>> graphics card.
>>>
>>> regards,
>>>
>>>
>>
>>
>> --
>> "The difference between school and life? In school, you're taught a lesson
>> and then given a test. In life, you're given a test that teaches you a
>> lesson."
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>


-- 
"The difference between school and life? In school, you're taught a lesson
and then given a test. In life, you're given a test that teaches you a
lesson."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090423/d5959354/attachment.htm>


More information about the vtkusers mailing list