[Insight-users] imagereadwrite error 2 !!!!!

Kent Williams kent at psychiatry.uiowa.edu
Fri Mar 10 11:37:54 EST 2006


Have you checked out and built InsightApplications? The program 
ConvertBetweenFileFormats can convert from any ITK-supported file format 
to any other ITK-supported file format. I used it to convert a DICOM 
slice to a PNG file, and then converted the PNG file to an Analyze file.

I'm using the current CVS version of ITK, basically pre-2.6. If you want 
to post your source code, I'd look at it to see what it does. The 
description you've given of your problem isn't sufficient for me to make 
any suggestions on how to fix it.




Command lines and output for ConvertBetweenFileFormats:

ConvertBetweenFileFormats 006872.002.021 crapola.png unsigned_char
Information about the input image "006872.002.021":
dimension: 3
pixel type: scalar
number of components: 1
component type: short
size: 256 256 1

Information about the output image "crapola.png":
dimension: 3
pixel type: scalar
number of components: 1
component type: unsigned_char
size: 256 256 1

I then converted crapola.png to an Analyze file:

ConvertBetweenFileFormats crapola.png crapola.hdr
Information about the input image "crapola.png":
dimension: 2
pixel type: scalar
number of components: 1
component type: unsigned_char
size: 256 256

Information about the output image "crapola.hdr":
dimension: 2
pixel type: scalar
number of components: 1
component type: unsigned_char
size: 256 256

ilker hacıhaliloğlu wrote:

> Hi All
>
> About my problem that i posted . I can convert png to png or analyze 
> to png but if i wantto convert png to analyze I am getting the erroro 
> that I have written before
>
>
> error signature
> AppName: imagereadwrite.exe AppVer: 0.0.0.0 <http://0.0.0.0> ModName: 
> imagereadwrite.exe
> ModVer: 0.0.0.0 <http://0.0.0.0> Offset: 00069277
>
> by the way I am using microsoft visual studio.net <http://studio.net> 
> 2003 ( iam choosing visual
> itk 2.41 cmake 2.2
>
> compiler:Visual Studio 7 .NET 2003
> -- 
> ------------------------------------------------------------------
>
> '.....ich möchte mir eine ader öffnen, die mir die ewige freiheit 
> schaffte....'
>
> --------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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