[vtkusers] Someone can help? - vtkVolume with ITK
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Apr 14 15:17:53 EDT 2004
Wagner,
[Please CC the mailing list as the might interest other users]
During dvpt process I guess you can read/write temporary files. So for
instance, you read you image, you extract your bone or whatever save it
to a file that vtk can read. And then just play with the different
test/example found in VTK to do rendering (using the temporary files).
Does that make sense ?
Mathieu
Wagner Sales wrote:
> Thank's so much, Mathieu.
> Now, I'am understanding why no answer... my post are confused.. :(
> I can read a couple of images with the volume readers (extracted from
> example):
>
> vtkVolume16Reader v16
> v16 SetDataDimensions 64 64
> [v16 GetOutput] SetOrigin 0.0 0.0 0.0
> v16 SetDataByteOrderToLittleEndian
> v16 SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
> v16 SetImageRange 1 93
> v16 SetDataSpacing 3.2 3.2 1.5
>
> Then, I have:
>
> v16 SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter" // will set
> the file prefix ( directory );
> v16 SetImageRange 1 93 // will set range of images
> v16 SetDataSpacing 3.2 3.2 1.5 // finally, the positions between slices
>
> That's pretty simple and good. But I don't need to read the images.
> First, I read the images and make some segmatations operations. In other
> words, my images does not contains every data, e.g: may be just the
> bone, extracted by the segmentation process.
> Well, I have the data and the position, not a couple of file. Then, I
> need to put image by image in a volume, of course, setting the space
> between the last image ( v16 SetDataSpacing 3.2 3.2 1.5 assumes the
> space are the same for all images ).
> Looking in the documentation of the class (
> http://www.vtk.org/doc/nightly/html/classvtkVolumeRayCastMapper-members.html
> ), I not see ( clearly to me ) some way to make that. I was looked in
> All Members to see the inheritance implementation.
>
>
> Wagner
>
>
>
>
>
>
> Mathieu Malaterre wrote:
>
>> Wagner,
>>
>> There are two approachs -I am not sure I understand which one you
>> want-.
>>
>> Either use 2d images: and then the simpliest way it
>> vtkImageViewer(2):
>>
>> http://www.vtk.org/doc/nightly/html/classvtkImageViewer.html
>> http://www.vtk.org/doc/nightly/html/classvtkImageViewer2.html
>>
>> Or you want to render the whole volume, using for example
>> vtkVolumeRayCastMapper :
>>
>> http://www.vtk.org/doc/nightly/html/classvtkVolumeRayCastMapper.html
>>
>>
>> If you have the book it should be pretty simple. And you can still
>> access the online doc at:
>>
>> http://www.vtk.org/doc/nightly/html/classes.html
>>
>> Or you can go:
>>
>> http://www.vtk.org/doc/nightly/html/classvtkVolume16Reader.html
>>
>> And study tests/ and examples (scroll down a little bit the page)
>>
>> Mathieu
>>
>> Wagner Sales wrote:
>>
>>>
>>> Hi all,
>>>
>>> Probably, my question are too simple to this list, but I'm really new in
>>> VTK. I was acquired the books and I was searched by help before post
>>> that ( are the home lessons ;) ).
>>> My problem is too simple. I need to create a vtkVolume and display it,
>>> but in examples, I have that only using the vtkVolumeReader.
>>> I don't need that, since I'm using the ITK to read and perform some
>>> operations in segmentation on imagens. Because that, I have the three
>>> most important series ( sagittal, coronal and transversal ) in
>>> objects that's I can convert to VTK. Then, how to put the images in
>>> volume, for
>>> example, by pass the data ( slice by slice, in vtkImage, for example )
>>> and the three cordinates that's will located in final volume?
>>>
>>> thks
>>>
>>> Wagner
>>>
>>> Sorry by post this here by second time... That's will the last.
>>> If someone have any document, faq, etc, please!
>>> I was searched at google, at faq, at users list, etc.
>>> May be I'm completely wrong in my approach, but unfortunatelly, I
>>> don't have a lot of time. Since I have the correct approach to solve
>>> the problem, I need just the start point, e.g: You approach are not
>>> correct, read these doc, or then: use these objects.
>>>
>>> thks
>>>
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list. Please keep messages
>>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
>>
>
>
>
More information about the vtkusers
mailing list