[Insight-users] file writer/reader problem

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Thu May 18 06:55:36 EDT 2006


On Wed, 2006-05-17 at 19:37 -0700, k s wrote:
> Hello,
> 
> I am having trouble overwriting a file that I've already written out to.  It
> gives an "unable to open file" error when I try something like the
> pseudocode below:
> 
> I have a writerType Pointer writer,
> 	 a readerType reader, and
> 	 two ImageType InputFile, Outputfile.
> 
> After 
> 
> reader->SetFileName(InputFile);

I think the reader->SetFileName wants a char * file_name_string not an
ImageType. Something like reader->SetFileName( "in_file.png" ); or
reader->SetFileName( argv[1] ); Are you getting any real images out with
sane names?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060518/52cb1d98/attachment.pgp


More information about the Insight-users mailing list