[Insight-users] How to implement my first example??

Erkang Cheng ekyaya at gmail.com
Thu Jul 19 09:35:32 EDT 2012


Hi,

Please try the following simple modification. Hope it works.

int main()
{
  typedef itk::Image< unsigned short, 3 > ImageType;

  ImageType::Pointer image = ImageType::New();

  std::cout << "ITK Hello World !" << std::endl;

  system("pause");

  return 0;
}



Best
Erkang

On Thu, Jul 19, 2012 at 8:05 AM, Kifaya Sabbah <ksabbah84 at yahoo.com> wrote:

> Dear insight users;
>
> I am new in ITK and need help in the first step.
> I have installed and compiled ITK for windows win MinGW.
> It seems every thing is OK as shown in the ITK software guide.
> Now, I am trying my first example for hello world.
> I followed the instructions by creating a new folder c:\test and copied
> two files from C:\Insight\Examples\Installation
> CMakeLists.txt  and  the source code  HelloWorld.cxx
> The compilation was successful but I cannot see the output to check what I
> have done in this example?
> I'll appreciate your your help.
>
> Thank you very much
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> 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/20120719/cb162b60/attachment.htm>


More information about the Insight-users mailing list