[Insight-users] Using an existing datapointer for vnl_matrix
Luis Ibanez
luis.ibanez at kitware.com
Mon Jan 15 16:42:51 EST 2007
Hi Arne,
Just for the record:
Please note that you could have also loaded this data
as a RAW Image using the itkRawImageIO class.
An even simpler way could have been to create a Meta
Image header for the binary file. Then you could have
read the file by simply using the itk::ImageFileReader.
Regards,
Luis
-----------------
Arne Hansen wrote:
> Hello. I have loaded a matrix from a binary file using standard c++
> fstream. I allocated the memory using new, and have a pointer pointing
> at it. Now i want to use this data in a vnl-matrix. How can i do that?
>
> If there is an example i would appreciate it.
>
> Thank you
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list