[vtkusers] Re: wrong dimensions
Dr. Dan White
dan at chalkie.org.uk
Wed Nov 6 04:04:50 EST 2002
Hi,
WRT Florian's volume rendering problem
I have used the TIFF and JPEG reader for 8 bit RGB images, and it
seems to work well.
I think also with BMP you will need to use the vtkImageLuminance to
get the scalar luminance value from the RGB colour
for instance (in python) for files filename00.JPG to filename24.JPG
# Data reader
reader1 = vtkJPEGReader ()
reader1.SetFilePrefix(filename)
reader1.SetFilePattern("%s%02i.JPG")
reader1.SetDataExtent(0,182,0,212,0,24)
reader1.SetDataSpacing(1,1,2.45)
reader1.SetDataByteOrderToBigEndian
reader = vtkImageLuminance ()
reader.SetInput (reader1.GetOutput())
then do the ray casting etc.
Cheers
Dan
On Wednesday, November 6, 2002, at 10:45 , mista.tapas at gmx.net wrote:
>> Hi,
>>
>> if it is 170x138x20 data set then use
>>
>> (0,169,0,137,0,19)
>>
>> or if you bpm slices are numbered 1-20
>> ....,1,20)
>
>
> Thanks for the hint. We actually already tried this. And it didn`t
> make a
> difference. We actually have 21 pictures numbered 0 - 20, and we
> thought of
> (0,169,0,137,0,20), too. I`ll try around some more. Could it be that
> one must
> use RLE encoding in the bmp or something? I created the bmp`s by
> converting
> them from pgm`s to bmp`s using xv. Maybe i did something wrong along
> that
> lines..
>
> Well thanks again for the quick answer.
>
> Florian Schmidt
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
>
>
dan at chalkie.org.uk
http://www.chalkie.org.uk
Daniel James White PhD.
Cell Biology
Department of Biological and Environmental Science
University of Jyväskylä
FIN-40351
Jyväskylä
Finland
+358 414740463 (mobile)
+358 (0)14 260 4183 (office)
More information about the vtkusers
mailing list