[Insight-users] many errors

Luis Ibanez luis.ibanez at kitware.com
Wed Jun 17 06:29:56 EDT 2009


Hi Syrine,

The code looks ok.
and the attached CMakeLists.txt file, could be simplified
but it doesn't seem to have anything that will generate
compilation errors.

What errors exactly do you get ?

Please post some of the error messages to the mailing list.


      Thanks


           Luis


---------------------------------------
On Wed, Jun 17, 2009 at 4:43 AM, Syrine Sahmim <syrine.sahmim at yahoo.fr>wrote:

>
>
> ----- Message transféré ----
> *De :* Syrine Sahmim <syrine.sahmim at yahoo.fr>
> *À :* insight-users at itk.org
> *Envoyé le :* Mercredi, 17 Juin 2009, 9h42mn 10s
> *Objet :* [Insight-users] (no subject)
>
> hello
> this program also gives errors in compilation phase
> i joined the cmakelists file
> Can help me to find error
> thanks
>
>
> void main()
> {
> // Definition of stuctures
> typedef unsigned char PixelType;
> const unsigned int Dimension = 2;
> typedef itk::Image< PixelType, Dimension > ImageType;
>
> typedef itk::ImageFileReader< ImageType > ReaderType;
> typedef itk::ImageFileWriter< ImageType > WriterType;
>
> // Create a object of reader and read the image
> ReaderType::Pointer reader = ReaderType::New();
> WriterType::Pointer writer = WriterType::New();
>
> const char pInputfileName[] = "003F87DA.jpg";
> const char pOutputfileName[] = "003F87DA.jpg";
>
> reader->SetFileName( pInputfileName );
> reader->Update();
>
> ImageType::Pointer image = reader->GetOutput();
>
>
> writer->SetFileName( pOutputfileName );
>
> writer->SetInput( reader->GetOutput() );
>
> try
> {
> writer->Update();
> }
>
> catch( itk::ExceptionObject & err )
> {
> std::cout << "ExceptionObject caught !" << std::endl;
> std::cout << err << std::endl;
> exit(-1);
> }
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090617/ad849167/attachment-0001.htm>


More information about the Insight-users mailing list