[vtkusers] staking a seires of bmp files
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Apr 6 08:46:41 EDT 2004
V. Varadhan,
> # For 512 x 512 images foo1 to foo100
> this->InternalFileName = "C:/foo1.bmp"
My mistake, I didn't had my cup of coffee yet, I thought 'foo' was a
directory and 1.bmp... 100.bmp the files ...
> Also, try not to use vtkPolyDataMapper.
The the bmp reader is definitely right. But you can not pass a
vtkImageData to a polydata mapper. Try a vtkImageViewer /
vtkImageViewer2 which are really easy to use.
> Mathieu.. kindly correct me if I am wrong.
Well you were all right. Thanks for your corrections.
Mathieu
> HTH..
>
> V. Varadhan.
>
>>megha agarwal wrote:
>>
>>>dear frens
>>> > as directed by you, i have tried reading a series of bmp files, but i
>>>am
>>> > unable to do so.
>>> > here is the code that i have used
>>> >
>>> > # For 512 x 512 images foo1 to foo100
>>> >
>>> > vtkBMPReader* bmp_d = vtkBMPReader::New();
>>> > bmp_d->SetFilePrefix ("c:/foo"); // base file prefix for a series
>>> > bmp_d->SetFilePattern ("%s%d.bmp");
>>
>>Do you run your example in console mode ? The reader should complain and
>>give a reason why. I suspect because you did not specify the directory
>>separation:
>>
>>
>>bmp_d->SetFilePrefix ("c:/foo/");
>> ^
>>
>>HTH
>>Mathieu
>>
>>
>>_______________________________________________
>>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