From haratron at gmail.com Fri Jan 2 12:59:42 2015 From: haratron at gmail.com (haratron) Date: Fri, 2 Jan 2015 19:59:42 +0200 Subject: [ITK] [ITK-users] WarpImageFilter wrong output Message-ID: Hello and happy new year, I'm using the WarpImageFilter from here: http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter I have original.png that I'm using as the movingImage and I'm creating another one ("empty" image filled with white color, size 1800x1800) that is the fixedImage. The problem is that a blank image filled with black is created instead of the warped image that is expected. original.png : http://i.imgur.com/QQyXgzg.png output.png: http://i.imgur.com/LkYnZ6n.png My full WarpImageFilter.cxx file (includes changes from the original example code): http://pastebin.com/WNDb2TgM What am I doing wrong? John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From haratron at gmail.com Fri Jan 2 13:12:34 2015 From: haratron at gmail.com (haratron) Date: Fri, 2 Jan 2015 20:12:34 +0200 Subject: [ITK] [ITK-dev] WarpImageFilter wrong output Message-ID: Hello and happy new year, I'm using the WarpImageFilter from here: http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter I have original.png that I'm using as the movingImage and I'm creating another one ("empty" image filled with white color, size 1800x1800) that is the fixedImage. The problem is that a blank image filled with black is created instead of the warped image that is expected. original.png : http://i.imgur.com/QQyXgzg.png output.png: http://i.imgur.com/LkYnZ6n.png My full WarpImageFilter.cxx file (includes changes from the original example code): http://pastebin.com/WNDb2TgM What am I doing wrong? John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From blowekamp at mail.nih.gov Fri Jan 2 13:28:05 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Fri, 2 Jan 2015 13:28:05 -0500 Subject: [ITK] [ITK-users] WarpImageFilter wrong output In-Reply-To: References: Message-ID: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> Hello, In your CreateMovingImage2 method how is the "image" argument connected to the pipeline? Brad On Jan 2, 2015, at 12:59 PM, haratron wrote: > Hello and happy new year, > > I'm using the WarpImageFilter from here: > http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter > > I have original.png that I'm using as the movingImage and I'm creating another one ("empty" image filled with white color, size 1800x1800) that is the fixedImage. > > The problem is that a blank image filled with black is created instead of the warped image that is expected. > > original.png : http://i.imgur.com/QQyXgzg.png > output.png: http://i.imgur.com/LkYnZ6n.png > > My full WarpImageFilter.cxx file (includes changes from the original example code): > http://pastebin.com/WNDb2TgM > > What am I doing wrong? > > John > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From haratron at gmail.com Fri Jan 2 22:57:54 2015 From: haratron at gmail.com (haratron) Date: Sat, 3 Jan 2015 05:57:54 +0200 Subject: [ITK] [ITK-users] WarpImageFilter wrong output In-Reply-To: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> References: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> Message-ID: Thanks! What is the difference between: 1. http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter 2. http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3. http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp wrote: > Hello, > > In your CreateMovingImage2 method how is the "image" argument connected to > the pipeline? > > Brad > > On Jan 2, 2015, at 12:59 PM, haratron wrote: > > Hello and happy new year, > > I'm using the WarpImageFilter from here: > http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter > > I have original.png that I'm using as the movingImage and I'm creating > another one ("empty" image filled with white color, size 1800x1800) that is > the fixedImage. > > The problem is that a blank image filled with black is created instead of > the warped image that is expected. > > original.png : http://i.imgur.com/QQyXgzg.png > output.png: http://i.imgur.com/LkYnZ6n.png > > My full WarpImageFilter.cxx file (includes changes from the original > example code): > http://pastebin.com/WNDb2TgM > > What am I doing wrong? > > John > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From ronn at rlkling.com Sat Jan 3 07:33:01 2015 From: ronn at rlkling.com (Ronn Kling) Date: Sat, 03 Jan 2015 07:33:01 -0500 Subject: [ITK] getting RawImageIO to work In-Reply-To: <549B1352.8090207@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> Message-ID: <54A7E17D.30209@rlkling.com> Does anyone have a clue on how to fix this? On 12/24/2014 2:26 PM, Ronn Kling wrote: > I am using ITK 4.6.1, VS2010 and windows 7 64 bit. It gives this error > on the last line in the try box > > > > #include > #include > #include > #include > #include > #include > > #include "itkRawImageIO.h" > #include "itkImageFileReader.h" > #include "itkImageFileWriter.h" > > #using > > using namespace System; > using namespace System::IO; > using namespace System::Windows::Forms; > using namespace System::Drawing; > using namespace System::Collections; > using namespace System::Runtime::InteropServices; > > > int main() > > { > > > try { > typedef unsigned char fixedPixelType; > typedef unsigned char movingPixelType; > > typedef itk::Image fixedImageType; > typedef itk::Image movingImageType; > // create a ImageIO for the raw data files > typedef itk::RawImageIO ImageIOType; > ImageIOType::Pointer fixedimageio = ImageIOType::New(); > > > > } catch(itk::ExceptionObject & err) > > {std::cerr << "itkWrapper caught an ITK exception:\n"; > err.Print(std::cerr); > } > } > On 12/24/2014 2:07 PM, Bill Lorensen wrote: >> Please provide a small, complete compilable example and I'm sure we can help. >> >> >> On Wed, Dec 24, 2014 at 1:14 PM, Ronn Kling wrote: >>> Hello All, >>> >>> I am trying to read in a binary data file using RawImageIO. When I step >>> through with the debugger I get an error on the last line below about memory >>> corruption. As far as I can tell I have everything correct, what am I >>> missing? >>> >>> typedef unsigned char fixedPixelType; >>> typedef unsigned char movingPixelType; >>> >>> typedef itk::Image fixedImageType; >>> typedef itk::Image movingImageType; >>> // create a ImageIO for the raw data files >>> typedef itk::RawImageIO ImageIOType; >>> ImageIOType::Pointer fixedimageio = ImageIOType::New(); >>> _______________________________________________ >>> Community mailing list >>> Community at itk.org >>> http://public.kitware.com/mailman/listinfo/community >> > > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 18047 bytes Desc: not available URL: From brad at lowekamp.net Sat Jan 3 09:35:18 2015 From: brad at lowekamp.net (Bradley Lowekamp) Date: Sat, 3 Jan 2015 09:35:18 -0500 Subject: [ITK] getting RawImageIO to work In-Reply-To: <54A7E17D.30209@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> Message-ID: <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> Hello, You need to set everything for the inageio to know it. The is a complicated example but hopefully it'll be helpful. http://itk.org/Insight/Doxygen/html/Examples_2IO_2VisibleHumanStreamReadWrite_8cxx-example.html I generally recommend writing a metadata mhd header file. http://www.itk.org/Wiki/MetaIO/Documentation#Reading_a_Brick-of-Bytes_.28an_N-Dimensional_volume_in_a_single_file.29 Brad > On Jan 3, 2015, at 7:33 AM, Ronn Kling wrote: > > Does anyone have a clue on how to fix this? > >> On 12/24/2014 2:26 PM, Ronn Kling wrote: >> I am using ITK 4.6.1, VS2010 and windows 7 64 bit. It gives this error on the last line in the try box >> >> >> >> #include >> #include >> #include >> #include >> #include >> #include >> >> #include "itkRawImageIO.h" >> #include "itkImageFileReader.h" >> #include "itkImageFileWriter.h" >> >> #using >> >> using namespace System; >> using namespace System::IO; >> using namespace System::Windows::Forms; >> using namespace System::Drawing; >> using namespace System::Collections; >> using namespace System::Runtime::InteropServices; >> >> >> int main() >> >> { >> >> >> try { >> typedef unsigned char fixedPixelType; >> typedef unsigned char movingPixelType; >> >> typedef itk::Image fixedImageType; >> typedef itk::Image movingImageType; >> // create a ImageIO for the raw data files >> typedef itk::RawImageIO ImageIOType; >> ImageIOType::Pointer fixedimageio = ImageIOType::New(); >> >> >> >> } catch(itk::ExceptionObject & err) >> >> {std::cerr << "itkWrapper caught an ITK exception:\n"; >> err.Print(std::cerr); >> } >> } >>> On 12/24/2014 2:07 PM, Bill Lorensen wrote: >>> Please provide a small, complete compilable example and I'm sure we can help. >>> >>> >>> On Wed, Dec 24, 2014 at 1:14 PM, Ronn Kling wrote: >>>> Hello All, >>>> >>>> I am trying to read in a binary data file using RawImageIO. When I step >>>> through with the debugger I get an error on the last line below about memory >>>> corruption. As far as I can tell I have everything correct, what am I >>>> missing? >>>> >>>> typedef unsigned char fixedPixelType; >>>> typedef unsigned char movingPixelType; >>>> >>>> typedef itk::Image fixedImageType; >>>> typedef itk::Image movingImageType; >>>> // create a ImageIO for the raw data files >>>> typedef itk::RawImageIO ImageIOType; >>>> ImageIOType::Pointer fixedimageio = ImageIOType::New(); >>>> _______________________________________________ >>>> Community mailing list >>>> Community at itk.org >>>> http://public.kitware.com/mailman/listinfo/community >> >> >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronn at rlkling.com Sat Jan 3 15:06:36 2015 From: ronn at rlkling.com (Ronn Kling) Date: Sat, 03 Jan 2015 15:06:36 -0500 Subject: [ITK] getting RawImageIO to work In-Reply-To: <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> Message-ID: <54A84BCC.9020907@rlkling.com> Right, that is the one I followed, the only thing unusual that I am is compiling the code as a managed C++ (Common Language Runtime), is that a problem with ITK????? On 1/3/2015 9:35 AM, Bradley Lowekamp wrote: > Hello, > > You need to set everything for the inageio to know it. The is a > complicated example but hopefully it'll be helpful. > > http://itk.org/Insight/Doxygen/html/Examples_2IO_2VisibleHumanStreamReadWrite_8cxx-example.html > > I generally recommend writing a metadata mhd header file. > > http://www.itk.org/Wiki/MetaIO/Documentation#Reading_a_Brick-of-Bytes_.28an_N-Dimensional_volume_in_a_single_file.29 > > Brad > > > > On Jan 3, 2015, at 7:33 AM, Ronn Kling > wrote: > >> Does anyone have a clue on how to fix this? >> >> On 12/24/2014 2:26 PM, Ronn Kling wrote: >>> I am using ITK 4.6.1, VS2010 and windows 7 64 bit. It gives this >>> error on the last line in the try box >>> >>> >>> >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> >>> #include "itkRawImageIO.h" >>> #include "itkImageFileReader.h" >>> #include "itkImageFileWriter.h" >>> >>> #using >>> >>> using namespace System; >>> using namespace System::IO; >>> using namespace System::Windows::Forms; >>> using namespace System::Drawing; >>> using namespace System::Collections; >>> using namespace System::Runtime::InteropServices; >>> >>> >>> int main() >>> >>> { >>> >>> >>> try { >>> typedef unsigned char fixedPixelType; >>> typedef unsigned char movingPixelType; >>> >>> typedef itk::Image fixedImageType; >>> typedef itk::Image movingImageType; >>> // create a ImageIO for the raw data files >>> typedef itk::RawImageIO ImageIOType; >>> ImageIOType::Pointer fixedimageio = ImageIOType::New(); >>> >>> >>> >>> } catch(itk::ExceptionObject & err) >>> >>> {std::cerr << "itkWrapper caught an ITK exception:\n"; >>> err.Print(std::cerr); >>> } >>> } >>> On 12/24/2014 2:07 PM, Bill Lorensen wrote: >>>> Please provide a small, complete compilable example and I'm sure we can help. >>>> >>>> >>>> On Wed, Dec 24, 2014 at 1:14 PM, Ronn Kling wrote: >>>>> Hello All, >>>>> >>>>> I am trying to read in a binary data file using RawImageIO. When I step >>>>> through with the debugger I get an error on the last line below about memory >>>>> corruption. As far as I can tell I have everything correct, what am I >>>>> missing? >>>>> >>>>> typedef unsigned char fixedPixelType; >>>>> typedef unsigned char movingPixelType; >>>>> >>>>> typedef itk::Image fixedImageType; >>>>> typedef itk::Image movingImageType; >>>>> // create a ImageIO for the raw data files >>>>> typedef itk::RawImageIO ImageIOType; >>>>> ImageIOType::Pointer fixedimageio = ImageIOType::New(); >>>>> _______________________________________________ >>>>> Community mailing list >>>>> Community at itk.org >>>>> http://public.kitware.com/mailman/listinfo/community >>> >>> >>> >>> _______________________________________________ >>> Community mailing list >>> Community at itk.org >>> http://public.kitware.com/mailman/listinfo/community >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Tue Jan 6 19:16:13 2015 From: matimontg at gmail.com (Matias Montroull) Date: Tue, 6 Jan 2015 21:16:13 -0300 Subject: [ITK] [ITK-users] CT/MR Registration using ITK Message-ID: I'm trying to do registration of the 2 attached images (test) to implement CT/RM Registration, which is the best algorithm to achieve the best results? [image: Inline image 1][image: Inline image 2]Hi, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CT.jpg Type: image/jpeg Size: 46303 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: RM.jpg Type: image/jpeg Size: 88147 bytes Desc: not available URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From j.plumat at auckland.ac.nz Tue Jan 6 21:56:00 2015 From: j.plumat at auckland.ac.nz (Jerome Plumat) Date: Wed, 07 Jan 2015 15:56:00 +1300 Subject: [ITK] [ITK-users] CT/MR Registration using ITK In-Reply-To: References: Message-ID: <54ACA040.1030707@auckland.ac.nz> Hi Matias, you should look for multimodal algorithms with metrics such as Mutual Information. Have a look to ITK software guide book 2 section 3.5. Hope it helps. Jerome Plumat ------- School of Medical Sciences University of Auckland If I am not for myself, who will be for me? And if I am only for myself, then what an I? And if not now when? ? Hillel HaZaken On 07/01/15 13:16, Matias Montroull wrote: > I'm trying to do registration of the 2 attached images (test) to > implement CT/RM Registration, which is the best algorithm to achieve > the best results? > Hi, > > > > > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From joel.schaerer at laposte.net Wed Jan 7 05:36:53 2015 From: joel.schaerer at laposte.net (=?windows-1252?Q?Jo=EBl_Schaerer?=) Date: Wed, 07 Jan 2015 11:36:53 +0100 Subject: [ITK] [ITK-users] Possible missing method in itkImageSource In-Reply-To: <0023FC88-13F9-4ED2-9767-FB324A2EE0CB@mail.nih.gov> References: <54413DE5.1050108@laposte.net> <3271CF4A-5DCC-47A5-8456-05BB9325FC4C@gmail.com> <0023FC88-13F9-4ED2-9767-FB324A2EE0CB@mail.nih.gov> Message-ID: <54AD0C45.1090102@laposte.net> Any plans on fixing this? I've run into this issue again when attempting a DisconnectPipeline() on a named output. It crashes because the SetOutput() method attempts to create a new output after detaching the old one using the faulty MakeOutput(key) method: 0x000000000063a3dc in itk::ProcessObject::SetOutput (this=0x1b2e060, name=..., output=) at ../Modules/Core/Common/src/itkProcessObject.cxx:484 483 DataObjectPointer newOutput = this->MakeOutput(key); 484 this->SetOutput(key, newOutput); // Segfault Thanks, Jo?l On 22/10/2014 15:44, Bradley Lowekamp wrote: > Hello, > > I'm going to take a look at this issue. > > Brad > > On Oct 17, 2014, at 5:01 PM, Jim Miller wrote: > >> At first glance it looks like an oversight. I would expect, however, that we should be seeing warnings about the named version of MakeOutput in ProcessObject being hidden. >> >> Jim >> >>> On Oct 17, 2014, at 12:03 PM, Jo?l Schaerer wrote: >>> >>> Hi all, >>> >>> I've run into a problem with named outputs, which I believe could be a bug in ITK. >>> >>> When using named outputs, one is supposed to create the output data objects in the constructor using the MakeOutput method (see http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilterMultipleOutputs for an example). The MakeOutput method exists for both indexed and named outputs. >>> . >>> These methods are declared and defined first in itkProcessObject: >>> >>> .h: >>> * ... >>> * ProcessObject::MakeOutput. Note that MakeOutput always returns a >>> * itkSmartPointer to a DataObject. ImageSource and MeshSource override >>> * this method to create the correct type of image and mesh respectively. >>> * If a filter has multiple outputs of different types, then that >>> * filter must provide an implementation of MakeOutput(). */ >>> virtual DataObjectPointer MakeOutput( const DataObjectIdentifierType & ); >>> virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx); >>> >>> .cxx >>> DataObject::Pointer >>> ProcessObject >>> ::MakeOutput( const DataObjectIdentifierType & name ) >>> { >>> itkDebugMacro("MakeOutput(" << name << ")"); >>> if( this->IsIndexedOutputName(name) ) >>> { >>> return this->MakeOutput( this->MakeIndexFromOutputName(name) ); >>> } >>> return static_cast(DataObject::New().GetPointer()); >>> } >>> >>> DataObject::Pointer >>> ProcessObject >>> ::MakeOutput(DataObjectPointerArraySizeType) >>> { >>> return static_cast(DataObject::New().GetPointer()); >>> } >>> >>> >>> For indexed outputs, it is redefined in ImageSource in order to create an image object of the correct type. >>> >>> template< typename TOutputImage > >>> ProcessObject::DataObjectPointer >>> ImageSource< TOutputImage > >>> ::MakeOutput(ProcessObject::DataObjectPointerArraySizeType) >>> { >>> return TOutputImage::New().GetPointer(); >>> } >>> >>> So far, so good. However, the named output version of MakeOutput is not redefined in ImageSource, contrary to what the comment in itkProcessObject.h says. And so if someone tries to use it in an ImageToImageFilter, it will crash. >>> >>> Any reason for this behavior? Is this an oversight? >>> >>> Thanks, >>> >>> Jo?l >>> _____________________________________ >>> _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From joel.schaerer at laposte.net Wed Jan 7 06:31:41 2015 From: joel.schaerer at laposte.net (=?windows-1252?Q?Jo=EBl_Schaerer?=) Date: Wed, 07 Jan 2015 12:31:41 +0100 Subject: [ITK] [ITK-users] Possible missing method in itkImageSource In-Reply-To: <54AD0C45.1090102@laposte.net> References: <54413DE5.1050108@laposte.net> <3271CF4A-5DCC-47A5-8456-05BB9325FC4C@gmail.com> <0023FC88-13F9-4ED2-9767-FB324A2EE0CB@mail.nih.gov> <54AD0C45.1090102@laposte.net> Message-ID: <54AD191D.4050605@laposte.net> I just noticed that the problem is fixed in the latest release. Thanks for the fix, and sorry for the noise! Joel On 07/01/2015 11:36, Jo?l Schaerer wrote: > Any plans on fixing this? I've run into this issue again when > attempting a DisconnectPipeline() on a named output. It crashes > because the SetOutput() method attempts to create a new output after > detaching the old one using the faulty MakeOutput(key) method: > > 0x000000000063a3dc in itk::ProcessObject::SetOutput (this=0x1b2e060, > name=..., output=) at > ../Modules/Core/Common/src/itkProcessObject.cxx:484 > 483 DataObjectPointer newOutput = this->MakeOutput(key); > 484 this->SetOutput(key, newOutput); // Segfault > > Thanks, > > Jo?l > > On 22/10/2014 15:44, Bradley Lowekamp wrote: >> Hello, >> >> I'm going to take a look at this issue. >> >> Brad >> >> On Oct 17, 2014, at 5:01 PM, Jim Miller wrote: >> >>> At first glance it looks like an oversight. I would expect, however, >>> that we should be seeing warnings about the named version of >>> MakeOutput in ProcessObject being hidden. >>> >>> Jim >>> >>>> On Oct 17, 2014, at 12:03 PM, Jo?l Schaerer >>>> wrote: >>>> >>>> Hi all, >>>> >>>> I've run into a problem with named outputs, which I believe could >>>> be a bug in ITK. >>>> >>>> When using named outputs, one is supposed to create the output data >>>> objects in the constructor using the MakeOutput method (see >>>> http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilterMultipleOutputs >>>> for an example). The MakeOutput method exists for both indexed and >>>> named outputs. >>>> . >>>> These methods are declared and defined first in itkProcessObject: >>>> >>>> .h: >>>> * ... >>>> * ProcessObject::MakeOutput. Note that MakeOutput always returns a >>>> * itkSmartPointer to a DataObject. ImageSource and MeshSource >>>> override >>>> * this method to create the correct type of image and mesh >>>> respectively. >>>> * If a filter has multiple outputs of different types, then that >>>> * filter must provide an implementation of MakeOutput(). */ >>>> virtual DataObjectPointer MakeOutput( const >>>> DataObjectIdentifierType & ); >>>> virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType >>>> idx); >>>> >>>> .cxx >>>> DataObject::Pointer >>>> ProcessObject >>>> ::MakeOutput( const DataObjectIdentifierType & name ) >>>> { >>>> itkDebugMacro("MakeOutput(" << name << ")"); >>>> if( this->IsIndexedOutputName(name) ) >>>> { >>>> return this->MakeOutput( this->MakeIndexFromOutputName(name) ); >>>> } >>>> return static_cast(DataObject::New().GetPointer()); >>>> } >>>> >>>> DataObject::Pointer >>>> ProcessObject >>>> ::MakeOutput(DataObjectPointerArraySizeType) >>>> { >>>> return static_cast(DataObject::New().GetPointer()); >>>> } >>>> >>>> >>>> For indexed outputs, it is redefined in ImageSource in order to >>>> create an image object of the correct type. >>>> >>>> template< typename TOutputImage > >>>> ProcessObject::DataObjectPointer >>>> ImageSource< TOutputImage > >>>> ::MakeOutput(ProcessObject::DataObjectPointerArraySizeType) >>>> { >>>> return TOutputImage::New().GetPointer(); >>>> } >>>> >>>> So far, so good. However, the named output version of MakeOutput is >>>> not redefined in ImageSource, contrary to what the comment in >>>> itkProcessObject.h says. And so if someone tries to use it in an >>>> ImageToImageFilter, it will crash. >>>> >>>> Any reason for this behavior? Is this an oversight? >>>> >>>> Thanks, >>>> >>>> Jo?l >>>> _____________________________________ >>>> > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mohammedrashadkm at gmail.com Wed Jan 7 08:08:53 2015 From: mohammedrashadkm at gmail.com (Rashad M) Date: Wed, 7 Jan 2015 14:08:53 +0100 Subject: [ITK] [ITK-dev] cmake variable for itkvcl libraries when linking with ITK Message-ID: Hello, When linking with itkvnl libraries from ITK there is a cmake variable that hold the proper target (ITKVNL_LIBRARIES). This is the proper way to add ITK vnl modules as dependency for external targets. All this are after including UseITK.cmake But what about itk vcl libraries. Ofcourse I could use ITK_VNL_LIBRARIES as target itkvcl is a dependency for itkvnl.Is there is something similar to that of vnl like ITK_VCL_LIBRARIES ? -- Regards, Rashad -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matt.mccormick at kitware.com Wed Jan 7 10:39:22 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 10:39:22 -0500 Subject: [ITK] [ITK-dev] cmake variable for itkvcl libraries when linking with ITK In-Reply-To: References: Message-ID: Hi Rashad, The itkvcl library is created [1] as part of the ITKVNL [2] module, so it wiill be listed in the ITKVNL_LIBRARIES CMake variable as described here [3]. HTH, Matt [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/VNL/src/vxl/vcl/CMakeLists.txt;h=bfee21e9d32342f7c3b5bb720991978a58acbddc;hb=HEAD#l362 [2] http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/VNL/itk-module.cmake;h=353e0b168543723bf70d1aae57c4e98c65ed8e05;hb=HEAD#l5 [3] http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleAPI.cmake;h=304d864e957a28bc28df1bb49f7d06ebbd641fdd;hb=HEAD#l41 On Wed, Jan 7, 2015 at 8:08 AM, Rashad M wrote: > Hello, > > When linking with itkvnl libraries from ITK there is a cmake variable that > hold the proper target (ITKVNL_LIBRARIES). This is the proper way to add ITK > vnl modules as dependency for external targets. All this are after including > UseITK.cmake > > But what about itk vcl libraries. Ofcourse I could use ITK_VNL_LIBRARIES as > target itkvcl is a dependency for itkvnl.Is there is something similar to > that of vnl like ITK_VCL_LIBRARIES ? > > > -- > Regards, > Rashad > > _______________________________________________ > 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://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://public.kitware.com/mailman/listinfo/insight-developers > _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From floris at isi.uu.nl Wed Jan 7 11:44:20 2015 From: floris at isi.uu.nl (Floris Berendsen) Date: Wed, 7 Jan 2015 17:44:20 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults Message-ID: Hi all, I was wondering what the progress is of ITK with respect to Win64 Visual Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected Nightly Exotic, but it reports many segfault failures (I can confirm the same behaviour). All communications I could find related to this topic seem rather old: http://public.kitware.com/pipermail/community/2013-November/004255.html http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 Does anyone know more about this? Would it help if I try to make a minimal example that reproduces the error? Thanks, Floris -------------- next part -------------- An HTML attachment was scrubbed... URL: From nekto1989 at gmail.com Wed Jan 7 12:33:57 2015 From: nekto1989 at gmail.com (=?UTF-8?B?0JzQsNGAJ9GP0L0g0JrQu9C40LzQvtCy?=) Date: Wed, 7 Jan 2015 19:33:57 +0200 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: Hi Floris, It would be good if you can reproduce this compiler problem without ITK. I've tried but no success. https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data As workaround I suggest adding something like this #ifdef _MSC_VER #if (_MSC_VER >= 1800) #ifdef _WIN64 __declspec(align(16)) #endif #endif #endif for classes that cause problems (FixedArray, Index etc.) Marian 2015-01-07 18:44 GMT+02:00 Floris Berendsen : > Hi all, > > I was wondering what the progress is of ITK with respect to Win64 Visual > Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected > Nightly Exotic, but it reports many segfault failures (I can confirm the > same behaviour). > All communications I could find related to this topic seem rather old: > > http://public.kitware.com/pipermail/community/2013-November/004255.html > > http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching > > http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 > > Does anyone know more about this? Would it help if I try to make a minimal > example that reproduces the error? > > Thanks, > Floris > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mohammedrashadkm at gmail.com Wed Jan 7 12:40:17 2015 From: mohammedrashadkm at gmail.com (Rashad M) Date: Wed, 7 Jan 2015 18:40:17 +0100 Subject: [ITK] [ITK-dev] cmake variable for itkvcl libraries when linking with ITK In-Reply-To: References: Message-ID: On Wed, Jan 7, 2015 at 4:39 PM, Matt McCormick wrote: > Hi Rashad, > > The itkvcl library is created [1] as part of the ITKVNL [2] module, so > it wiill be listed in the ITKVNL_LIBRARIES CMake variable as described > here [3]. > Thanks Matt. So itkvcl should be changed to ITKVNL_LIBRARIES in cmake. I think I got 'cannot find -litkvcl' only when linking with external vxl > HTH, > Matt > > [1] > http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/VNL/src/vxl/vcl/CMakeLists.txt;h=bfee21e9d32342f7c3b5bb720991978a58acbddc;hb=HEAD#l362 > > > [2] > http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/VNL/itk-module.cmake;h=353e0b168543723bf70d1aae57c4e98c65ed8e05;hb=HEAD#l5 > > > [3] > http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleAPI.cmake;h=304d864e957a28bc28df1bb49f7d06ebbd641fdd;hb=HEAD#l41 > > On Wed, Jan 7, 2015 at 8:08 AM, Rashad M > wrote: > > Hello, > > > > When linking with itkvnl libraries from ITK there is a cmake variable > that > > hold the proper target (ITKVNL_LIBRARIES). This is the proper way to add > ITK > > vnl modules as dependency for external targets. All this are after > including > > UseITK.cmake > > > > But what about itk vcl libraries. Ofcourse I could use ITK_VNL_LIBRARIES > as > > target itkvcl is a dependency for itkvnl.Is there is something similar to > > that of vnl like ITK_VCL_LIBRARIES ? > > > > > > -- > > Regards, > > Rashad > > > > _______________________________________________ > > 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://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://public.kitware.com/mailman/listinfo/insight-developers > > > -- Regards, Rashad -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From blowekamp at mail.nih.gov Wed Jan 7 11:55:53 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 07 Jan 2015 09:55:53 -0700 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: Hello, We have narrowed down the problem to SSE2 code generation with the compiler. The work around include disabling SSE instruction or enabling AVX2 instructions to by pass the issue. Yes, it would be VERY VERY helpful to create a minimal examples of the issue. Ideally it would be in a self continued files, perhaps the output from the pre-processor. Thanks! Brad On Jan 7, 2015, at 9:44 AM, Floris Berendsen wrote: > Hi all, > > I was wondering what the progress is of ITK with respect to Win64 Visual Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected Nightly Exotic, but it reports many segfault failures (I can confirm the same behaviour). > All communications I could find related to this topic seem rather old: > > http://public.kitware.com/pipermail/community/2013-November/004255.html > http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching > http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 > > Does anyone know more about this? Would it help if I try to make a minimal example that reproduces the error? > > Thanks, > Floris > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Wed Jan 7 13:05:30 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 13:05:30 -0500 Subject: [ITK] [ITK-dev] cmake variable for itkvcl libraries when linking with ITK In-Reply-To: References: Message-ID: On Wed, Jan 7, 2015 at 12:40 PM, Rashad M wrote: > > > On Wed, Jan 7, 2015 at 4:39 PM, Matt McCormick > wrote: >> >> Hi Rashad, >> >> The itkvcl library is created [1] as part of the ITKVNL [2] module, so >> it wiill be listed in the ITKVNL_LIBRARIES CMake variable as described >> here [3]. > > > Thanks Matt. So itkvcl should be changed to ITKVNL_LIBRARIES in cmake. I > think I got 'cannot find -litkvcl' only when linking with external vxl > Yes, that should work. Matt _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matt.mccormick at kitware.com Wed Jan 7 13:12:26 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 13:12:26 -0500 Subject: [ITK] ITK_NULLPTR and ITK_OVERRIDE on VS2012+ In-Reply-To: References: <44EA4124-D6D3-4AD6-ADEF-CEFBC68568E2@mail.nih.gov> Message-ID: Hi, It looks like this is a known issue in VS 2013 that is not going to be addressed [1]. We should probably find a work-around. Newer CMake has better support for this [2], but we do not yet require CMake 3. try_compile's make the initial configuration time longer, but we'll have to use them if necessary. Thanks, Matt [1] https://connect.microsoft.com/VisualStudio/feedback/details/763051/a-value-of-predefined-macro-cplusplus-is-still-199711l [2] http://www.cmake.org/cmake/help/v3.1/manual/cmake-compile-features.7.html On Tue, Dec 23, 2014 at 2:31 PM, ???'?? ?????? wrote: > Hi, > > Even latest VS2013 has __cplusplus defined to 199711L. I just changed second > compiler from mingw to mingw-w64 and GCC 4.9.2 found some problems in code > because of ITK_OVERRIDE that was ignored by VS and mingw32. > > Marian > > 2014-12-23 18:36 GMT+02:00 Bradley Lowekamp : >> >> Hello, >> >> Yes you could be done with CMake try compiles an what not. >> >> Checking to see if the C++ version is C++11 seems reasonable. Is this >> causing any problems? >> >> Brad >> >> On Dec 23, 2014, at 5:36 AM, ???'?? ?????? wrote: >> >> > Hi, >> > >> > I've found out that ITK defines ITK_NULLPTR to NULL instead of nullptr >> > and ITK_OVERRIDE to nothing. This happens in itkMacro.h. Can't this be done >> > in some other way like check for HAS_OVERRIDE, HAS_NULLPTR instead of >> > checking for __cplusplus? >> > >> > Best regards, >> > Marian >> > _______________________________________________ >> > Community mailing list >> > Community at itk.org >> > http://public.kitware.com/mailman/listinfo/community >> > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From blowekamp at mail.nih.gov Wed Jan 7 13:00:48 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 07 Jan 2015 11:00:48 -0700 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: If the problem can be reproduced with just using itkFixedArray.h allow that would be significant progress. As that class does not depend on any other compiled code/library. Brad On Jan 7, 2015, at 10:33 AM, ???'?? ?????? wrote: > Hi Floris, > > It would be good if you can reproduce this compiler problem without ITK. I've tried but no success. > > https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data > > As workaround I suggest adding something like this > > #ifdef _MSC_VER > #if (_MSC_VER >= 1800) > #ifdef _WIN64 > __declspec(align(16)) > #endif > #endif > #endif > > for classes that cause problems (FixedArray, Index etc.) > > Marian > > 2015-01-07 18:44 GMT+02:00 Floris Berendsen : > Hi all, > > I was wondering what the progress is of ITK with respect to Win64 Visual Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected Nightly Exotic, but it reports many segfault failures (I can confirm the same behaviour). > All communications I could find related to this topic seem rather old: > > http://public.kitware.com/pipermail/community/2013-November/004255.html > http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching > http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 > > Does anyone know more about this? Would it help if I try to make a minimal example that reproduces the error? > > Thanks, > Floris > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Wed Jan 7 14:40:36 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 14:40:36 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: +1 Also, note that builds should be against ITK master -- a patch merged on 2015-01-03 has already addressed failing registration tests: https://open.cdash.org/buildSummary.php?buildid=3637621 Thanks, Matt On Wed, Jan 7, 2015 at 1:00 PM, Bradley Lowekamp wrote: > If the problem can be reproduced with just using itkFixedArray.h allow that > would be significant progress. As that class does not depend on any other > compiled code/library. > > Brad > > > > On Jan 7, 2015, at 10:33 AM, ???'?? ?????? wrote: > > Hi Floris, > > It would be good if you can reproduce this compiler problem without ITK. > I've tried but no success. > > https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data > > As workaround I suggest adding something like this > > #ifdef _MSC_VER > #if (_MSC_VER >= 1800) > #ifdef _WIN64 > __declspec(align(16)) > #endif > #endif > #endif > > for classes that cause problems (FixedArray, Index etc.) > > Marian > > 2015-01-07 18:44 GMT+02:00 Floris Berendsen : >> >> Hi all, >> >> I was wondering what the progress is of ITK with respect to Win64 Visual >> Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected >> Nightly Exotic, but it reports many segfault failures (I can confirm the >> same behaviour). >> All communications I could find related to this topic seem rather old: >> >> http://public.kitware.com/pipermail/community/2013-November/004255.html >> >> http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching >> >> http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 >> >> Does anyone know more about this? Would it help if I try to make a minimal >> example that reproduces the error? >> >> Thanks, >> Floris >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community >> > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From matt.mccormick at kitware.com Wed Jan 7 14:47:05 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 14:47:05 -0500 Subject: [ITK] Discuss what's new ITK in ITK 4.7.0, what is coming in ITK 4.8.0 Message-ID: There are a couple of upcoming opportunities to share, discuss, design, and learn with your fellow ITK community members. Following the recent 4.7.0, this is also a great time to discuss what was new in ITK 4.7.0, and what to work on for ITK 4.8.0. On Thursday (tomorrow), 1:00 PM Eastern USA time, there will be a Google+ Hangout where we will be doing code reviews: https://plus.google.com/u/1/events/cmapnnf3gu3adnsdpfjr93a6hr8?authkey=CMbjm5aD2rO68gE On Friday, 11:00 AM Eastern USA time, an ITK development conference, https://plus.google.com/u/1/events/cntel7ikg752bo6lmpen8ade22c?authkey=CM2q5_2Bva6asgE For those that cannot join via Hangout, telephone call-in is also possible. Dial: 585-632-6296 Enter pin: 31423 To get regular invites to these events, join the ITK Bar Camp G+ Community: https://plus.google.com/u/0/communities/111375098792764998322 All are welcome. Hope to talk to you then! From matt.mccormick at kitware.com Wed Jan 7 14:58:03 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 14:58:03 -0500 Subject: [ITK] [ITK-users] WarpImageFilter wrong output In-Reply-To: References: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> Message-ID: Hi John, The DisplacementFieldTransform can be used with the ResampleImageFilter like any other Transform. There was a time when the DisplacementFieldTransform was not available -- the special WarpImageFilter class was used in this case. HTH, Matt On Fri, Jan 2, 2015 at 10:57 PM, haratron wrote: > Thanks! > > What is the difference between: > 1. http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter > 2. > http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3. > http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform > > On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp > wrote: >> >> Hello, >> >> In your CreateMovingImage2 method how is the "image" argument connected to >> the pipeline? >> >> Brad >> >> On Jan 2, 2015, at 12:59 PM, haratron wrote: >> >> Hello and happy new year, >> >> I'm using the WarpImageFilter from here: >> http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter >> >> I have original.png that I'm using as the movingImage and I'm creating >> another one ("empty" image filled with white color, size 1800x1800) that is >> the fixedImage. >> >> The problem is that a blank image filled with black is created instead of >> the warped image that is expected. >> >> original.png : http://i.imgur.com/QQyXgzg.png >> output.png: http://i.imgur.com/LkYnZ6n.png >> >> My full WarpImageFilter.cxx file (includes changes from the original >> example code): >> http://pastebin.com/WNDb2TgM >> >> What am I doing wrong? >> >> John >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users >> >> > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 7 15:01:01 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 15:01:01 -0500 Subject: [ITK] [ITK-users] Mesh to stl or ply In-Reply-To: References: Message-ID: Hi Fabian, ITK has support for IO of a number of different mesh formats. See [1] [2]. HTH, Matt [1] http://itk.org/Insight/Doxygen/html/group__ITKIOMesh.html [2] http://itk.org/ITKExamples/src/IO/Mesh/ReadMesh/Documentation.html On Wed, Dec 31, 2014 at 5:18 AM, Fabian Torres wrote: > Hi every one > > I have a segmented image (object in white, background in black) and I want > to obtain a mesh for the segmented object. > I am using tetgen software to use obtain a Delaunay tetrahedralization to > obtain the mesh. With this software I obtain a list of nodes, a list of > tethraedrons and a list of triangle faces. > > Is there a way to use the information obtained with tetgen with ITK and/or > VTK to create a mesh that I can use in MeshLab or Comsol (.py or .stl)? > > Thanks > > -- > Fabi?n Torres Robles > Maestria en Ciencias en Ingenier?a Electr?nica > Ingenier?a en Sistemas Electr?nicos > tel. 58081280, 0445534661338 > e-mail fabian.trobles at gmail.com, dae.wong at gmail.com > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From haratron at gmail.com Wed Jan 7 15:10:30 2015 From: haratron at gmail.com (haratron) Date: Wed, 7 Jan 2015 22:10:30 +0200 Subject: [ITK] [ITK-users] WarpImageFilter wrong output In-Reply-To: References: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> Message-ID: Hi Matt, thanks for the response. What about http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer ? I missed a space in the previous email and it didn't parse the URL correctly. On Wed, Jan 7, 2015 at 9:58 PM, Matt McCormick wrote: > Hi John, > > The DisplacementFieldTransform can be used with the > ResampleImageFilter like any other Transform. There was a time when > the DisplacementFieldTransform was not available -- the special > WarpImageFilter class was used in this case. > > HTH, > Matt > > On Fri, Jan 2, 2015 at 10:57 PM, haratron wrote: > > Thanks! > > > > What is the difference between: > > 1. http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter > > 2. > > > http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3 > . > > > http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform > > > > On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp > > > wrote: > >> > >> Hello, > >> > >> In your CreateMovingImage2 method how is the "image" argument connected > to > >> the pipeline? > >> > >> Brad > >> > >> On Jan 2, 2015, at 12:59 PM, haratron wrote: > >> > >> Hello and happy new year, > >> > >> I'm using the WarpImageFilter from here: > >> http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter > >> > >> I have original.png that I'm using as the movingImage and I'm creating > >> another one ("empty" image filled with white color, size 1800x1800) > that is > >> the fixedImage. > >> > >> The problem is that a blank image filled with black is created instead > of > >> the warped image that is expected. > >> > >> original.png : http://i.imgur.com/QQyXgzg.png > >> output.png: http://i.imgur.com/LkYnZ6n.png > >> > >> My full WarpImageFilter.cxx file (includes changes from the original > >> example code): > >> http://pastebin.com/WNDb2TgM > >> > >> What am I doing wrong? > >> > >> John > >> _____________________________________ > >> 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://public.kitware.com/mailman/listinfo/insight-users > >> > >> > > > > > > _____________________________________ > > 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://public.kitware.com/mailman/listinfo/insight-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 7 15:18:24 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 7 Jan 2015 15:18:24 -0500 Subject: [ITK] [ITK-users] WarpImageFilter wrong output In-Reply-To: References: <52482848-2F1D-4DB9-A898-E2D197376F13@mail.nih.gov> Message-ID: Hi Haratron, The referenced example is initializing a rigid transform based on landmarks while the other examples are creating a non-rigid displacement field based on landmarks. HTH, Matt On Wed, Jan 7, 2015 at 3:10 PM, haratron wrote: > Hi Matt, > > thanks for the response. > What about > http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer > ? > I missed a space in the previous email and it didn't parse the URL > correctly. > > On Wed, Jan 7, 2015 at 9:58 PM, Matt McCormick > wrote: >> >> Hi John, >> >> The DisplacementFieldTransform can be used with the >> ResampleImageFilter like any other Transform. There was a time when >> the DisplacementFieldTransform was not available -- the special >> WarpImageFilter class was used in this case. >> >> HTH, >> Matt >> >> On Fri, Jan 2, 2015 at 10:57 PM, haratron wrote: >> > Thanks! >> > >> > What is the difference between: >> > 1. http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter >> > 2. >> > >> > http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3. >> > >> > http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform >> > >> > On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp >> > >> > wrote: >> >> >> >> Hello, >> >> >> >> In your CreateMovingImage2 method how is the "image" argument connected >> >> to >> >> the pipeline? >> >> >> >> Brad >> >> >> >> On Jan 2, 2015, at 12:59 PM, haratron wrote: >> >> >> >> Hello and happy new year, >> >> >> >> I'm using the WarpImageFilter from here: >> >> http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter >> >> >> >> I have original.png that I'm using as the movingImage and I'm creating >> >> another one ("empty" image filled with white color, size 1800x1800) >> >> that is >> >> the fixedImage. >> >> >> >> The problem is that a blank image filled with black is created instead >> >> of >> >> the warped image that is expected. >> >> >> >> original.png : http://i.imgur.com/QQyXgzg.png >> >> output.png: http://i.imgur.com/LkYnZ6n.png >> >> >> >> My full WarpImageFilter.cxx file (includes changes from the original >> >> example code): >> >> http://pastebin.com/WNDb2TgM >> >> >> >> What am I doing wrong? >> >> >> >> John >> >> _____________________________________ >> >> 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://public.kitware.com/mailman/listinfo/insight-users >> >> >> >> >> > >> > >> > _____________________________________ >> > 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://public.kitware.com/mailman/listinfo/insight-users >> > > > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From drcjaudet at gmail.com Thu Jan 8 10:45:33 2015 From: drcjaudet at gmail.com (Cyril Jaudet) Date: Thu, 8 Jan 2015 16:45:33 +0100 Subject: [ITK] Problem to pass value from an array to a histogram Message-ID: Hello, I want to implement new texture analysis in c++ Grey size zone matrix. I succeed to create a 2d matrix with the corresponding value. Now, the goal is to transform it to an histogram and to use it with itkHistogramToRunLengthFeaturesFilter to extract the features. Unfortunately a problem appaers when i use SetFrequency to store the value of the matrix to the histogram. invalid conversion from ?int*? to ?itk::Statistics::Histogram::InstanceIdentifier {aka long unsigned int}? [-fpermissive] histogram->SetFrequency(index, frequency); i try to remplace the matrix value by 0 or 2.0 and it didn't work either. Here the part of the code: typedef itk::Statistics::SparseFrequencyContainer2 FrequencyContainerType; typedef FrequencyContainerType::AbsoluteFrequencyType FrequencyType; typedef itk::Statistics::Histogram< float, FrequencyContainerType> HistogramType; unsigned int numberOfComponents=2; HistogramType::Pointer histogram = HistogramType::New(); HistogramType::SizeType size(numberOfComponents); size[0]=D; size[1]=Max_volume; HistogramType::MeasurementVectorType lowerBound(numberOfComponents); lowerBound[0]=1; lowerBound[1]=1; HistogramType::MeasurementVectorType upperBound(numberOfComponents); upperBound[0]=D; upperBound[1]=Max_volume; histogram->Initialize(size, lowerBound, upperBound ); histogram->SetToZero(); int index[2]; for(int level_Grey=0; level_GreySetFrequency(index, static_cast(Z[level_Grey][N])); } } Thanks you, *Cyril Jaudet *Medical physicist, phd cyril.jaudet at uzbrussel.be Laarbeeklaan 101 - 1090 Brussel Tel 02 477 52 35 - Fax 02 477 YY YY www.uzbrussel.be -------------- next part -------------- An HTML attachment was scrubbed... URL: From floris at isi.uu.nl Thu Jan 8 11:01:22 2015 From: floris at isi.uu.nl (Floris Berendsen) Date: Thu, 8 Jan 2015 17:01:22 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: Hi, My colleague noticed a similar bug report to Visual Studio: https://connect.microsoft.com/VisualStudio/feedbackdetail/view/879286/incorrect-code-generated-in-x64-build-results-in-access-violation He wrote a minimal example to reproduce that issue, see the link. A segfault appears to occur in in IsInside(const Self & region) const of itkImageRegion.h as well, but we could not yet make a minimal example of that. Thanks, Floris On Wed, Jan 7, 2015 at 8:40 PM, Matt McCormick wrote: > +1 > > Also, note that builds should be against ITK master -- a patch merged > on 2015-01-03 has already addressed failing registration tests: > > https://open.cdash.org/buildSummary.php?buildid=3637621 > > Thanks, > Matt > > On Wed, Jan 7, 2015 at 1:00 PM, Bradley Lowekamp > wrote: > > If the problem can be reproduced with just using itkFixedArray.h allow > that > > would be significant progress. As that class does not depend on any other > > compiled code/library. > > > > Brad > > > > > > > > On Jan 7, 2015, at 10:33 AM, ???'?? ?????? wrote: > > > > Hi Floris, > > > > It would be good if you can reproduce this compiler problem without ITK. > > I've tried but no success. > > > > > https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data > > > > As workaround I suggest adding something like this > > > > #ifdef _MSC_VER > > #if (_MSC_VER >= 1800) > > #ifdef _WIN64 > > __declspec(align(16)) > > #endif > > #endif > > #endif > > > > for classes that cause problems (FixedArray, Index etc.) > > > > Marian > > > > 2015-01-07 18:44 GMT+02:00 Floris Berendsen : > >> > >> Hi all, > >> > >> I was wondering what the progress is of ITK with respect to Win64 Visual > >> Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected > >> Nightly Exotic, but it reports many segfault failures (I can confirm the > >> same behaviour). > >> All communications I could find related to this topic seem rather old: > >> > >> http://public.kitware.com/pipermail/community/2013-November/004255.html > >> > >> > http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching > >> > >> > http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 > >> > >> Does anyone know more about this? Would it help if I try to make a > minimal > >> example that reproduces the error? > >> > >> Thanks, > >> Floris > >> > >> _______________________________________________ > >> Community mailing list > >> Community at itk.org > >> http://public.kitware.com/mailman/listinfo/community > >> > > > > _______________________________________________ > > Community mailing list > > Community at itk.org > > http://public.kitware.com/mailman/listinfo/community > > > > > > > > _______________________________________________ > > Community mailing list > > Community at itk.org > > http://public.kitware.com/mailman/listinfo/community > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Thu Jan 8 11:48:32 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 8 Jan 2015 11:48:32 -0500 Subject: [ITK] Problem to pass value from an array to a histogram In-Reply-To: References: Message-ID: Hi Cyril, If you are trying to use this version [1] of SetFrequency, then declare the index variable as HistogramType::Index index; instead of int index[2] HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1Statistics_1_1Histogram.html#aedd20d5304684326df28c6bd10ec3130 On Thu, Jan 8, 2015 at 10:45 AM, Cyril Jaudet wrote: > Hello, > I want to implement new texture analysis in c++ Grey size zone matrix. > I succeed to create a 2d matrix with the corresponding value. Now, the goal > is to transform it to an histogram and to use it with > itkHistogramToRunLengthFeaturesFilter to extract the features. > Unfortunately a problem appaers when i use SetFrequency to store the value > of the matrix to the histogram. > > invalid conversion from ?int*? to ?itk::Statistics::Histogram itk::Statistics::DenseFrequencyContainer2>::InstanceIdentifier {aka long > unsigned int}? [-fpermissive] > histogram->SetFrequency(index, frequency); > > i try to remplace the matrix value by 0 or 2.0 and it didn't work either. > > Here the part of the code: > > typedef itk::Statistics::SparseFrequencyContainer2 FrequencyContainerType; > typedef FrequencyContainerType::AbsoluteFrequencyType FrequencyType; > > typedef itk::Statistics::Histogram< float, FrequencyContainerType> > HistogramType; > > unsigned int numberOfComponents=2; > HistogramType::Pointer histogram = HistogramType::New(); > > HistogramType::SizeType size(numberOfComponents); > size[0]=D; > size[1]=Max_volume; > > HistogramType::MeasurementVectorType lowerBound(numberOfComponents); > lowerBound[0]=1; > lowerBound[1]=1; > HistogramType::MeasurementVectorType upperBound(numberOfComponents); > upperBound[0]=D; > upperBound[1]=Max_volume; > > histogram->Initialize(size, lowerBound, upperBound ); > histogram->SetToZero(); > > int index[2]; > for(int level_Grey=0; level_Grey { > for(int N=0; N { > index[0]=level_Grey; > index[1]=N; > histogram->SetFrequency(index, > static_cast(Z[level_Grey][N])); > } > } > > Thanks you, > > Cyril Jaudet > Medical physicist, phd > > > cyril.jaudet at uzbrussel.be > > Laarbeeklaan 101 - 1090 Brussel > Tel 02 477 52 35 - Fax 02 477 YY YY > > www.uzbrussel.be > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From matt.mccormick at kitware.com Thu Jan 8 11:53:28 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 8 Jan 2015 11:53:28 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: Message-ID: Thanks for the link. Upvoted. Matt On Thu, Jan 8, 2015 at 11:01 AM, Floris Berendsen wrote: > Hi, > > My colleague noticed a similar bug report to Visual Studio: > https://connect.microsoft.com/VisualStudio/feedbackdetail/view/879286/incorrect-code-generated-in-x64-build-results-in-access-violation > He wrote a minimal example to reproduce that issue, see the link. > A segfault appears to occur in in IsInside(const Self & region) const of > itkImageRegion.h as well, but we could not yet make a minimal example of > that. > > Thanks, > Floris > > > > On Wed, Jan 7, 2015 at 8:40 PM, Matt McCormick > wrote: >> >> +1 >> >> Also, note that builds should be against ITK master -- a patch merged >> on 2015-01-03 has already addressed failing registration tests: >> >> https://open.cdash.org/buildSummary.php?buildid=3637621 >> >> Thanks, >> Matt >> >> On Wed, Jan 7, 2015 at 1:00 PM, Bradley Lowekamp >> wrote: >> > If the problem can be reproduced with just using itkFixedArray.h allow >> > that >> > would be significant progress. As that class does not depend on any >> > other >> > compiled code/library. >> > >> > Brad >> > >> > >> > >> > On Jan 7, 2015, at 10:33 AM, ???'?? ?????? wrote: >> > >> > Hi Floris, >> > >> > It would be good if you can reproduce this compiler problem without ITK. >> > I've tried but no success. >> > >> > >> > https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data >> > >> > As workaround I suggest adding something like this >> > >> > #ifdef _MSC_VER >> > #if (_MSC_VER >= 1800) >> > #ifdef _WIN64 >> > __declspec(align(16)) >> > #endif >> > #endif >> > #endif >> > >> > for classes that cause problems (FixedArray, Index etc.) >> > >> > Marian >> > >> > 2015-01-07 18:44 GMT+02:00 Floris Berendsen : >> >> >> >> Hi all, >> >> >> >> I was wondering what the progress is of ITK with respect to Win64 >> >> Visual >> >> Studio 12 (2013). The dashboard has a Win64-VS12-Release under Expected >> >> Nightly Exotic, but it reports many segfault failures (I can confirm >> >> the >> >> same behaviour). >> >> All communications I could find related to this topic seem rather old: >> >> >> >> http://public.kitware.com/pipermail/community/2013-November/004255.html >> >> >> >> >> >> http://insight-developers.itk.narkive.com/niWueQGp/4-5-release-candidate-approaching >> >> >> >> >> >> http://insight-developers.itk.narkive.com/E6RszEvx/regression-errors-with-visual-studio-2013 >> >> >> >> Does anyone know more about this? Would it help if I try to make a >> >> minimal >> >> example that reproduces the error? >> >> >> >> Thanks, >> >> Floris >> >> >> >> _______________________________________________ >> >> Community mailing list >> >> Community at itk.org >> >> http://public.kitware.com/mailman/listinfo/community >> >> >> > >> > _______________________________________________ >> > Community mailing list >> > Community at itk.org >> > http://public.kitware.com/mailman/listinfo/community >> > >> > >> > >> > _______________________________________________ >> > Community mailing list >> > Community at itk.org >> > http://public.kitware.com/mailman/listinfo/community >> > >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community > > From drcjaudet at gmail.com Fri Jan 9 03:31:34 2015 From: drcjaudet at gmail.com (Cyril Jaudet) Date: Fri, 9 Jan 2015 09:31:34 +0100 Subject: [ITK] Problem to pass value from an array to a histogram In-Reply-To: References: Message-ID: Thank you for your answer. I modify the type of index but you were right the problem comes from the SetFrequency. Using SetFrequencyOfIndex instead. It works well. Best regards, Cyril 2015-01-08 17:48 GMT+01:00 Matt McCormick : > Hi Cyril, > > If you are trying to use this version [1] of SetFrequency, then > declare the index variable as > > HistogramType::Index index; > > instead of > > int index[2] > > HTH, > Matt > > [1] > http://www.itk.org/Doxygen/html/classitk_1_1Statistics_1_1Histogram.html#aedd20d5304684326df28c6bd10ec3130 > > On Thu, Jan 8, 2015 at 10:45 AM, Cyril Jaudet wrote: > > Hello, > > I want to implement new texture analysis in c++ Grey size zone matrix. > > I succeed to create a 2d matrix with the corresponding value. Now, the > goal > > is to transform it to an histogram and to use it with > > itkHistogramToRunLengthFeaturesFilter to extract the features. > > Unfortunately a problem appaers when i use SetFrequency to store the > value > > of the matrix to the histogram. > > > > invalid conversion from ?int*? to ?itk::Statistics::Histogram > itk::Statistics::DenseFrequencyContainer2>::InstanceIdentifier {aka long > > unsigned int}? [-fpermissive] > > histogram->SetFrequency(index, frequency); > > > > i try to remplace the matrix value by 0 or 2.0 and it didn't work either. > > > > Here the part of the code: > > > > typedef itk::Statistics::SparseFrequencyContainer2 > FrequencyContainerType; > > typedef FrequencyContainerType::AbsoluteFrequencyType FrequencyType; > > > > typedef itk::Statistics::Histogram< float, FrequencyContainerType> > > HistogramType; > > > > unsigned int numberOfComponents=2; > > HistogramType::Pointer histogram = HistogramType::New(); > > > > HistogramType::SizeType size(numberOfComponents); > > size[0]=D; > > size[1]=Max_volume; > > > > HistogramType::MeasurementVectorType lowerBound(numberOfComponents); > > lowerBound[0]=1; > > lowerBound[1]=1; > > HistogramType::MeasurementVectorType upperBound(numberOfComponents); > > upperBound[0]=D; > > upperBound[1]=Max_volume; > > > > histogram->Initialize(size, lowerBound, upperBound ); > > histogram->SetToZero(); > > > > int index[2]; > > for(int level_Grey=0; level_Grey > { > > for(int N=0; N > { > > index[0]=level_Grey; > > index[1]=N; > > histogram->SetFrequency(index, > > static_cast(Z[level_Grey][N])); > > } > > } > > > > Thanks you, > > > > Cyril Jaudet > > Medical physicist, phd > > > > > > cyril.jaudet at uzbrussel.be > > > > Laarbeeklaan 101 - 1090 Brussel > > Tel 02 477 52 35 - Fax 02 477 YY YY > > > > www.uzbrussel.be > > > > > > _______________________________________________ > > Community mailing list > > Community at itk.org > > http://public.kitware.com/mailman/listinfo/community > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From niels-xtk at xs4all.nl Fri Jan 9 05:52:22 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Fri, 9 Jan 2015 11:52:22 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults Message-ID: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> My colleague Floris Berendsen wrote: > My colleague noticed a similar bug report to Visual Studio: > https://connect.microsoft.com/VisualStudio/feedbackdetail/view/879286 > He wrote a minimal example to reproduce that issue, see the link. > A segfault appears to occur in in IsInside(const Self & region) const > of itkImageRegion.h as well, but we could not yet make a minimal example > of that. I think the following is a minimal example to reproduce the crash in 'IsInside' (from Modules\Core\Common\include\itkImageRegion.h). Please check: store the code below into a CXX file, compile in Release mode ("/O2"), using the 64-bits version of Visual C++ 2013, and run! //////////////////////////////////////////////////////////// enum { ImageDimension = 4 }; class SizeType { int m_data[ImageDimension]; public: SizeType(): m_data() {} const int& operator[](unsigned i) const { return m_data[i]; } }; class RegionType { SizeType m_size; public: virtual const SizeType& GetSize() const { return m_size; } }; int main() { const RegionType* const ptr = new RegionType(); const RegionType& region = *ptr; typedef int IndexType[ImageDimension]; IndexType beginCorner = { 0 }; // The following is based on code from IsInside(const Self & region): IndexType endCorner; SizeType size = region.GetSize(); for (unsigned int i = 0; i < ImageDimension; i++) { endCorner[i] = beginCorner[i] + size[i] - 1; } delete ptr; } //////////////////////////////////////////////////////////// Kind regards, Niels -- Niels Dekker Scientific programmer LKEB, Leiden University Medical Center From niels-xtk at xs4all.nl Fri Jan 9 10:28:38 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Fri, 9 Jan 2015 16:28:38 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> Message-ID: <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Floris and I did some testing on how to work around this Visual C++ compiler bug. It looks like the crashes (segfaults) in both FiniteDifferenceImageFilter::InitializeFunctionCoefficients() and ImageRegion::IsInside(const Self&) disappear when a local object is replaced by a const-reference. In "Core\FiniteDifference\include\itkFiniteDifferenceImageFilter.hxx" (line 273): - const SpacingType spacing = outputImage->GetSpacing(); + const SpacingType & spacing = outputImage->GetSpacing(); In "Core\Common\include\itkImageRegion.h" (line 260): - SizeType& size = region.GetSize(); + const SizeType & size = region.GetSize(); I must admit I don't know why such a modification actually does suppress the crashes. But it seems to do the job! What do you think? Kind regards, Niels From matt.mccormick at kitware.com Fri Jan 9 10:34:54 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 9 Jan 2015 10:34:54 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Message-ID: Hi Niels, Great news! This same strategy was used to to fix some of the other failing tests [1]. While it should not strictly be necessary, it does hurt to improve our const-correctness and memory usage anyway. Please consider submitting a patch for these changes [2]. Thanks, Matt [1] http://itk.org/gitweb?p=ITK.git;a=blobdiff;f=Modules/Filtering/ImageGrid/include/itkShrinkImageFilter.hxx;h=fca11a3eea3f885411192fd942c674cbba30c604;hp=86c3985601ff24ee36f6a0972be11573dfcc277c;hb=b92b952b98bee6dfc3837f4ed5d600e637cdcda9;hpb=7170ea77a918d268dd1971244ceb41b6d3518e21 [2] https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html On Fri, Jan 9, 2015 at 10:28 AM, Niels Dekker wrote: > Floris and I did some testing on how to work around this Visual C++ > compiler bug. It looks like the crashes (segfaults) in both > FiniteDifferenceImageFilter::InitializeFunctionCoefficients() and > ImageRegion::IsInside(const Self&) disappear when a local object is > replaced by a const-reference. > > In "Core\FiniteDifference\include\itkFiniteDifferenceImageFilter.hxx" > (line 273): > > - const SpacingType spacing = outputImage->GetSpacing(); > + const SpacingType & spacing = outputImage->GetSpacing(); > > > In "Core\Common\include\itkImageRegion.h" (line 260): > > - SizeType& size = region.GetSize(); > + const SizeType & size = region.GetSize(); > > > I must admit I don't know why such a modification actually does suppress > the crashes. But it seems to do the job! What do you think? > > Kind regards, Niels > From ronn at rlkling.com Fri Jan 9 13:09:35 2015 From: ronn at rlkling.com (Ronn Kling) Date: Fri, 09 Jan 2015 13:09:35 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: <54A84BCC.9020907@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> Message-ID: <54B0195F.8070509@rlkling.com> All, I have a set of stacked tiff images that I am trying to read in, but I am getting an error on this last line typedef unsigned char fixedPixelType; typedef unsigned char movingPixelType; typedef itk::Image fixedImageType; typedef itk::Image movingImageType; typedef itk::ImageSeriesReader< fixedImageType > FixedImageReaderType; FixedImageReaderType::Pointer fixedReader = FixedImageReaderType::New(); fixedReader->SetImageIO(itk::TIFFImageIO::New()); I am getting an "unhandled exception" in itkTIFFimageIO.cxx at the bottom line TIFFImageIO::TIFFImageIO() { this->SetNumberOfDimensions(2); m_PixelType = SCALAR; m_ComponentType = UCHAR; this->InitializeColors(); m_InternalImage = new TIFFReaderInternal; m_Spacing[0] = 1.0; m_Spacing[1] = 1.0; m_Origin[0] = 0.0; WHY?????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Fri Jan 9 14:06:52 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 9 Jan 2015 14:06:52 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: <54B0195F.8070509@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> Message-ID: Hi Ronn, Have you tried creating a SmartPointer to hold the TIFFImageIO instance? i.e., itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); fixedReader->SetImageIO( imageIO ); Thanks, Matt On Fri, Jan 9, 2015 at 1:09 PM, Ronn Kling wrote: > All, > I have a set of stacked tiff images that I am trying to read in, but I am > getting an error on this last line > > typedef unsigned char fixedPixelType; > typedef unsigned char movingPixelType; > > typedef itk::Image fixedImageType; > typedef itk::Image movingImageType; > > > typedef itk::ImageSeriesReader< fixedImageType > FixedImageReaderType; > FixedImageReaderType::Pointer fixedReader = FixedImageReaderType::New(); > > fixedReader->SetImageIO(itk::TIFFImageIO::New()); > > > I am getting an "unhandled exception" in itkTIFFimageIO.cxx at the bottom > line > > TIFFImageIO::TIFFImageIO() > { > this->SetNumberOfDimensions(2); > m_PixelType = SCALAR; > m_ComponentType = UCHAR; > > this->InitializeColors(); > m_InternalImage = new TIFFReaderInternal; > > m_Spacing[0] = 1.0; > m_Spacing[1] = 1.0; > > m_Origin[0] = 0.0; > > WHY?????? > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From ronn at rlkling.com Fri Jan 9 14:11:10 2015 From: ronn at rlkling.com (Ronn Kling) Date: Fri, 09 Jan 2015 14:11:10 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> Message-ID: <54B027CE.7040501@rlkling.com> tried it and same exact error On 1/9/2015 2:06 PM, Matt McCormick wrote: > itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); > fixedReader->SetImageIO( imageIO ); -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bfiffigc.png Type: image/png Size: 15054 bytes Desc: not available URL: From matt.mccormick at kitware.com Fri Jan 9 14:36:10 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 9 Jan 2015 14:36:10 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: <54B027CE.7040501@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> <54B027CE.7040501@rlkling.com> Message-ID: Hi, Nothing comes to mind. Maybe a corrupt build? What version of Visual Studio? Thanks, Matt On Fri, Jan 9, 2015 at 2:11 PM, Ronn Kling wrote: > tried it and same exact error > > > > On 1/9/2015 2:06 PM, Matt McCormick wrote: > > itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); > fixedReader->SetImageIO( imageIO ); > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bfiffigc.png Type: image/png Size: 15054 bytes Desc: not available URL: From franciscolopezdelafranca at gmail.com Fri Jan 9 14:59:49 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Fri, 9 Jan 2015 20:59:49 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes Message-ID: Hi. I' like to create a library containing, for example, one template class with a number of methods. I've programmed a simple example and the compilation and generation of the library goes fine. I use the cmake "add_library" command for generating the library. The problem arises at the moment of testing the library. I get an undefined reference for every method in the template class. I've downloaded a tool to look in the contents (functions) of dynamic libraries, and there is no function in the library. If I add another class (not a template class), then, this tool shows me only the functions in this latter class. Has anyone ever come across with this problem? Thanks a lot in advance. Regards /Francisco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 9 15:02:52 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 9 Jan 2015 15:02:52 -0500 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Francisco, In order for the templates to be available in the library, they must be explicitly instantiated [1]. HTH, Matt [1] http://www.cplusplus.com/articles/1C75fSEw/ On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca wrote: > Hi. > I' like to create a library containing, for example, one template class with > a number of methods. > I've programmed a simple example and the compilation and generation of the > library goes fine. I use the cmake "add_library" command for generating the > library. > > The problem arises at the moment of testing the library. I get an undefined > reference for every method in the template class. > > I've downloaded a tool to look in the contents (functions) of dynamic > libraries, and there is no function in the library. If I add another class > (not a template class), then, this tool shows me only the functions in this > latter class. > > Has anyone ever come across with this problem? > > Thanks a lot in advance. > Regards > /Francisco > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From ronn at rlkling.com Fri Jan 9 15:09:04 2015 From: ronn at rlkling.com (Ronn Kling) Date: Fri, 09 Jan 2015 15:09:04 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> <54B027CE.7040501@rlkling.com> Message-ID: <54B03560.6080306@rlkling.com> VS 2010, is there a preferred version? On 1/9/2015 2:36 PM, Matt McCormick wrote: > Hi, > > Nothing comes to mind. Maybe a corrupt build? What version of Visual > Studio? > > Thanks, > Matt > > On Fri, Jan 9, 2015 at 2:11 PM, Ronn Kling > wrote: > > tried it and same exact error > > > > On 1/9/2015 2:06 PM, Matt McCormick wrote: >> itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); >> fixedReader->SetImageIO( imageIO ); > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 15054 bytes Desc: not available URL: From matt.mccormick at kitware.com Fri Jan 9 15:13:09 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 9 Jan 2015 15:13:09 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: <54B03560.6080306@rlkling.com> References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> <54B027CE.7040501@rlkling.com> <54B03560.6080306@rlkling.com> Message-ID: That should be fine. Most recent VS versions are supported. VS 2013 has some bugs we are still working around. On Fri, Jan 9, 2015 at 3:09 PM, Ronn Kling wrote: > VS 2010, is there a preferred version? > > > On 1/9/2015 2:36 PM, Matt McCormick wrote: > > Hi, > > Nothing comes to mind. Maybe a corrupt build? What version of Visual > Studio? > > Thanks, > Matt > > On Fri, Jan 9, 2015 at 2:11 PM, Ronn Kling wrote: > >> tried it and same exact error >> >> >> >> On 1/9/2015 2:06 PM, Matt McCormick wrote: >> >> itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); >> fixedReader->SetImageIO( imageIO ); >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 15054 bytes Desc: not available URL: From ronn at rlkling.com Fri Jan 9 15:13:03 2015 From: ronn at rlkling.com (Ronn Kling) Date: Fri, 09 Jan 2015 15:13:03 -0500 Subject: [ITK] Reading in a 3d tiff stack? In-Reply-To: References: <549B027E.2020802@rlkling.com> <549B1352.8090207@rlkling.com> <54A7E17D.30209@rlkling.com> <1E1D7D9E-5E16-4B5D-80F3-5C33ACC17156@mail.nih.gov> <54A84BCC.9020907@rlkling.com> <54B0195F.8070509@rlkling.com> <54B027CE.7040501@rlkling.com> <54B03560.6080306@rlkling.com> Message-ID: <54B0364F.5050507@rlkling.com> I will rebuild everything and see what happens. On 1/9/2015 3:13 PM, Matt McCormick wrote: > That should be fine. Most recent VS versions are supported. VS 2013 > has some bugs we are still working around. > > On Fri, Jan 9, 2015 at 3:09 PM, Ronn Kling > wrote: > > VS 2010, is there a preferred version? > > > On 1/9/2015 2:36 PM, Matt McCormick wrote: >> Hi, >> >> Nothing comes to mind. Maybe a corrupt build? What version of >> Visual Studio? >> >> Thanks, >> Matt >> >> On Fri, Jan 9, 2015 at 2:11 PM, Ronn Kling > > wrote: >> >> tried it and same exact error >> >> >> >> On 1/9/2015 2:06 PM, Matt McCormick wrote: >>> itk::ImageIOBase::Pointer imageIO = itk::TIFFImageIO::New(); >>> fixedReader->SetImageIO( imageIO ); >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 15054 bytes Desc: not available URL: From franciscolopezdelafranca at gmail.com Sat Jan 10 16:16:09 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Sat, 10 Jan 2015 22:16:09 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Thanks to your previous answer the problem was solved, but another one has come out. It occurs when linking to create the library. It gives an undefined reference to itk::ExceptionObject::ExceptionObject... as you can see below. What it is strange to me is that before including explicit template instantiation, I created the library without errors, and now that I include that, I get this error. I'll appreciate very much any help. Linking CXX shared library libTFM_Features.dll CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC 1ERKSsjS2_S2_]+0x35): undefined reference to `itk::ExceptionObject::ExceptionObj ect(std::string const&, unsigned int, std::string const&, std::string const&)' CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for itk::MemoryAllocationEr ror' C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min gw32/bin/ld.exe: CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba d reloc address 0x40 in section `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' collect2.exe: error: ld returned 1 exit status SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target 'SRC/libTFM_Fe atures.dll' failed mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 CMakeFiles\Makefile2:77: recipe for target 'SRC/CMakeFiles/TFM_Features.dir/all' failed mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 Makefile:74: recipe for target 'all' failed mingw32-make: *** [all] Error 2 2015-01-09 21:02 GMT+01:00 Matt McCormick : > Hi Francisco, > > In order for the templates to be available in the library, they must > be explicitly instantiated [1]. > > HTH, > Matt > > [1] http://www.cplusplus.com/articles/1C75fSEw/ > > On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca > wrote: > > Hi. > > I' like to create a library containing, for example, one template class > with > > a number of methods. > > I've programmed a simple example and the compilation and generation of > the > > library goes fine. I use the cmake "add_library" command for generating > the > > library. > > > > The problem arises at the moment of testing the library. I get an > undefined > > reference for every method in the template class. > > > > I've downloaded a tool to look in the contents (functions) of dynamic > > libraries, and there is no function in the library. If I add another > class > > (not a template class), then, this tool shows me only the functions in > this > > latter class. > > > > Has anyone ever come across with this problem? > > > > Thanks a lot in advance. > > Regards > > /Francisco > > > > _____________________________________ > > 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://public.kitware.com/mailman/listinfo/insight-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Sat Jan 10 16:38:32 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Sat, 10 Jan 2015 16:38:32 -0500 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Francisco, Nice to hear about the progress! You will need to link your library to the ITK libraries: target_link_libraries( mylibrary ${ITK_LIBRARIES} ) HTH, Matt On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com> wrote: > Thanks to your previous answer the problem was solved, but another one has > come out. It occurs when linking to create the library. It gives an > undefined reference to itk::ExceptionObject::ExceptionObject... as you can > see below. > What it is strange to me is that before including explicit template > instantiation, I created the library without errors, and now that I include > that, I get this error. > I'll appreciate very much any help. > > Linking CXX shared library libTFM_Features.dll > > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > 1ERKSsjS2_S2_]+0x35): undefined reference to > `itk::ExceptionObject::ExceptionObj > ect(std::string const&, unsigned int, std::string const&, std::string > const&)' > > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for > itk::MemoryAllocationEr > ror' > > C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min > gw32/bin/ld.exe: > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba > d reloc address 0x40 in section > `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ > S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' > collect2.exe: error: ld returned 1 exit status > SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target > 'SRC/libTFM_Fe > atures.dll' failed > mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 > CMakeFiles\Makefile2:77: recipe for target > 'SRC/CMakeFiles/TFM_Features.dir/all' > failed > mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 > Makefile:74: recipe for target 'all' failed > mingw32-make: *** [all] Error 2 > > > 2015-01-09 21:02 GMT+01:00 Matt McCormick : > >> Hi Francisco, >> >> In order for the templates to be available in the library, they must >> be explicitly instantiated [1]. >> >> HTH, >> Matt >> >> [1] http://www.cplusplus.com/articles/1C75fSEw/ >> >> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >> wrote: >> > Hi. >> > I' like to create a library containing, for example, one template class >> with >> > a number of methods. >> > I've programmed a simple example and the compilation and generation of >> the >> > library goes fine. I use the cmake "add_library" command for generating >> the >> > library. >> > >> > The problem arises at the moment of testing the library. I get an >> undefined >> > reference for every method in the template class. >> > >> > I've downloaded a tool to look in the contents (functions) of dynamic >> > libraries, and there is no function in the library. If I add another >> class >> > (not a template class), then, this tool shows me only the functions in >> this >> > latter class. >> > >> > Has anyone ever come across with this problem? >> > >> > Thanks a lot in advance. >> > Regards >> > /Francisco >> > >> > _____________________________________ >> > 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://public.kitware.com/mailman/listinfo/insight-users >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From rekha.pyage at gmail.com Mon Jan 12 02:42:22 2015 From: rekha.pyage at gmail.com (reks) Date: Mon, 12 Jan 2015 00:42:22 -0700 (MST) Subject: [ITK] [ITK-users] itk Canny segmentation level set on 3d data Message-ID: <1421048542766-35103.post@n7.nabble.com> Hi all, I am trying to make use of itkCannySegmentationLevelSet 2d example on 3d data. Here I am giving the output of thresholdsegmentationlevelset as one of the input to the filter and input image as the feature input. I am giving The parameters to this filter as given in 2d example( canny threshold=7.0, CannyVariance= 0.1 ,AdvectionScaling=10.0,IsoSurfaceValue= 127.5,NumberOfIterations= 15) but I am not getting the expected output. I am getting thresholdsegmentationlevelset output as it is as the cannylevelset output. do I have to change the parameters to this filter ? I dont know where I am going wrong. please do help me.. any help will be appreciated. thanks in advance. reks -- View this message in context: http://itk-users.7.n7.nabble.com/itk-Canny-segmentation-level-set-on-3d-data-tp35103.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mathias.richter at informatik.uni-luebeck.de Mon Jan 12 04:36:29 2015 From: mathias.richter at informatik.uni-luebeck.de (mathew) Date: Mon, 12 Jan 2015 02:36:29 -0700 (MST) Subject: [ITK] [ITK-users] extending label object's line iterator / cpp question Message-ID: <1421055389237-7586769.post@n2.nabble.com> Dear ITK users, Currently, I am working with the LabelObject class and its iterators (i.e. the line iterator). I have noticed that I can only advance the iterator by one. Unfortunately I want to step to any element in one step. I thought of deriving a subclass (ExtIterLabelObject) of the LabelObject, which lacks on loosing access on the private stuff of the LabelObject. The only way I see is defining a new ExtIterLabelObject class, which inherits from the LightObject and replaces the given LabelObject implementation. Since this is very ugly, I want to ask if there is a better way to extend the functionality of the LineIterator, so that I can increase the iterator by an arbitrary (valid) step. Thanks for your help. -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/extending-label-object-s-line-iterator-cpp-question-tp7586769.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 12 08:36:19 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 08:36:19 -0500 Subject: [ITK] [ITK-users] itk Canny segmentation level set on 3d data In-Reply-To: <1421048542766-35103.post@n7.nabble.com> References: <1421048542766-35103.post@n7.nabble.com> Message-ID: Hi reks, The parameters will likely need tweaking. To understand how the change the parameters, look at the documentation for the filters and the parameters and the intermediate images that are generated. The documentation can be found in The Software Guide [1], the example code that is used to generate the Software Guide [2], and the Doxygen for classes [3]. As suggested in the Software Guide, you may want to pre-process your input image also to remove noise. HTH, Matt [1] http://itk.org/ITK/resources/software.html [2] http://www.itk.org/Doxygen/html/Examples_2Segmentation_2CannySegmentationLevelSetImageFilter_8cxx-example.html [3] http://www.itk.org/Doxygen/html/classitk_1_1CannySegmentationLevelSetImageFilter.html On Mon, Jan 12, 2015 at 2:42 AM, reks wrote: > Hi all, > > I am trying to make use of itkCannySegmentationLevelSet 2d example on 3d > data. Here I am giving the output of thresholdsegmentationlevelset as one of > the input to the filter and input image as the feature input. I am giving > The parameters to this filter as given in 2d example( canny threshold=7.0, > CannyVariance= 0.1 ,AdvectionScaling=10.0,IsoSurfaceValue= > 127.5,NumberOfIterations= 15) but I am not getting the expected output. I am > getting thresholdsegmentationlevelset output as it is as the cannylevelset > output. do I have to change the parameters to this filter ? I dont know > where I am going wrong. please do help me.. > > any help will be appreciated. > thanks in advance. > > reks > > > > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/itk-Canny-segmentation-level-set-on-3d-data-tp35103.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 12 08:44:14 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 08:44:14 -0500 Subject: [ITK] [ITK-users] extending label object's line iterator / cpp question In-Reply-To: <1421055389237-7586769.post@n2.nabble.com> References: <1421055389237-7586769.post@n2.nabble.com> Message-ID: Hi Mathew, If some required members are private that need to be protected for your extension, we can do that. Please submit a patch with the changes required [1]. Thanks, Matt [1] https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html On Mon, Jan 12, 2015 at 4:36 AM, mathew wrote: > Dear ITK users, > > Currently, I am working with the LabelObject class and its iterators (i.e. > the line iterator). > I have noticed that I can only advance the iterator by one. Unfortunately I > want to step to any element in one step. > > I thought of deriving a subclass (ExtIterLabelObject) of the LabelObject, > which lacks on loosing access on the private stuff of the LabelObject. > > The only way I see is defining a new ExtIterLabelObject class, which > inherits from the LightObject and replaces the given LabelObject > implementation. > > Since this is very ugly, I want to ask if there is a better way to extend > the functionality of the LineIterator, so that I can increase the iterator > by an arbitrary (valid) step. > > Thanks for your help. > > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/extending-label-object-s-line-iterator-cpp-question-tp7586769.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From floris at isi.uu.nl Mon Jan 12 11:26:56 2015 From: floris at isi.uu.nl (Floris Berendsen) Date: Mon, 12 Jan 2015 17:26:56 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Message-ID: FYI: A workaround of Niels was submitted to gerrit (by Marius Staring). Please have a look at the patch. I8177d3b7: BUG: workaround for 64bit VS2013 Release segfault http://review.source.kitware.com/#/c/18825/ Thanks, Floris On Fri, Jan 9, 2015 at 4:34 PM, Matt McCormick wrote: > Hi Niels, > > Great news! > > This same strategy was used to to fix some of the other failing tests > [1]. While it should not strictly be necessary, it does hurt to > improve our const-correctness and memory usage anyway. Please > consider submitting a patch for these changes [2]. > > Thanks, > Matt > > > [1] > http://itk.org/gitweb?p=ITK.git;a=blobdiff;f=Modules/Filtering/ImageGrid/include/itkShrinkImageFilter.hxx;h=fca11a3eea3f885411192fd942c674cbba30c604;hp=86c3985601ff24ee36f6a0972be11573dfcc277c;hb=b92b952b98bee6dfc3837f4ed5d600e637cdcda9;hpb=7170ea77a918d268dd1971244ceb41b6d3518e21 > > [2] > https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html > > On Fri, Jan 9, 2015 at 10:28 AM, Niels Dekker wrote: > > Floris and I did some testing on how to work around this Visual C++ > > compiler bug. It looks like the crashes (segfaults) in both > > FiniteDifferenceImageFilter::InitializeFunctionCoefficients() and > > ImageRegion::IsInside(const Self&) disappear when a local object is > > replaced by a const-reference. > > > > In "Core\FiniteDifference\include\itkFiniteDifferenceImageFilter.hxx" > > (line 273): > > > > - const SpacingType spacing = outputImage->GetSpacing(); > > + const SpacingType & spacing = outputImage->GetSpacing(); > > > > > > In "Core\Common\include\itkImageRegion.h" (line 260): > > > > - SizeType& size = region.GetSize(); > > + const SizeType & size = region.GetSize(); > > > > > > I must admit I don't know why such a modification actually does suppress > > the crashes. But it seems to do the job! What do you think? > > > > Kind regards, Niels > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Mon Jan 12 11:31:50 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 11:31:50 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Message-ID: Excellent. Thanks! On Mon, Jan 12, 2015 at 11:26 AM, Floris Berendsen wrote: > FYI: A workaround of Niels was submitted to gerrit (by Marius Staring). > Please have a look at the patch. > > I8177d3b7: BUG: workaround for 64bit VS2013 Release segfault > http://review.source.kitware.com/#/c/18825/ > > Thanks, > Floris > > On Fri, Jan 9, 2015 at 4:34 PM, Matt McCormick > wrote: >> >> Hi Niels, >> >> Great news! >> >> This same strategy was used to to fix some of the other failing tests >> [1]. While it should not strictly be necessary, it does hurt to >> improve our const-correctness and memory usage anyway. Please >> consider submitting a patch for these changes [2]. >> >> Thanks, >> Matt >> >> >> [1] >> http://itk.org/gitweb?p=ITK.git;a=blobdiff;f=Modules/Filtering/ImageGrid/include/itkShrinkImageFilter.hxx;h=fca11a3eea3f885411192fd942c674cbba30c604;hp=86c3985601ff24ee36f6a0972be11573dfcc277c;hb=b92b952b98bee6dfc3837f4ed5d600e637cdcda9;hpb=7170ea77a918d268dd1971244ceb41b6d3518e21 >> >> [2] >> https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html >> >> On Fri, Jan 9, 2015 at 10:28 AM, Niels Dekker wrote: >> > Floris and I did some testing on how to work around this Visual C++ >> > compiler bug. It looks like the crashes (segfaults) in both >> > FiniteDifferenceImageFilter::InitializeFunctionCoefficients() and >> > ImageRegion::IsInside(const Self&) disappear when a local object is >> > replaced by a const-reference. >> > >> > In "Core\FiniteDifference\include\itkFiniteDifferenceImageFilter.hxx" >> > (line 273): >> > >> > - const SpacingType spacing = outputImage->GetSpacing(); >> > + const SpacingType & spacing = outputImage->GetSpacing(); >> > >> > >> > In "Core\Common\include\itkImageRegion.h" (line 260): >> > >> > - SizeType& size = region.GetSize(); >> > + const SizeType & size = region.GetSize(); >> > >> > >> > I must admit I don't know why such a modification actually does suppress >> > the crashes. But it seems to do the job! What do you think? >> > >> > Kind regards, Niels >> > > > From tobias.wood at kcl.ac.uk Mon Jan 12 11:33:01 2015 From: tobias.wood at kcl.ac.uk (Wood, Tobias) Date: Mon, 12 Jan 2015 16:33:01 +0000 Subject: [ITK] Reading 4D Nifti into a 3D Vector Image Message-ID: <1421080382402.81740@kcl.ac.uk> Hello, I am new to ITK and am working with datasets that are stored as 4D niftis of variable length in the 4th dimension. The algorithm I need to write takes the "vector" stored in the 4th dimension as input at each voxel, and produces some scalar values as output. I would like to write a filter to contain this algorithm, but I am struggling to work out how to specify the input and iterate efficiently over it. My output image type is itk::Image. I assume that my input image type should be itk::Image. Inside the filter, I was planning on using ImageRegionIterator with GetLargestPossibleRegion() to iterate over the output voxels. Is there a suitable iterator and region to obtain the vector of values for each input voxel efficiently? Or, alternatively, is there another approach that I should be taking? Perhaps using another filter to convert the input data first? Thanks in advance and I hope my question is clear, Tobias Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Mon Jan 12 12:24:02 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 12:24:02 -0500 Subject: [ITK] Reading 4D Nifti into a 3D Vector Image In-Reply-To: <1421080382402.81740@kcl.ac.uk> References: <1421080382402.81740@kcl.ac.uk> Message-ID: Hi Tobias, For this case, it may be better to read in the image as an itk::Image< itk::Vector< float, NumberOfComponents >, 3 > or itk::VectorImage< float, 3 > HTH, Matt On Mon, Jan 12, 2015 at 11:33 AM, Wood, Tobias wrote: > Hello, > > I am new to ITK and am working with datasets that are stored as 4D niftis of > variable length in the 4th dimension. The algorithm I need to write takes > the "vector" stored in the 4th dimension as input at each voxel, and > produces some scalar values as output. I would like to write a filter to > contain this algorithm, but I am struggling to work out how to specify the > input and iterate efficiently over it. > > > My output image type is itk::Image. I assume that my input image > type should be itk::Image. Inside the filter, I was planning on > using ImageRegionIterator with GetLargestPossibleRegion() to iterate over > the output voxels. > > > Is there a suitable iterator and region to obtain the vector of values for > each input voxel efficiently? Or, alternatively, is there another approach > that I should be taking? Perhaps using another filter to convert the input > data first? > > > Thanks in advance and I hope my question is clear, > > Tobias Wood > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From yiyu.chou at gmail.com Mon Jan 12 13:55:38 2015 From: yiyu.chou at gmail.com (Yi-Yu Chou) Date: Mon, 12 Jan 2015 13:55:38 -0500 Subject: [ITK] [ITK-users] 2 parameters registration Message-ID: Dear ITK experts, I would like to implement a 2 parameters (one pitch rotation + one global scaling) 3D image registration with ITK. It is highly appreciated if you could shed some light on this matter. Thanks in advance !! Yi-Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From tobias.wood at kcl.ac.uk Mon Jan 12 16:51:47 2015 From: tobias.wood at kcl.ac.uk (Wood, Tobias) Date: Mon, 12 Jan 2015 21:51:47 +0000 Subject: [ITK] Reading 4D Nifti into a 3D Vector Image In-Reply-To: References: <1421080382402.81740@kcl.ac.uk>, Message-ID: <1421099508383.72585@kcl.ac.uk> Dear Matt and Brad, Thanks for the quick response. The approach you suggested sounds good, so I gave it a try using itk::VectorImage and itk::ImageFileReader. However, this appears to read 4D niftis as only having 1 component (using the GetNumberOfComponentsPerPixel() method). I confirmed this by compiling the example at http://www.itk.org/Wiki/ITK/Examples/IO/ReadVectorImage and running it with multiple files that I have - it reported each one as having only 1 component. Is this to do with the choice of nifti format? Technically, vector images are supposed to use the 5th dimension as the vector length in nifti, not the 4th. Thanks, Tobias ________________________________________ From: Matt McCormick Sent: 12 January 2015 17:24 To: Wood, Tobias Cc: community at itk.org Subject: Re: [ITK] Reading 4D Nifti into a 3D Vector Image Hi Tobias, For this case, it may be better to read in the image as an itk::Image< itk::Vector< float, NumberOfComponents >, 3 > or itk::VectorImage< float, 3 > HTH, Matt On Mon, Jan 12, 2015 at 11:33 AM, Wood, Tobias wrote: > Hello, > > I am new to ITK and am working with datasets that are stored as 4D niftis of > variable length in the 4th dimension. The algorithm I need to write takes > the "vector" stored in the 4th dimension as input at each voxel, and > produces some scalar values as output. I would like to write a filter to > contain this algorithm, but I am struggling to work out how to specify the > input and iterate efficiently over it. > > > My output image type is itk::Image. I assume that my input image > type should be itk::Image. Inside the filter, I was planning on > using ImageRegionIterator with GetLargestPossibleRegion() to iterate over > the output voxels. > > > Is there a suitable iterator and region to obtain the vector of values for > each input voxel efficiently? Or, alternatively, is there another approach > that I should be taking? Perhaps using another filter to convert the input > data first? > > > Thanks in advance and I hope my question is clear, > > Tobias Wood > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From matt.mccormick at kitware.com Mon Jan 12 17:27:42 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 17:27:42 -0500 Subject: [ITK] Reading 4D Nifti into a 3D Vector Image In-Reply-To: <1421099508383.72585@kcl.ac.uk> References: <1421080382402.81740@kcl.ac.uk> <1421099508383.72585@kcl.ac.uk> Message-ID: Hi Tobias, This may be the case -- I am not an NIFTI expert. Another alternative may then be to use a 4D vector image type, then use ExtractImageFilter to remove the fourth dimension. HTH, Matt On Mon, Jan 12, 2015 at 4:51 PM, Wood, Tobias wrote: > Dear Matt and Brad, > Thanks for the quick response. The approach you suggested sounds good, so I gave it a try using itk::VectorImage and itk::ImageFileReader. However, this appears to read 4D niftis as only having 1 component (using the GetNumberOfComponentsPerPixel() method). I confirmed this by compiling the example at http://www.itk.org/Wiki/ITK/Examples/IO/ReadVectorImage and running it with multiple files that I have - it reported each one as having only 1 component. > > Is this to do with the choice of nifti format? Technically, vector images are supposed to use the 5th dimension as the vector length in nifti, not the 4th. > > Thanks, > Tobias > > ________________________________________ > From: Matt McCormick > Sent: 12 January 2015 17:24 > To: Wood, Tobias > Cc: community at itk.org > Subject: Re: [ITK] Reading 4D Nifti into a 3D Vector Image > > Hi Tobias, > > For this case, it may be better to read in the image as an > > itk::Image< itk::Vector< float, NumberOfComponents >, 3 > > > or > > itk::VectorImage< float, 3 > > > HTH, > Matt > > On Mon, Jan 12, 2015 at 11:33 AM, Wood, Tobias wrote: >> Hello, >> >> I am new to ITK and am working with datasets that are stored as 4D niftis of >> variable length in the 4th dimension. The algorithm I need to write takes >> the "vector" stored in the 4th dimension as input at each voxel, and >> produces some scalar values as output. I would like to write a filter to >> contain this algorithm, but I am struggling to work out how to specify the >> input and iterate efficiently over it. >> >> >> My output image type is itk::Image. I assume that my input image >> type should be itk::Image. Inside the filter, I was planning on >> using ImageRegionIterator with GetLargestPossibleRegion() to iterate over >> the output voxels. >> >> >> Is there a suitable iterator and region to obtain the vector of values for >> each input voxel efficiently? Or, alternatively, is there another approach >> that I should be taking? Perhaps using another filter to convert the input >> data first? >> >> >> Thanks in advance and I hope my question is clear, >> >> Tobias Wood >> >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community >> From matt.mccormick at kitware.com Mon Jan 12 17:46:57 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 12 Jan 2015 17:46:57 -0500 Subject: [ITK] [ITK-users] 2 parameters registration In-Reply-To: References: Message-ID: Hi Yi-Yu, You may want to use a transform like the Similarity3DTransform [1] and set the Weights on the Optimizer appropriately [2] to hold parameters that should be fixed constant. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1Similarity3DTransform.html [2] http://www.itk.org/Doxygen/html/classitk_1_1ObjectToObjectOptimizerBaseTemplate.html On Mon, Jan 12, 2015 at 1:55 PM, Yi-Yu Chou wrote: > Dear ITK experts, > > I would like to implement a 2 parameters (one pitch rotation + one global > scaling) 3D image registration with ITK. > > It is highly appreciated if you could shed some light on this matter. > Thanks in advance !! > > Yi-Yu > > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From urasmutlu at gmail.com Tue Jan 13 05:17:14 2015 From: urasmutlu at gmail.com (Uras Mutlu) Date: Tue, 13 Jan 2015 12:17:14 +0200 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir Message-ID: Hello, I'm a new software developer and I'm trying to learn itk-vtk because of the projects the company I work for is running. I need help with a small issue. I'm trying to add this "watershed" module to the install directory of itk (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to copy all the files of this git repository to the source folder of itk and then build WHOLE itk again? There must be an easy way that I'm missing. Please give me some instructions about how to do this. Module I want to install is: https://github.com/glehmann/watershed Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Tue Jan 13 08:59:16 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Tue, 13 Jan 2015 08:59:16 -0500 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: Hello, Most of those filters are already in ITK. You may need to turn on the Review module in ITK to see them. Most of them have been contributed through the Insight Journal: http://www.insight-journal.org/search/?search=lehmann Brad On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: > Hello, > > I'm a new software developer and I'm trying to learn itk-vtk because of the projects the company I work for is running. I need help with a small issue. > > I'm trying to add this "watershed" module to the install directory of itk (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to copy all the files of this git repository to the source folder of itk and then build WHOLE itk again? There must be an easy way that I'm missing. Please give me some instructions about how to do this. > > Module I want to install is: https://github.com/glehmann/watershed > > Thank you. > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Tue Jan 13 09:32:15 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Tue, 13 Jan 2015 09:32:15 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Message-ID: Wow, very nice! Thanks for the clear commit message too. Here is the latest dashboard build: https://open.cdash.org/buildSummary.php?buildid=3650940 Way to squash 104 failing tests! One left though :) With all this being done, I am still not sure I would trust this compiler to generate correct code with ITK. Also has anyone tried the new VS13? Brad On Jan 12, 2015, at 11:31 AM, Matt McCormick wrote: > Excellent. Thanks! > > On Mon, Jan 12, 2015 at 11:26 AM, Floris Berendsen wrote: >> FYI: A workaround of Niels was submitted to gerrit (by Marius Staring). >> Please have a look at the patch. >> >> I8177d3b7: BUG: workaround for 64bit VS2013 Release segfault >> http://review.source.kitware.com/#/c/18825/ >> >> Thanks, >> Floris >> >> On Fri, Jan 9, 2015 at 4:34 PM, Matt McCormick >> wrote: >>> >>> Hi Niels, >>> >>> Great news! >>> >>> This same strategy was used to to fix some of the other failing tests >>> [1]. While it should not strictly be necessary, it does hurt to >>> improve our const-correctness and memory usage anyway. Please >>> consider submitting a patch for these changes [2]. >>> >>> Thanks, >>> Matt >>> >>> >>> [1] >>> http://itk.org/gitweb?p=ITK.git;a=blobdiff;f=Modules/Filtering/ImageGrid/include/itkShrinkImageFilter.hxx;h=fca11a3eea3f885411192fd942c674cbba30c604;hp=86c3985601ff24ee36f6a0972be11573dfcc277c;hb=b92b952b98bee6dfc3837f4ed5d600e637cdcda9;hpb=7170ea77a918d268dd1971244ceb41b6d3518e21 >>> >>> [2] >>> https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html >>> >>> On Fri, Jan 9, 2015 at 10:28 AM, Niels Dekker wrote: >>>> Floris and I did some testing on how to work around this Visual C++ >>>> compiler bug. It looks like the crashes (segfaults) in both >>>> FiniteDifferenceImageFilter::InitializeFunctionCoefficients() and >>>> ImageRegion::IsInside(const Self&) disappear when a local object is >>>> replaced by a const-reference. >>>> >>>> In "Core\FiniteDifference\include\itkFiniteDifferenceImageFilter.hxx" >>>> (line 273): >>>> >>>> - const SpacingType spacing = outputImage->GetSpacing(); >>>> + const SpacingType & spacing = outputImage->GetSpacing(); >>>> >>>> >>>> In "Core\Common\include\itkImageRegion.h" (line 260): >>>> >>>> - SizeType& size = region.GetSize(); >>>> + const SizeType & size = region.GetSize(); >>>> >>>> >>>> I must admit I don't know why such a modification actually does suppress >>>> the crashes. But it seems to do the job! What do you think? >>>> >>>> Kind regards, Niels >>>> >> >> > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From didier.cassereau at upmc.fr Tue Jan 13 09:25:48 2015 From: didier.cassereau at upmc.fr (Didier Cassereau) Date: Tue, 13 Jan 2015 15:25:48 +0100 Subject: [ITK] ITK v4 & MedPy 0.2.2 Message-ID: <54B52AEC.9070200@upmc.fr> Dear all, I am new to ITK & MedPy and I encounter a difficulty for which I cannot find any solutioN. I tried several workarounds and did not succeed. My configuration is - Linux Fedora FC 20 - ITK 4.7.0 compiled locally - Python 2.7.5 and MedPy 0.2.2 >From here I just try to load one test image found in the ITK archive with the following: >>> import vtk >>> from medpy.io import load >>> image_data, image_header = load('/tmp/test.mha') I obtain the following error message: Traceback (most recent call last): File "", line 1, in File "build/bdist.linux-x86_64/egg/medpy/io/load.py", line 201, in load medpy.core.exceptions.ImageLoadingError: Failes to load image /tmp/test.mha as Itk/Vtk MetaImage (.mhd, .mha/.raw). Reason signaled by third-party module: 'module' object has no attribute 'swig' In my generation options I find: - ITK_USE_SYSTEM_SWIG = OFF - SWIG_DIR = folder to swig/3.0.2 in the bin folder of ITK (exists and not empty) - SWIG_EXECUTABLE = path to swig executable file (exists) If anybody has some idea or suggestion, any help would be greatly appreciated. Best regards to all D. Cassereau / Je suis Charlie From matt.mccormick at kitware.com Tue Jan 13 10:06:30 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 13 Jan 2015 10:06:30 -0500 Subject: [ITK] ITK v4 & MedPy 0.2.2 In-Reply-To: <54B52AEC.9070200@upmc.fr> References: <54B52AEC.9070200@upmc.fr> Message-ID: Hi Didier, Does this example work with your ITK Python installation? http://itk.org/ITKExamples/src/Filtering/Smoothing/ApplyMedianFilter/Documentation.html Did you install WrapITK? Did you add add WrapITK.pth to your sys.path? Thanks, Matt On Tue, Jan 13, 2015 at 9:25 AM, Didier Cassereau wrote: > Dear all, > > I am new to ITK & MedPy and I encounter a difficulty for which I cannot > find any solutioN. I tried several workarounds and did not succeed. > My configuration is > - Linux Fedora FC 20 > - ITK 4.7.0 compiled locally > - Python 2.7.5 and MedPy 0.2.2 > > From here I just try to load one test image found in the ITK archive > with the following: > >>>> import vtk >>>> from medpy.io import load >>>> image_data, image_header = load('/tmp/test.mha') > > I obtain the following error message: > > Traceback (most recent call last): > File "", line 1, in > File "build/bdist.linux-x86_64/egg/medpy/io/load.py", line 201, in load > medpy.core.exceptions.ImageLoadingError: Failes to load image > /tmp/test.mha as Itk/Vtk MetaImage (.mhd, .mha/.raw). Reason signaled by > third-party module: 'module' object has no attribute 'swig' > > In my generation options I find: > - ITK_USE_SYSTEM_SWIG = OFF > - SWIG_DIR = folder to swig/3.0.2 in the bin folder of ITK (exists and > not empty) > - SWIG_EXECUTABLE = path to swig executable file (exists) > > If anybody has some idea or suggestion, any help would be greatly > appreciated. > > Best regards to all > > D. Cassereau / Je suis Charlie > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From blowekamp at mail.nih.gov Tue Jan 13 10:08:44 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Tue, 13 Jan 2015 10:08:44 -0500 Subject: [ITK] [ITK-dev] Versor Transform Only Work with Jacobian Scales Estimator Message-ID: <5FA06B8D-CA2D-41AB-BC6F-E99B12B3DB1D@mail.nih.gov> Hello, After experimentation in SimpleITK, I have come to the realization that only the RegistrationParameterScaleFromJacobian is compatible with the Versor based transforms. This is similar to only using the RegularStepGradientDescentOptimizerv4 only correctly normalizing the step for the non-euclidian space. I believe the Index and Physical space don't correctly account for the non-euclidian versor space to the scale estimates are incorrect. Where should this be documented? Brad _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matt.mccormick at kitware.com Tue Jan 13 10:14:47 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 13 Jan 2015 10:14:47 -0500 Subject: [ITK] Reading 4D Nifti into a 3D Vector Image In-Reply-To: <1421147052061.40478@kcl.ac.uk> References: <1421080382402.81740@kcl.ac.uk> <1421099508383.72585@kcl.ac.uk> <1421147052061.40478@kcl.ac.uk> Message-ID: Hi Tobias, Good to hear you have a solution. Did reading in the image as VectorImage< float, 4 > or Image< Vector< float, NElements >, 4 > not work in step 1) ? Thanks, Matt On Tue, Jan 13, 2015 at 6:04 AM, Wood, Tobias wrote: > Thanks Matt - with your hint I think I have a solution: > 1 - Read in the file as an Image > 2 - Iterate over the volumes and create an ExtractImageFilter, Image> for each one > 3 - Set the ExtractImageFilter outputs as the inputs to a ComposeImageFilter, VectorImage> > 4 - Use the output of the ComposeImageFilter as the input for my filter > > The only thing that has confused me is that I have to call Update() on each ExtractImageFilter in the loop, otherwise the final image has size (0,0,0). I think I'll wrap this up as a composite filter I can re-use. This feels like a sledgehammer-to-crack-a-nut type approach, but it works. If any one has any other suggestions I'm all ears. > > Thanks again, > Tobias > > ________________________________________ > From: Matt McCormick > Sent: 12 January 2015 22:27 > To: Wood, Tobias > Cc: community at itk.org > Subject: Re: [ITK] Reading 4D Nifti into a 3D Vector Image > > Hi Tobias, > > This may be the case -- I am not an NIFTI expert. Another alternative > may then be to use a 4D vector image type, then use ExtractImageFilter > to remove the fourth dimension. > > HTH, > Matt > > On Mon, Jan 12, 2015 at 4:51 PM, Wood, Tobias wrote: >> Dear Matt and Brad, >> Thanks for the quick response. The approach you suggested sounds good, so I gave it a try using itk::VectorImage and itk::ImageFileReader. However, this appears to read 4D niftis as only having 1 component (using the GetNumberOfComponentsPerPixel() method). I confirmed this by compiling the example at http://www.itk.org/Wiki/ITK/Examples/IO/ReadVectorImage and running it with multiple files that I have - it reported each one as having only 1 component. >> >> Is this to do with the choice of nifti format? Technically, vector images are supposed to use the 5th dimension as the vector length in nifti, not the 4th. >> >> Thanks, >> Tobias >> >> ________________________________________ >> From: Matt McCormick >> Sent: 12 January 2015 17:24 >> To: Wood, Tobias >> Cc: community at itk.org >> Subject: Re: [ITK] Reading 4D Nifti into a 3D Vector Image >> >> Hi Tobias, >> >> For this case, it may be better to read in the image as an >> >> itk::Image< itk::Vector< float, NumberOfComponents >, 3 > >> >> or >> >> itk::VectorImage< float, 3 > >> >> HTH, >> Matt >> >> On Mon, Jan 12, 2015 at 11:33 AM, Wood, Tobias wrote: >>> Hello, >>> >>> I am new to ITK and am working with datasets that are stored as 4D niftis of >>> variable length in the 4th dimension. The algorithm I need to write takes >>> the "vector" stored in the 4th dimension as input at each voxel, and >>> produces some scalar values as output. I would like to write a filter to >>> contain this algorithm, but I am struggling to work out how to specify the >>> input and iterate efficiently over it. >>> >>> >>> My output image type is itk::Image. I assume that my input image >>> type should be itk::Image. Inside the filter, I was planning on >>> using ImageRegionIterator with GetLargestPossibleRegion() to iterate over >>> the output voxels. >>> >>> >>> Is there a suitable iterator and region to obtain the vector of values for >>> each input voxel efficiently? Or, alternatively, is there another approach >>> that I should be taking? Perhaps using another filter to convert the input >>> data first? >>> >>> >>> Thanks in advance and I hope my question is clear, >>> >>> Tobias Wood >>> >>> >>> _______________________________________________ >>> Community mailing list >>> Community at itk.org >>> http://public.kitware.com/mailman/listinfo/community >>> From didier.cassereau at upmc.fr Tue Jan 13 10:37:42 2015 From: didier.cassereau at upmc.fr (Didier Cassereau) Date: Tue, 13 Jan 2015 16:37:42 +0100 Subject: [ITK] ITK v4 & MedPy 0.2.2 In-Reply-To: References: <54B52AEC.9070200@upmc.fr> Message-ID: <54B53BC6.7090504@upmc.fr> On 13/01/2015 16:06, Matt McCormick wrote: > Hi Didier, > > Does this example work with your ITK Python installation? > > http://itk.org/ITKExamples/src/Filtering/Smoothing/ApplyMedianFilter/Documentation.html No problem with this test with Python > Did you install WrapITK? Did you add add WrapITK.pth to your sys.path? Do you mean the WrapITK that can be found in the development files of ITK? My compilation options of ITK are: INSTALL_WRAP_ITK_COMPATIBILITY: ON ITKV3_COMPATIBILITY: ON ITK_WRAP_PYTHON: ON ITK_WRAP_SWIGINTERFACE: ON ITK_WRAP_*: (*=double, float, ...) some are ON and some are OFF, unchanged from the default And no I did not change sys.path as I thought WrapITK would have been part of ITK itself. Do you see something wrong in that? Best regards Didier > > Thanks, > Matt > > On Tue, Jan 13, 2015 at 9:25 AM, Didier Cassereau > wrote: >> Dear all, >> >> I am new to ITK & MedPy and I encounter a difficulty for which I cannot >> find any solutioN. I tried several workarounds and did not succeed. >> My configuration is >> - Linux Fedora FC 20 >> - ITK 4.7.0 compiled locally >> - Python 2.7.5 and MedPy 0.2.2 >> >> From here I just try to load one test image found in the ITK archive >> with the following: >> >>>>> import vtk >>>>> from medpy.io import load >>>>> image_data, image_header = load('/tmp/test.mha') >> I obtain the following error message: >> >> Traceback (most recent call last): >> File "", line 1, in >> File "build/bdist.linux-x86_64/egg/medpy/io/load.py", line 201, in load >> medpy.core.exceptions.ImageLoadingError: Failes to load image >> /tmp/test.mha as Itk/Vtk MetaImage (.mhd, .mha/.raw). Reason signaled by >> third-party module: 'module' object has no attribute 'swig' >> >> In my generation options I find: >> - ITK_USE_SYSTEM_SWIG = OFF >> - SWIG_DIR = folder to swig/3.0.2 in the bin folder of ITK (exists and >> not empty) >> - SWIG_EXECUTABLE = path to swig executable file (exists) >> >> If anybody has some idea or suggestion, any help would be greatly >> appreciated. >> >> Best regards to all >> >> D. Cassereau / Je suis Charlie >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community -- ---------------------------------------------------- Didier CASSEREAU Laboratoire d'Imagerie Biom?dicale Site des Cordeliers 15 Rue de l'Ecole de m?decine 75006 Paris, France T?l : (+33.1) 44.41.49.71 From matt.mccormick at kitware.com Tue Jan 13 10:43:15 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 13 Jan 2015 10:43:15 -0500 Subject: [ITK] ITK v4 & MedPy 0.2.2 In-Reply-To: <54B53BC6.7090504@upmc.fr> References: <54B52AEC.9070200@upmc.fr> <54B53BC6.7090504@upmc.fr> Message-ID: On Tue, Jan 13, 2015 at 10:37 AM, Didier Cassereau wrote: > On 13/01/2015 16:06, Matt McCormick wrote: >> Hi Didier, >> >> Does this example work with your ITK Python installation? >> >> http://itk.org/ITKExamples/src/Filtering/Smoothing/ApplyMedianFilter/Documentation.html > > No problem with this test with Python Good. Maybe it is a problem with medpy. >> Did you install WrapITK? Did you add add WrapITK.pth to your sys.path? > > Do you mean the WrapITK that can be found in the development files of ITK? > My compilation options of ITK are: > INSTALL_WRAP_ITK_COMPATIBILITY: ON > ITKV3_COMPATIBILITY: ON > ITK_WRAP_PYTHON: ON > ITK_WRAP_SWIGINTERFACE: ON > ITK_WRAP_*: (*=double, float, ...) some are ON and some are OFF, > unchanged from the default > > And no I did not change sys.path as I thought WrapITK would have been > part of ITK itself. WrapITK can be installed or WrapITK.pth can be added to sys.path. Either way, Python must be able to find not only the .py files, but also the DLL Python modules and ITK libraries. HTH, Matt From urasmutlu at gmail.com Wed Jan 14 03:35:19 2015 From: urasmutlu at gmail.com (Uras Mutlu) Date: Wed, 14 Jan 2015 10:35:19 +0200 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: Hello, Thanks for your answer. I turned on the Review module and many new classes are added. But I have a problem with a particular one. I'm trying to build and run this one: https://github.com/richardbeare/mbwss But a particular file, "morphutils.h" is giving an error while compiling and I can't seem to find out why. I would really be appreciated If I can get help on this one. Thank you. Uras 2015-01-13 15:59 GMT+02:00 Bradley Lowekamp : > Hello, > > Most of those filters are already in ITK. You may need to turn on the > Review module in ITK to see them. Most of them have been contributed > through the Insight Journal: > http://www.insight-journal.org/search/?search=lehmann > > Brad > > On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: > > Hello, > > I'm a new software developer and I'm trying to learn itk-vtk because of > the projects the company I work for is running. I need help with a small > issue. > > I'm trying to add this "watershed" module to the install directory of itk > (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to > copy all the files of this git repository to the source folder of itk and > then build WHOLE itk again? There must be an easy way that I'm missing. > Please give me some instructions about how to do this. > > Module I want to install is: https://github.com/glehmann/watershed > > Thank you. > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.froger.ml at mailoo.org Wed Jan 14 03:27:37 2015 From: david.froger.ml at mailoo.org (David Froger) Date: Wed, 14 Jan 2015 09:27:37 +0100 Subject: [ITK] PipelineMonitorImageFilter Message-ID: <20150114082737.30300.40763@otis.rocq.inria.fr> Hi, I'm trying to use PipelineMonitorImageFilter to monitor the regions of an image written to a file with streaming. I've modified the file itkHDF5ImageIOStreamingReadWriteTest.cxx like this (attached): diff --git a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx index b1f26b8..ab9072e 100644 --- a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx +++ b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx @@ -54,8 +54,13 @@ int HDF5ReadWriteTest2(const char *fileName) } typedef typename itk::ImageFileWriter WriterType; typename WriterType::Pointer writer = WriterType::New(); + + typedef typename itk::PipelineMonitorImageFilter MonitorFilter; + typename MonitorFilter::Pointer writerMonitor = MonitorFilter::New(); + writerMonitor->SetInput(im); + writer->SetFileName(fileName); - writer->SetInput(im); + writer->SetInput(writerMonitor->GetOutput()); writer->SetNumberOfStreamDivisions(5); try { @@ -76,7 +81,6 @@ int HDF5ReadWriteTest2(const char *fileName) reader->SetFileName(fileName); reader->SetUseStreaming(true); - typedef typename itk::PipelineMonitorImageFilter MonitorFilter; typename MonitorFilter::Pointer monitor = MonitorFilter::New(); monitor->SetInput(reader->GetOutput()); This change causes an "Exception: Numerical" later (line 106), when trying to use "it" to iterate on "im". I don't understand what's happening and what I did wrong. Is "im" deallocated by "writerMonitor"? Thanks, David -------------- next part -------------- /*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #include "itkHDF5ImageIOFactory.h" #include "itkIOTestHelper.h" #include "itkPipelineMonitorImageFilter.h" #include "itkStreamingImageFilter.h" template int HDF5ReadWriteTest2(const char *fileName) { int success(EXIT_SUCCESS); typedef typename itk::Image ImageType; typename ImageType::RegionType imageRegion; typename ImageType::SizeType size; typename ImageType::IndexType index; typename ImageType::SpacingType spacing; typename ImageType::PointType origin; typename ImageType::DirectionType myDirection; for(unsigned i = 0; i < 3; i++) { size[i] = 5; index[i] = 0; spacing[i] = 1.0 / (static_cast(i) + 1.0); origin[i] = static_cast(i) + 7.0; } imageRegion.SetSize(size); imageRegion.SetIndex(index); typename ImageType::Pointer im = itk::IOTestHelper::AllocateImageFromRegionAndSpacing(imageRegion,spacing); // // fill image buffer vnl_random randgen(12345678); itk::ImageRegionIterator it(im,im->GetLargestPossibleRegion()); for(it.GoToBegin(); !it.IsAtEnd(); ++it) { TPixel pix; itk::IOTestHelper::RandomPix(randgen,pix); it.Set(pix); } typedef typename itk::ImageFileWriter WriterType; typename WriterType::Pointer writer = WriterType::New(); typedef typename itk::PipelineMonitorImageFilter MonitorFilter; typename MonitorFilter::Pointer writerMonitor = MonitorFilter::New(); writerMonitor->SetInput(im); writer->SetFileName(fileName); writer->SetInput(writerMonitor->GetOutput()); writer->SetNumberOfStreamDivisions(5); try { writer->Write(); } catch(itk::ExceptionObject &err) { std::cout << "itkHDF5ImageIOTest" << std::endl << "Exception Object caught: " << std::endl << err << std::endl; return EXIT_FAILURE; } // force writer close writer = typename WriterType::Pointer(); typedef typename itk::ImageFileReader ReaderType; typename ReaderType::Pointer reader = ReaderType::New(); reader->SetFileName(fileName); reader->SetUseStreaming(true); typename MonitorFilter::Pointer monitor = MonitorFilter::New(); monitor->SetInput(reader->GetOutput()); typedef typename itk::StreamingImageFilter StreamingFilter; typename StreamingFilter::Pointer streamer = StreamingFilter::New(); streamer->SetInput(monitor->GetOutput()); streamer->SetNumberOfStreamDivisions(5); typename ImageType::Pointer im2; try { streamer->Update(); } catch(itk::ExceptionObject &err) { std::cout << "itkHDF5ImageIOTest" << std::endl << "Exception Object caught: " << std::endl << err << std::endl; return EXIT_FAILURE; } im2 = streamer->GetOutput(); itk::ImageRegionIterator it2(im2,im2->GetLargestPossibleRegion()); for(it.GoToBegin(),it2.GoToBegin(); !it.IsAtEnd() && !it2.IsAtEnd(); ++it,++it2) { if(it.Value() != it2.Value()) { std::cout << "Original Pixel (" << it.Value() << ") doesn't match read-in Pixel (" << it2.Value() << std::endl; success = EXIT_FAILURE; break; } } itk::IOTestHelper::Remove(fileName); return success; } int itkHDF5ImageIOStreamingReadWriteTest(int ac, char * av []) { std::string prefix(""); if(ac > 1) { prefix = *++av; --ac; itksys::SystemTools::ChangeDirectory(prefix.c_str()); } itk::ObjectFactoryBase::RegisterFactory(itk::HDF5ImageIOFactory::New() ); int result(0); result += HDF5ReadWriteTest2("StreamingUCharImage.hdf5"); result += HDF5ReadWriteTest2("StreamingFloatImage.hdf5"); result += HDF5ReadWriteTest2 >("StreamingRGBImage.hdf5"); return result != 0; } From niels-xtk at xs4all.nl Wed Jan 14 06:56:38 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Wed, 14 Jan 2015 12:56:38 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> Message-ID: <54B65976.3060205@xs4all.nl> Bradley Lowekamp wrote on Jan 13, 2015: > Wow, very nice! Thanks for the clear commit message too. You're welcome :-) > Here is the latest dashboard build: > https://open.cdash.org/buildSummary.php?buildid=3650940 > Way to squash 104 failing tests! One left though :) Cool! Do you have a clue how fix the one test failure that is left? I see it's a failure of CellularSegmentation1Test. > With all this being done, I am still not sure I would trust > this compiler to generate correct code with ITK. I really hope so! Visual Studio 2013 has had four updates already, including many compiler bug fixes. VS2013 offers many Standard C++ language features that were not available in previous versions of Visual C++, including: * Initializer lists * Variadic templates * Delegating constructors * Raw string literals * 'using' aliases * Deleted functions ('=delete') * Defaulted functions ('=default') * Non-static data member initializers A longer list is at "What's New for Visual C++ in Visual Studio 2013", http://msdn.microsoft.com/en-us/library/hh409293.aspx Kind regards, Niels -- Niels Dekker Scientific programmer at LKEB, Leiden University Medical Center From floris at isi.uu.nl Wed Jan 14 07:42:31 2015 From: floris at isi.uu.nl (Floris Berendsen) Date: Wed, 14 Jan 2015 13:42:31 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <54B65976.3060205@xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> Message-ID: Unfortunately I ran into more problems with the VS2013 compiler. If I set ITK_USE_64BITS_IDS to ON the compiler crashes while building Release. Could this setting be added to the setup of lhcp-vm-win701.nlm on CDash, since I think this configuration is preferable for 64bits? The compiler crash is related to a typecast of a 64bits id to an unsigned int. We are working on a next minimal example. In case of ITK, this (implicit) typecast is performed when calling the vnl-library, since it uses unsigned ints for indexing vectors. This raises the next question if vnl is suitable for 64bits at all, since it looks like it is limited to 32 bit. Cheers, Floris On Wed, Jan 14, 2015 at 12:56 PM, Niels Dekker wrote: > Bradley Lowekamp wrote on Jan 13, 2015: > >> Wow, very nice! Thanks for the clear commit message too. >> > > You're welcome :-) > > > Here is the latest dashboard build: >> https://open.cdash.org/buildSummary.php?buildid=3650940 >> Way to squash 104 failing tests! One left though :) >> > > Cool! Do you have a clue how fix the one test failure that is left? I see > it's a failure of CellularSegmentation1Test. > > > With all this being done, I am still not sure I would trust >> this compiler to generate correct code with ITK. >> > > I really hope so! Visual Studio 2013 has had four updates already, > including many compiler bug fixes. VS2013 offers many Standard C++ language > features that were not available in previous versions of Visual C++, > including: > > * Initializer lists > * Variadic templates > * Delegating constructors > * Raw string literals > * 'using' aliases > * Deleted functions ('=delete') > * Defaulted functions ('=default') > * Non-static data member initializers > > A longer list is at "What's New for Visual C++ in Visual Studio 2013", > http://msdn.microsoft.com/en-us/library/hh409293.aspx > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer at LKEB, Leiden University Medical Center > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Wed Jan 14 08:02:16 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 14 Jan 2015 08:02:16 -0500 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: It would be best to contact the author of the package your trying to build. Brad On Jan 14, 2015, at 3:35 AM, Uras Mutlu wrote: > Hello, > > Thanks for your answer. I turned on the Review module and many new classes are added. But I have a problem with a particular one. I'm trying to build and run this one: https://github.com/richardbeare/mbwss > > But a particular file, "morphutils.h" is giving an error while compiling and I can't seem to find out why. I would really be appreciated If I can get help on this one. > > Thank you. > > Uras > > 2015-01-13 15:59 GMT+02:00 Bradley Lowekamp : > Hello, > > Most of those filters are already in ITK. You may need to turn on the Review module in ITK to see them. Most of them have been contributed through the Insight Journal: http://www.insight-journal.org/search/?search=lehmann > > Brad > > On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: > >> Hello, >> >> I'm a new software developer and I'm trying to learn itk-vtk because of the projects the company I work for is running. I need help with a small issue. >> >> I'm trying to add this "watershed" module to the install directory of itk (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to copy all the files of this git repository to the source folder of itk and then build WHOLE itk again? There must be an easy way that I'm missing. Please give me some instructions about how to do this. >> >> Module I want to install is: https://github.com/glehmann/watershed >> >> Thank you. >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Wed Jan 14 08:11:07 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 14 Jan 2015 08:11:07 -0500 Subject: [ITK] PipelineMonitorImageFilter In-Reply-To: <20150114082737.30300.40763@otis.rocq.inria.fr> References: <20150114082737.30300.40763@otis.rocq.inria.fr> Message-ID: Hello David, Thanks for looking into this. The PipelineMonitorImageFilter always runs InPlace, that is it is derived from the InPlaceImageFilter[1] and InPlace ivar is always true. Running a filter InPlace is a great way to reduce memory usage, and frequently improve performance of a filter. What running InPlace means for a filter is that the buffer of the input image is reused on the output image, and removed from the input image. So your ImageIterator points to an image which was the input of the PipelineMonitorFilter, and not it has to image buffer. Brad [1] http://www.itk.org/Doxygen/html/classitk_1_1InPlaceImageFilter.html On Jan 14, 2015, at 3:27 AM, David Froger wrote: > Hi, > > I'm trying to use PipelineMonitorImageFilter to monitor the regions of an > image written to a file with streaming. > > I've modified the file itkHDF5ImageIOStreamingReadWriteTest.cxx like this > (attached): > > diff --git a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > index b1f26b8..ab9072e 100644 > --- a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > +++ b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > @@ -54,8 +54,13 @@ int HDF5ReadWriteTest2(const char *fileName) > } > typedef typename itk::ImageFileWriter WriterType; > typename WriterType::Pointer writer = WriterType::New(); > + > + typedef typename itk::PipelineMonitorImageFilter MonitorFilter; > + typename MonitorFilter::Pointer writerMonitor = MonitorFilter::New(); > + writerMonitor->SetInput(im); > + > writer->SetFileName(fileName); > - writer->SetInput(im); > + writer->SetInput(writerMonitor->GetOutput()); > writer->SetNumberOfStreamDivisions(5); > try > { > @@ -76,7 +81,6 @@ int HDF5ReadWriteTest2(const char *fileName) > reader->SetFileName(fileName); > reader->SetUseStreaming(true); > > - typedef typename itk::PipelineMonitorImageFilter MonitorFilter; > typename MonitorFilter::Pointer monitor = MonitorFilter::New(); > monitor->SetInput(reader->GetOutput()); > > This change causes an "Exception: Numerical" later (line 106), when trying to > use "it" to iterate on "im". > > I don't understand what's happening and what I did wrong. Is "im" deallocated by > "writerMonitor"? > > Thanks, > David > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From blowekamp at mail.nih.gov Wed Jan 14 08:20:37 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 14 Jan 2015 08:20:37 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> Message-ID: Yes, I'll add the 64BIT flags to that build. Brad On Jan 14, 2015, at 7:42 AM, Floris Berendsen wrote: > Unfortunately I ran into more problems with the VS2013 compiler. If I set ITK_USE_64BITS_IDS to ON the compiler crashes while building Release. > > Could this setting be added to the setup of lhcp-vm-win701.nlm on CDash, since I think this configuration is preferable for 64bits? > > The compiler crash is related to a typecast of a 64bits id to an unsigned int. We are working on a next minimal example. > > In case of ITK, this (implicit) typecast is performed when calling the vnl-library, since it uses unsigned ints for indexing vectors. > This raises the next question if vnl is suitable for 64bits at all, since it looks like it is limited to 32 bit. > > Cheers, > Floris > > On Wed, Jan 14, 2015 at 12:56 PM, Niels Dekker wrote: > Bradley Lowekamp wrote on Jan 13, 2015: > Wow, very nice! Thanks for the clear commit message too. > > You're welcome :-) > > > Here is the latest dashboard build: > https://open.cdash.org/buildSummary.php?buildid=3650940 > Way to squash 104 failing tests! One left though :) > > Cool! Do you have a clue how fix the one test failure that is left? I see it's a failure of CellularSegmentation1Test. > > > With all this being done, I am still not sure I would trust > this compiler to generate correct code with ITK. > > I really hope so! Visual Studio 2013 has had four updates already, including many compiler bug fixes. VS2013 offers many Standard C++ language features that were not available in previous versions of Visual C++, including: > > * Initializer lists > * Variadic templates > * Delegating constructors > * Raw string literals > * 'using' aliases > * Deleted functions ('=delete') > * Defaulted functions ('=default') > * Non-static data member initializers > > A longer list is at "What's New for Visual C++ in Visual Studio 2013", http://msdn.microsoft.com/en-us/library/hh409293.aspx > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer at LKEB, Leiden University Medical Center > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Wed Jan 14 10:50:20 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 14 Jan 2015 10:50:20 -0500 Subject: [ITK] Opportunities to share, discuss, design, and learn with other ITK community members Message-ID: There are a couple of upcoming opportunities to share, discuss, design, and learn with your fellow ITK community members. On Thursday (tomorrow), 1:00 PM Eastern USA time, there will be a Google+ Hangout where we will be doing code reviews: https://plus.google.com/events/ctg03o79vsd0irnhpugquuatfoc On Friday, 11:00 AM Eastern USA time, an ITK development conference, https://plus.google.com/events/cidukboj4bn3k2ndetr1rqdk3a0 For those that cannot join via Hangout, telephone call-in is also possible. Dial: 585-632-6296 Enter pin: 31423 To get regular invites to these events, join the ITK Bar Camp G+ Community: https://plus.google.com/u/0/communities/111375098792764998322 All are welcome. Hope to talk to you then! From emily-hammond at uiowa.edu Wed Jan 14 11:55:22 2015 From: emily-hammond at uiowa.edu (Hammond, Emily M) Date: Wed, 14 Jan 2015 16:55:22 +0000 Subject: [ITK] [ITK-users] concept checking error - RegistrationMethodv4 Message-ID: <2609C492EC89AB4CAAD3647B8D1A43CC2F173BD7@ITSNT437.iowa.uiowa.edu> Hello, I am working with very large images and would like to use a short pixel type for my fixed and moving images within the ImageRegistrationMethodv4; however, my code does not build until a float pixel type is used. Here is a snippet of my code (looks pretty standard): const unsigned int Dimension = 3; typedef short PixelType; typedef itk::Image< PixelType, Dimension > FixedImageType; typedef itk::Image< PixelType, Dimension > MovingImageType; typedef itk::MattesMutualInformationImageToImageMetricv4< FixedImageType, MovingImageType > MetricType; typedef itk::ImageRegistrationMethodv4< FixedImageType, MovingImageType, TransformType > RegistrationType; RegistrationType::Pointer registration = RegistrationType::New(); MetricType::Pointer metric = MetricType::New(); At this point in the code, the following error is thrown (not seen if using float pixel type): error C2440: 'initializing' : cannot convert from 'itk::Concept::Detail::UniqueType_bool<__formal>' to 'itk::Concept::Detail::UniqueType_bool<__formal>' Can anyone give me some insight into this problem? From previous experience I know that short pixel types work with the metrics and registration method from the previous version. Does version 4 not have these capabilities? Thanks! Emily Hammond -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 14 12:02:19 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 14 Jan 2015 12:02:19 -0500 Subject: [ITK] Registering for New Gerrit Accounts Message-ID: Google is currently dropping support for OpenID authentication through Google accounts. While currently registered Gerrit users '*can still use their account'*, new Gerrit account registrations with Google currently face the error: 400. That's an error. OpenID auth request contains an unregistered domain. See the attached image for a screenshot. We are currently upgrading the Gerrit infrastructure, and GitHub-based authentifications will soon be possible. Until that time, it is suggested that ''new'' Gerrit accounts made with a Yahoo account. Thanks for your patience and sorry for any inconvenience. Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenID400Error.png Type: image/png Size: 25606 bytes Desc: not available URL: From blowekamp at mail.nih.gov Wed Jan 14 12:57:10 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 14 Jan 2015 12:57:10 -0500 Subject: [ITK] [ITK-users] concept checking error - RegistrationMethodv4 In-Reply-To: <2609C492EC89AB4CAAD3647B8D1A43CC2F173BD7@ITSNT437.iowa.uiowa.edu> References: <2609C492EC89AB4CAAD3647B8D1A43CC2F173BD7@ITSNT437.iowa.uiowa.edu> Message-ID: <804E5EFC-A383-471A-ABD2-6A51E3016E81@mail.nih.gov> Hello, The current ITKv4 registration frame work is limited to real type (float/double). I believe it could be changed with some work, I think much of the reasoning for this requirement has to do with the way the multi-scale and gradient magnitude are implemented. If you image is large, perhaps you should reduce the resolution before performing registration? Brad On Jan 14, 2015, at 11:55 AM, Hammond, Emily M wrote: > Hello, > > I am working with very large images and would like to use a short pixel type for my fixed and moving images within the ImageRegistrationMethodv4; however, my code does not build until a float pixel type is used. Here is a snippet of my code (looks pretty standard): > > const unsigned int Dimension = 3; > typedef short PixelType; > > typedef itk::Image< PixelType, Dimension > FixedImageType; > typedef itk::Image< PixelType, Dimension > MovingImageType; > > typedef itk::MattesMutualInformationImageToImageMetricv4< FixedImageType, MovingImageType > MetricType; > typedef itk::ImageRegistrationMethodv4< FixedImageType, MovingImageType, TransformType > RegistrationType; > > RegistrationType::Pointer registration = RegistrationType::New(); > MetricType::Pointer metric = MetricType::New(); > > At this point in the code, the following error is thrown (not seen if using float pixel type): > error C2440: 'initializing' : cannot convert from 'itk::Concept::Detail::UniqueType_bool<__formal>' to 'itk::Concept::Detail::UniqueType_bool<__formal>' > > Can anyone give me some insight into this problem? From previous experience I know that short pixel types work with the metrics and registration method from the previous version. Does version 4 not have these capabilities? > > Thanks! > Emily Hammond > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From richard.beare at gmail.com Wed Jan 14 16:04:45 2015 From: richard.beare at gmail.com (Richard Beare) Date: Thu, 15 Jan 2015 08:04:45 +1100 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: I'll have a play - to see if there are changes needed to support new ITK. If it is mbwss that you are interested in, then you can use the super build process, which is meant to build the ITK tag (4.4) that has been tested with mbwss. Brief instructions on using super build are on the github page: git clone https://github.com/richardbeare/mbwss.git cd mbwss git submodule init git submodule update cd .. mkdir BuildMBWSS cd BuildMBWSS ccmake ../mbwss/SuperBuild make On Thu, Jan 15, 2015 at 12:02 AM, Bradley Lowekamp wrote: > It would be best to contact the author of the package your trying to build. > > Brad > On Jan 14, 2015, at 3:35 AM, Uras Mutlu wrote: > > Hello, > > Thanks for your answer. I turned on the Review module and many new classes > are added. But I have a problem with a particular one. I'm trying to build > and run this one: https://github.com/richardbeare/mbwss > > But a particular file, "morphutils.h" is giving an error while compiling > and I can't seem to find out why. I would really be appreciated If I can > get help on this one. > > Thank you. > > Uras > > 2015-01-13 15:59 GMT+02:00 Bradley Lowekamp : > >> Hello, >> >> Most of those filters are already in ITK. You may need to turn on the >> Review module in ITK to see them. Most of them have been contributed >> through the Insight Journal: >> http://www.insight-journal.org/search/?search=lehmann >> >> Brad >> >> On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: >> >> Hello, >> >> I'm a new software developer and I'm trying to learn itk-vtk because of >> the projects the company I work for is running. I need help with a small >> issue. >> >> I'm trying to add this "watershed" module to the install directory of itk >> (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to >> copy all the files of this git repository to the source folder of itk and >> then build WHOLE itk again? There must be an easy way that I'm missing. >> Please give me some instructions about how to do this. >> >> Module I want to install is: https://github.com/glehmann/watershed >> >> Thank you. >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Wed Jan 14 17:05:19 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 14 Jan 2015 23:05:19 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi again. I fixed all the errors and got my library, now ready to be tested. It contains an encapsulation, on the one hand, of the class itkBinaryImageToShapeLabelMapFilter in order to get image shape descriptors of a 3D binary image, and on the other hand, the same for the class itkScalarImageToTextureFeaturesFilter to get image texture features of a 3D scalar image. I pass as input image to both classes a binary 3D Nifti image (150x150x150) containing a cylinder where the inside voxels are 255 and the outside voxels are 0. As for the shape issue, it's very strange to me that the call to GetNumberOfLabelObjects on a itk::LabelMap object returns a value of 0. The main code is as follows: binaryImageToShapeLabelMapFilter->SetInput(_input); binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); binaryImageToShapeLabelMapFilter->Update(); LabelMapType::Pointer labelMap = binaryImageToShapeLabelMapFilter->GetOutput(); int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); And, as for the texture features, the result of the filter does not seem to be very logic: Energy = 1 Entropy = 0 Correlation = 1 Local Homogeneity = 0 Inertia = 0 Cluster Shade = 0 Cluster Prominence = 0 I've also tested this with a scalar 3D Nifti image and the results are the same. And the question is: What kind of image do I have to pass to the filters so that the code would return a more logic expected answer? Thank you very much in advance. My best regars. /Francisco 2015-01-10 22:38 GMT+01:00 Matt McCormick : > Hi Francisco, > > Nice to hear about the progress! > > You will need to link your library to the ITK libraries: > > target_link_libraries( mylibrary ${ITK_LIBRARIES} ) > > HTH, > Matt > > On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca < > franciscolopezdelafranca at gmail.com> wrote: > >> Thanks to your previous answer the problem was solved, but another one >> has come out. It occurs when linking to create the library. It gives an >> undefined reference to itk::ExceptionObject::ExceptionObject... as you can >> see below. >> What it is strange to me is that before including explicit template >> instantiation, I created the library without errors, and now that I include >> that, I get this error. >> I'll appreciate very much any help. >> >> Linking CXX shared library libTFM_Features.dll >> >> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> 1ERKSsjS2_S2_]+0x35): undefined reference to >> `itk::ExceptionObject::ExceptionObj >> ect(std::string const&, unsigned int, std::string const&, std::string >> const&)' >> >> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for >> itk::MemoryAllocationEr >> ror' >> >> C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min >> gw32/bin/ld.exe: >> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba >> d reloc address 0x40 in section >> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ >> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' >> collect2.exe: error: ld returned 1 exit status >> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target >> 'SRC/libTFM_Fe >> atures.dll' failed >> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 >> CMakeFiles\Makefile2:77: recipe for target >> 'SRC/CMakeFiles/TFM_Features.dir/all' >> failed >> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 >> Makefile:74: recipe for target 'all' failed >> mingw32-make: *** [all] Error 2 >> >> >> 2015-01-09 21:02 GMT+01:00 Matt McCormick : >> >>> Hi Francisco, >>> >>> In order for the templates to be available in the library, they must >>> be explicitly instantiated [1]. >>> >>> HTH, >>> Matt >>> >>> [1] http://www.cplusplus.com/articles/1C75fSEw/ >>> >>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >>> wrote: >>> > Hi. >>> > I' like to create a library containing, for example, one template >>> class with >>> > a number of methods. >>> > I've programmed a simple example and the compilation and generation of >>> the >>> > library goes fine. I use the cmake "add_library" command for >>> generating the >>> > library. >>> > >>> > The problem arises at the moment of testing the library. I get an >>> undefined >>> > reference for every method in the template class. >>> > >>> > I've downloaded a tool to look in the contents (functions) of dynamic >>> > libraries, and there is no function in the library. If I add another >>> class >>> > (not a template class), then, this tool shows me only the functions in >>> this >>> > latter class. >>> > >>> > Has anyone ever come across with this problem? >>> > >>> > Thanks a lot in advance. >>> > Regards >>> > /Francisco >>> > >>> > _____________________________________ >>> > 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://public.kitware.com/mailman/listinfo/insight-users >>> > >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Wed Jan 14 17:40:48 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Wed, 14 Jan 2015 15:40:48 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation Message-ID: <1421275248945-35113.post@n7.nabble.com> Hello, I am trying to use the /HessianToObjectnessMeasureImageFilter/ to segment brain tissue. As this code is part of a larger system, I am providing the image as an array of /shorts/. Other segmentation methods, such as Otsu, flag the segmentation, so the result is a binary image (e.g. 255 and 0). I do not understand the results I am getting with the Hessian method. My code is as follows: *void HessianSegmentation( // Input data short *inputVoxels, const int dim, const double xSpacing, const double ySpacing, const double zSpacing, // Output data short *outputVoxels ) { try { const unsigned int Dimension = 3; typedef double InternalPixelType; typedef Image InternalImageType; typedef short VoxelPixelType; typedef Image VoxelImageType; // Image Importer - converts linear array of pixels in short format to an Image // typedef ImportImageFilter ImportFilterType; ImportFilterType::Pointer importFilter = ImportFilterType::New(); ImportFilterType::IndexType start; start.Fill(0); ImportFilterType::SizeType size; size[0] = size[1] = size[2] = dim; ImportFilterType::RegionType region; region.SetIndex(start); region.SetSize (size ); importFilter->SetRegion(region); const SpacePrecisionType origin[Dimension] = {0, 0, 0}; importFilter->SetOrigin(origin); const SpacePrecisionType spacing[Dimension] = {xSpacing, ySpacing, zSpacing}; importFilter->SetSpacing(spacing); importFilter->SetImportPointer(inputVoxels, dim * dim * dim, false); // Caster from short to float (input is shorts, detection needs floats) typedef CastImageFilter CastFilterTypeVoxelToInternal; CastFilterTypeVoxelToInternal::Pointer casterVoxelToInternal = CastFilterTypeVoxelToInternal::New(); casterVoxelToInternal-> SetInput(importFilter->GetOutput()); // Set up Hessian filter // typedef SymmetricSecondRankTensor HessianPixelType; typedef Image HessianImageType; typedef HessianToObjectnessMeasureImageFilter ObjectnessFilterType; ObjectnessFilterType::Pointer objectnessFilter = ObjectnessFilterType::New(); objectnessFilter->SetBrightObject(true); objectnessFilter->SetScaleObjectnessMeasure(false); objectnessFilter->SetAlpha(0.5); objectnessFilter->SetBeta (0.5); objectnessFilter->SetGamma(5.0); typedef MultiScaleHessianBasedMeasureImageFilter MultiScaleEnhancementFilterType; MultiScaleEnhancementFilterType::Pointer multiScaleEnhancementFilter = MultiScaleEnhancementFilterType::New(); multiScaleEnhancementFilter->SetHessianToMeasureFilter(objectnessFilter); multiScaleEnhancementFilter->SetSigmaStepMethodToLogarithmic(); multiScaleEnhancementFilter->SetSigmaMinimum(0.2); multiScaleEnhancementFilter->SetSigmaMaximum(2.0); multiScaleEnhancementFilter->SetNumberOfSigmaSteps(10); multiScaleEnhancementFilter->SetInput(casterVoxelToInternal->GetOutput()); // Setup rescaler // typedef RescaleIntensityImageFilter RescaleFilterType; RescaleFilterType::Pointer rescaleFilter = RescaleFilterType::New(); rescaleFilter->SetOutputMinimum(0); rescaleFilter->SetOutputMaximum(2000); rescaleFilter-> SetInput(multiScaleEnhancementFilter->GetOutput()); // Cast back from float to short typedef CastImageFilter CastFilterTypeInternalToVoxel; CastFilterTypeInternalToVoxel::Pointer casterInternalToVoxel = CastFilterTypeInternalToVoxel::New(); casterInternalToVoxel->SetInput(rescaleFilter->GetOutput()); // Run pipeline // casterInternalToVoxel->Update(); // Extract results // VoxelImageType *outputImage = casterInternalToVoxel->GetOutput(); InternalImageType::RegionType outputRegion = outputImage->GetBufferedRegion(); typedef itk::ImageRegionConstIterator IteratorType; IteratorType it(outputImage, outputRegion); VoxelPixelType *ptr = outputVoxels; it.GoToBegin(); while(!it.IsAtEnd()) { *ptr = it.Get(); ++it; ++ptr; } } catch (const std::exception& ex) { std::string s = ex.what(); bool error = true; // put breakpoint here to debug } }* The input data is a block of voxels from CT/MRI images. Thank you very much Cheers -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 14 20:25:46 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 14 Jan 2015 20:25:46 -0500 Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421275248945-35113.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> Message-ID: Hi Nissim, It is unclear from your message what you do not understand about the results. More information on the filters can be found in Doxygen [1] and The ITK Software Guide [2]. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1HessianToObjectnessMeasureImageFilter.html [2] http://itk.org/ItkSoftwareGuide.pdf On Wed, Jan 14, 2015 at 5:40 PM, Nissim Hadar wrote: > Hello, > > I am trying to use the /HessianToObjectnessMeasureImageFilter/ to segment > brain tissue. As this code is part of a larger system, I am providing the > image as an array of /shorts/. Other segmentation methods, such as Otsu, > flag the segmentation, so the result is a binary image (e.g. 255 and 0). I > do not understand the results I am getting with the Hessian method. > > My code is as follows: > > *void HessianSegmentation( > // Input data > short *inputVoxels, const int dim, > const double xSpacing, const double ySpacing, const double zSpacing, > > // Output data > short *outputVoxels > ) { > try > { > const unsigned int Dimension = 3; > > typedef double InternalPixelType; > typedef Image InternalImageType; > > typedef short VoxelPixelType; > typedef Image VoxelImageType; > > // Image Importer - converts linear array of pixels in short format to an > Image > // > typedef ImportImageFilter ImportFilterType; > ImportFilterType::Pointer importFilter = ImportFilterType::New(); > > ImportFilterType::IndexType start; > start.Fill(0); > > ImportFilterType::SizeType size; > size[0] = size[1] = size[2] = dim; > > ImportFilterType::RegionType region; > region.SetIndex(start); > region.SetSize (size ); > importFilter->SetRegion(region); > > const SpacePrecisionType origin[Dimension] = {0, 0, 0}; > importFilter->SetOrigin(origin); > > const SpacePrecisionType spacing[Dimension] = {xSpacing, ySpacing, > zSpacing}; > importFilter->SetSpacing(spacing); > > importFilter->SetImportPointer(inputVoxels, dim * dim * dim, false); > > // Caster from short to float (input is shorts, detection needs floats) > typedef CastImageFilter > CastFilterTypeVoxelToInternal; > CastFilterTypeVoxelToInternal::Pointer casterVoxelToInternal = > CastFilterTypeVoxelToInternal::New(); > > casterVoxelToInternal-> SetInput(importFilter->GetOutput()); > > // Set up Hessian filter > // > typedef SymmetricSecondRankTensor HessianPixelType; > typedef Image HessianImageType; > typedef HessianToObjectnessMeasureImageFilter InternalImageType> ObjectnessFilterType; > ObjectnessFilterType::Pointer objectnessFilter = > ObjectnessFilterType::New(); > > objectnessFilter->SetBrightObject(true); > objectnessFilter->SetScaleObjectnessMeasure(false); > objectnessFilter->SetAlpha(0.5); > objectnessFilter->SetBeta (0.5); > objectnessFilter->SetGamma(5.0); > > typedef MultiScaleHessianBasedMeasureImageFilter HessianImageType, InternalImageType> MultiScaleEnhancementFilterType; > MultiScaleEnhancementFilterType::Pointer multiScaleEnhancementFilter = > MultiScaleEnhancementFilterType::New(); > multiScaleEnhancementFilter->SetHessianToMeasureFilter(objectnessFilter); > multiScaleEnhancementFilter->SetSigmaStepMethodToLogarithmic(); > > multiScaleEnhancementFilter->SetSigmaMinimum(0.2); > multiScaleEnhancementFilter->SetSigmaMaximum(2.0); > multiScaleEnhancementFilter->SetNumberOfSigmaSteps(10); > > multiScaleEnhancementFilter->SetInput(casterVoxelToInternal->GetOutput()); > > // Setup rescaler > // > typedef RescaleIntensityImageFilter > RescaleFilterType; > RescaleFilterType::Pointer rescaleFilter = RescaleFilterType::New(); > rescaleFilter->SetOutputMinimum(0); > rescaleFilter->SetOutputMaximum(2000); > > rescaleFilter-> SetInput(multiScaleEnhancementFilter->GetOutput()); > > // Cast back from float to short > typedef CastImageFilter > CastFilterTypeInternalToVoxel; > CastFilterTypeInternalToVoxel::Pointer casterInternalToVoxel = > CastFilterTypeInternalToVoxel::New(); > > casterInternalToVoxel->SetInput(rescaleFilter->GetOutput()); > > // Run pipeline > // > casterInternalToVoxel->Update(); > > // Extract results > // > VoxelImageType *outputImage = casterInternalToVoxel->GetOutput(); > InternalImageType::RegionType outputRegion = > outputImage->GetBufferedRegion(); > > typedef itk::ImageRegionConstIterator IteratorType; > IteratorType it(outputImage, outputRegion); > > VoxelPixelType *ptr = outputVoxels; > > it.GoToBegin(); > while(!it.IsAtEnd()) > { > *ptr = it.Get(); > ++it; > ++ptr; > } > } > catch (const std::exception& ex) > { > std::string s = ex.what(); > bool error = true; // put breakpoint here to debug > } > }* > > The input data is a block of voxels from CT/MRI images. > > Thank you very much > Cheers > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 14 20:30:21 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 14 Jan 2015 20:30:21 -0500 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Francisco, Great to hear about the progress! The itk::BinaryImageToShapeLabelMapFilter requires a binary input, which should have an integer pixel type, like unsigned char or unsigned short. It is important to set the BackgroundValue and ForegroundValue [1] to get this filter to work correctly. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca wrote: > Hi again. > I fixed all the errors and got my library, now ready to be tested. > It contains an encapsulation, on the one hand, of the class > itkBinaryImageToShapeLabelMapFilter in order to get image shape descriptors > of a 3D binary image, and on the other hand, the same for the class > itkScalarImageToTextureFeaturesFilter to get image texture features of a 3D > scalar image. > > I pass as input image to both classes a binary 3D Nifti image (150x150x150) > containing a cylinder where the inside voxels are 255 and the outside voxels > are 0. > > As for the shape issue, it's very strange to me that the call to > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of 0. The > main code is as follows: > > binaryImageToShapeLabelMapFilter->SetInput(_input); > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); > binaryImageToShapeLabelMapFilter->Update(); > > LabelMapType::Pointer labelMap = > binaryImageToShapeLabelMapFilter->GetOutput(); > > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); > > > And, as for the texture features, the result of the filter does not seem to > be very logic: > > Energy = 1 > Entropy = 0 > Correlation = 1 > Local Homogeneity = 0 > Inertia = 0 > Cluster Shade = 0 > Cluster Prominence = 0 > > I've also tested this with a scalar 3D Nifti image and the results are the > same. > > And the question is: What kind of image do I have to pass to the filters so > that the code would return a more logic expected answer? > > Thank you very much in advance. > My best regars. > /Francisco > > 2015-01-10 22:38 GMT+01:00 Matt McCormick : >> >> Hi Francisco, >> >> Nice to hear about the progress! >> >> You will need to link your library to the ITK libraries: >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) >> >> HTH, >> Matt >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca >> wrote: >>> >>> Thanks to your previous answer the problem was solved, but another one >>> has come out. It occurs when linking to create the library. It gives an >>> undefined reference to itk::ExceptionObject::ExceptionObject... as you can >>> see below. >>> What it is strange to me is that before including explicit template >>> instantiation, I created the library without errors, and now that I include >>> that, I get this error. >>> I'll appreciate very much any help. >>> >>> Linking CXX shared library libTFM_Features.dll >>> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >>> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >>> 1ERKSsjS2_S2_]+0x35): undefined reference to >>> `itk::ExceptionObject::ExceptionObj >>> ect(std::string const&, unsigned int, std::string const&, std::string >>> const&)' >>> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >>> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for >>> itk::MemoryAllocationEr >>> ror' >>> >>> C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min >>> gw32/bin/ld.exe: >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba >>> d reloc address 0x40 in section >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' >>> collect2.exe: error: ld returned 1 exit status >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target >>> 'SRC/libTFM_Fe >>> atures.dll' failed >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 >>> CMakeFiles\Makefile2:77: recipe for target >>> 'SRC/CMakeFiles/TFM_Features.dir/all' >>> failed >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 >>> Makefile:74: recipe for target 'all' failed >>> mingw32-make: *** [all] Error 2 >>> >>> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick : >>>> >>>> Hi Francisco, >>>> >>>> In order for the templates to be available in the library, they must >>>> be explicitly instantiated [1]. >>>> >>>> HTH, >>>> Matt >>>> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ >>>> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >>>> wrote: >>>> > Hi. >>>> > I' like to create a library containing, for example, one template >>>> > class with >>>> > a number of methods. >>>> > I've programmed a simple example and the compilation and generation of >>>> > the >>>> > library goes fine. I use the cmake "add_library" command for >>>> > generating the >>>> > library. >>>> > >>>> > The problem arises at the moment of testing the library. I get an >>>> > undefined >>>> > reference for every method in the template class. >>>> > >>>> > I've downloaded a tool to look in the contents (functions) of dynamic >>>> > libraries, and there is no function in the library. If I add another >>>> > class >>>> > (not a template class), then, this tool shows me only the functions in >>>> > this >>>> > latter class. >>>> > >>>> > Has anyone ever come across with this problem? >>>> > >>>> > Thanks a lot in advance. >>>> > Regards >>>> > /Francisco >>>> > >>>> > _____________________________________ >>>> > 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://public.kitware.com/mailman/listinfo/insight-users >>>> > >>> >>> >> > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From richard.beare at gmail.com Wed Jan 14 21:46:03 2015 From: richard.beare at gmail.com (Richard Beare) Date: Thu, 15 Jan 2015 13:46:03 +1100 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: Hi, I've just tested, under linux, using a newly installed ITK 4.7, with review enabled. Turning review on enables watershed etc. No problems - perhaps this is a windows issue? I've never tested mbwss under windows. On Thu, Jan 15, 2015 at 12:02 AM, Bradley Lowekamp wrote: > It would be best to contact the author of the package your trying to build. > > Brad > On Jan 14, 2015, at 3:35 AM, Uras Mutlu wrote: > > Hello, > > Thanks for your answer. I turned on the Review module and many new classes > are added. But I have a problem with a particular one. I'm trying to build > and run this one: https://github.com/richardbeare/mbwss > > But a particular file, "morphutils.h" is giving an error while compiling > and I can't seem to find out why. I would really be appreciated If I can > get help on this one. > > Thank you. > > Uras > > 2015-01-13 15:59 GMT+02:00 Bradley Lowekamp : > >> Hello, >> >> Most of those filters are already in ITK. You may need to turn on the >> Review module in ITK to see them. Most of them have been contributed >> through the Insight Journal: >> http://www.insight-journal.org/search/?search=lehmann >> >> Brad >> >> On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: >> >> Hello, >> >> I'm a new software developer and I'm trying to learn itk-vtk because of >> the projects the company I work for is running. I need help with a small >> issue. >> >> I'm trying to add this "watershed" module to the install directory of itk >> (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I have to >> copy all the files of this git repository to the source folder of itk and >> then build WHOLE itk again? There must be an easy way that I'm missing. >> Please give me some instructions about how to do this. >> >> Module I want to install is: https://github.com/glehmann/watershed >> >> Thank you. >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Thu Jan 15 01:32:43 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Thu, 15 Jan 2015 07:32:43 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Matt, Thanks a lot for your answers. I'll try this afternoon what you suggest regarding the shape filter, but what do you think about my results as for the texture filter? Regards. /Francisco 2015-01-15 2:30 GMT+01:00 Matt McCormick : > Hi Francisco, > > Great to hear about the progress! > > The itk::BinaryImageToShapeLabelMapFilter requires a binary input, > which should have an integer pixel type, like unsigned char or > unsigned short. It is important to set the BackgroundValue and > ForegroundValue [1] to get this filter to work correctly. > > HTH, > Matt > > [1] > http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html > > On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca > wrote: > > Hi again. > > I fixed all the errors and got my library, now ready to be tested. > > It contains an encapsulation, on the one hand, of the class > > itkBinaryImageToShapeLabelMapFilter in order to get image shape > descriptors > > of a 3D binary image, and on the other hand, the same for the class > > itkScalarImageToTextureFeaturesFilter to get image texture features of a > 3D > > scalar image. > > > > I pass as input image to both classes a binary 3D Nifti image > (150x150x150) > > containing a cylinder where the inside voxels are 255 and the outside > voxels > > are 0. > > > > As for the shape issue, it's very strange to me that the call to > > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of 0. > The > > main code is as follows: > > > > binaryImageToShapeLabelMapFilter->SetInput(_input); > > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); > > binaryImageToShapeLabelMapFilter->Update(); > > > > LabelMapType::Pointer labelMap = > > binaryImageToShapeLabelMapFilter->GetOutput(); > > > > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); > > > > > > And, as for the texture features, the result of the filter does not seem > to > > be very logic: > > > > Energy = 1 > > Entropy = 0 > > Correlation = 1 > > Local Homogeneity = 0 > > Inertia = 0 > > Cluster Shade = 0 > > Cluster Prominence = 0 > > > > I've also tested this with a scalar 3D Nifti image and the results are > the > > same. > > > > And the question is: What kind of image do I have to pass to the filters > so > > that the code would return a more logic expected answer? > > > > Thank you very much in advance. > > My best regars. > > /Francisco > > > > 2015-01-10 22:38 GMT+01:00 Matt McCormick : > >> > >> Hi Francisco, > >> > >> Nice to hear about the progress! > >> > >> You will need to link your library to the ITK libraries: > >> > >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) > >> > >> HTH, > >> Matt > >> > >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca > >> wrote: > >>> > >>> Thanks to your previous answer the problem was solved, but another one > >>> has come out. It occurs when linking to create the library. It gives an > >>> undefined reference to itk::ExceptionObject::ExceptionObject... as you > can > >>> see below. > >>> What it is strange to me is that before including explicit template > >>> instantiation, I created the library without errors, and now that I > include > >>> that, I get this error. > >>> I'll appreciate very much any help. > >>> > >>> Linking CXX shared library libTFM_Features.dll > >>> > >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >>> > >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >>> 1ERKSsjS2_S2_]+0x35): undefined reference to > >>> `itk::ExceptionObject::ExceptionObj > >>> ect(std::string const&, unsigned int, std::string const&, std::string > >>> const&)' > >>> > >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >>> > >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for > >>> itk::MemoryAllocationEr > >>> ror' > >>> > >>> > C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min > >>> gw32/bin/ld.exe: > >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba > >>> d reloc address 0x40 in section > >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ > >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' > >>> collect2.exe: error: ld returned 1 exit status > >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target > >>> 'SRC/libTFM_Fe > >>> atures.dll' failed > >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 > >>> CMakeFiles\Makefile2:77: recipe for target > >>> 'SRC/CMakeFiles/TFM_Features.dir/all' > >>> failed > >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 > >>> Makefile:74: recipe for target 'all' failed > >>> mingw32-make: *** [all] Error 2 > >>> > >>> > >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick >: > >>>> > >>>> Hi Francisco, > >>>> > >>>> In order for the templates to be available in the library, they must > >>>> be explicitly instantiated [1]. > >>>> > >>>> HTH, > >>>> Matt > >>>> > >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ > >>>> > >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca > >>>> wrote: > >>>> > Hi. > >>>> > I' like to create a library containing, for example, one template > >>>> > class with > >>>> > a number of methods. > >>>> > I've programmed a simple example and the compilation and generation > of > >>>> > the > >>>> > library goes fine. I use the cmake "add_library" command for > >>>> > generating the > >>>> > library. > >>>> > > >>>> > The problem arises at the moment of testing the library. I get an > >>>> > undefined > >>>> > reference for every method in the template class. > >>>> > > >>>> > I've downloaded a tool to look in the contents (functions) of > dynamic > >>>> > libraries, and there is no function in the library. If I add another > >>>> > class > >>>> > (not a template class), then, this tool shows me only the functions > in > >>>> > this > >>>> > latter class. > >>>> > > >>>> > Has anyone ever come across with this problem? > >>>> > > >>>> > Thanks a lot in advance. > >>>> > Regards > >>>> > /Francisco > >>>> > > >>>> > _____________________________________ > >>>> > 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://public.kitware.com/mailman/listinfo/insight-users > >>>> > > >>> > >>> > >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Thu Jan 15 02:28:41 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Thu, 15 Jan 2015 00:28:41 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421275248945-35113.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> Message-ID: <1421306921950-35117.post@n7.nabble.com> The array of shorts I supply is a block of raw DICOM data (with, or without windowing). The result is an array of similar size, containing a lot of zeros, but the non-zero values seem to be quite random. Does each short represent a filtered voxel, or do the values have a specific meaning, like they do in the Segmentation algorithms? When I view the result as an image it seems very noisy, even though there /is/ some resemblance to the blood vessels. I don't know if my understanding is wrong, my parameters are way off, or there is a bug in the method.... The images I am using are MRI scans of brain aneurysms and the like. Thanks -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35117.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From david.froger.ml at mailoo.org Thu Jan 15 03:07:47 2015 From: david.froger.ml at mailoo.org (David Froger) Date: Thu, 15 Jan 2015 09:07:47 +0100 Subject: [ITK] PipelineMonitorImageFilter In-Reply-To: References: <20150114082737.30300.40763@otis.rocq.inria.fr> Message-ID: <20150115080747.30300.26289@otis.rocq.inria.fr> Hello Bradley, Thanks, that's now much clearer for me! Quoting Bradley Lowekamp (2015-01-14 14:11:07) > Hello David, > > Thanks for looking into this. > > The PipelineMonitorImageFilter always runs InPlace, that is it is derived from the InPlaceImageFilter[1] and InPlace ivar is always true. Running a filter InPlace is a great way to reduce memory usage, and frequently improve performance of a filter. > > What running InPlace means for a filter is that the buffer of the input image is reused on the output image, and removed from the input image. So your ImageIterator points to an image which was the input of the PipelineMonitorFilter, and not it has to image buffer. > > Brad > > [1] http://www.itk.org/Doxygen/html/classitk_1_1InPlaceImageFilter.html > > On Jan 14, 2015, at 3:27 AM, David Froger wrote: > > > Hi, > > > > I'm trying to use PipelineMonitorImageFilter to monitor the regions of an > > image written to a file with streaming. > > > > I've modified the file itkHDF5ImageIOStreamingReadWriteTest.cxx like this > > (attached): > > > > diff --git a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > > b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > > index b1f26b8..ab9072e 100644 > > --- a/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > > +++ b/Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx > > @@ -54,8 +54,13 @@ int HDF5ReadWriteTest2(const char *fileName) > > } > > typedef typename itk::ImageFileWriter WriterType; > > typename WriterType::Pointer writer = WriterType::New(); > > + > > + typedef typename itk::PipelineMonitorImageFilter MonitorFilter; > > + typename MonitorFilter::Pointer writerMonitor = MonitorFilter::New(); > > + writerMonitor->SetInput(im); > > + > > writer->SetFileName(fileName); > > - writer->SetInput(im); > > + writer->SetInput(writerMonitor->GetOutput()); > > writer->SetNumberOfStreamDivisions(5); > > try > > { > > @@ -76,7 +81,6 @@ int HDF5ReadWriteTest2(const char *fileName) > > reader->SetFileName(fileName); > > reader->SetUseStreaming(true); > > > > - typedef typename itk::PipelineMonitorImageFilter MonitorFilter; > > typename MonitorFilter::Pointer monitor = MonitorFilter::New(); > > monitor->SetInput(reader->GetOutput()); > > > > This change causes an "Exception: Numerical" later (line 106), when trying to > > use "it" to iterate on "im". > > > > I don't understand what's happening and what I did wrong. Is "im" deallocated by > > "writerMonitor"? > > > > Thanks, > > David > > _______________________________________________ > > Community mailing list > > Community at itk.org > > http://public.kitware.com/mailman/listinfo/community > From urasmutlu at gmail.com Thu Jan 15 05:32:13 2015 From: urasmutlu at gmail.com (Uras Mutlu) Date: Thu, 15 Jan 2015 12:32:13 +0200 Subject: [ITK] Installing New Modules (Source and Header Files) to ITK dir In-Reply-To: References: Message-ID: Hello Richard, Thanks for your answer and interest. Most likely there is a problem with the VS compiler that I'm using. I will try again with a different compiler in windows and also I will test it in Linux and update if there are any specific problems. Thanks again for your interest. Uras 2015-01-15 4:46 GMT+02:00 Richard Beare : > Hi, > I've just tested, under linux, using a newly installed ITK 4.7, with > review enabled. Turning review on enables watershed etc. No problems - > perhaps this is a windows issue? I've never tested mbwss under windows. > > > On Thu, Jan 15, 2015 at 12:02 AM, Bradley Lowekamp > wrote: > >> It would be best to contact the author of the package your trying to >> build. >> >> Brad >> On Jan 14, 2015, at 3:35 AM, Uras Mutlu wrote: >> >> Hello, >> >> Thanks for your answer. I turned on the Review module and many new >> classes are added. But I have a problem with a particular one. I'm trying >> to build and run this one: https://github.com/richardbeare/mbwss >> >> But a particular file, "morphutils.h" is giving an error while compiling >> and I can't seem to find out why. I would really be appreciated If I can >> get help on this one. >> >> Thank you. >> >> Uras >> >> 2015-01-13 15:59 GMT+02:00 Bradley Lowekamp : >> >>> Hello, >>> >>> Most of those filters are already in ITK. You may need to turn on the >>> Review module in ITK to see them. Most of them have been contributed >>> through the Insight Journal: >>> http://www.insight-journal.org/search/?search=lehmann >>> >>> Brad >>> >>> On Jan 13, 2015, at 5:17 AM, Uras Mutlu wrote: >>> >>> Hello, >>> >>> I'm a new software developer and I'm trying to learn itk-vtk because of >>> the projects the company I work for is running. I need help with a small >>> issue. >>> >>> I'm trying to add this "watershed" module to the install directory of >>> itk (.../itk/x64/4.7.0/....) Can you help me about how to do this? Do I >>> have to copy all the files of this git repository to the source folder of >>> itk and then build WHOLE itk again? There must be an easy way that I'm >>> missing. Please give me some instructions about how to do this. >>> >>> Module I want to install is: https://github.com/glehmann/watershed >>> >>> Thank you. >>> _______________________________________________ >>> Community mailing list >>> Community at itk.org >>> http://public.kitware.com/mailman/listinfo/community >>> >>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Thu Jan 15 10:07:58 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Thu, 15 Jan 2015 10:07:58 -0500 Subject: [ITK] [ITK-users] SimpleITK | read a 3D image from a non DICOM file and write it as a series of DICOM slices In-Reply-To: References: Message-ID: <9B24E4DF-447C-42CA-A8EC-609DABA2B630@mail.nih.gov> Hello, I have just added an ImageSeriesWriter to SimpleITK: http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ImageSeriesWriter.html The hooks for getting the meta-data dictionary in the dicom series aren't quite there yet. But its a step closer. It's actually rather confusing how the tags are handled in the example you linked too, and I'm not sure what exactly needs to be done to create a "valid" dicom series. Brad On Dec 31, 2014, at 10:46 AM, Bradley Lowekamp wrote: > Hello, > > Sorry for the slow reply. Earlier you linked to this nice example for reference: > http://www.itk.org/Doxygen/html/Examples_2IO_2ImageReadDicomSeriesWrite_8cxx-example.html > > With SimpleITK I have done the following when I needed to write a series in Python: > > for i in range(img.GetSize()[2]): > sitk.WriteImage(img[:,:,i],"test_{0:04}.tif".format(i)) > > > However it is not quite this simple for a DICOM series. The metadata tags need to be correct too. SimpleITK is not designed to be a full fledge interface to DICOM files. Other tools may be better for that. But this seems like a reasonable thing to do but it's not currently readily available in the SimpleITK interface. Perhaps after some discussion on the best way to do it it and be added. > > > There are 3 main components to this example: > > 1) MetaDataDictionary > > In SimpleITK the MetaDataDictionary interface is only part of the Image class. Currently it provides a read only interface, with the GetMetaDataKeys(), and GetMetaData(key) methods[1]. This get method only returns the type of data in the dictionary converted to a string. > > The required method would be Image::SetMetaData(key,value). The issue would be what types of value need to be supported. For this example only std::string is needed, perhaps others should be overloaded? > > 2) NumericSeriesFileNameGenerator > > This class only produces a "list" of file names. I think that many of the languages may have a more convenient way to do this. For example in Python: > > [ "test_{0:04}.png".format(i) for i in range(img.GetSize()[2]) ] > > So I don't think this is so important. > > 3) SeriesWriter > > What we just used above is different then the SeriesWriter, as special metadata is passed from the ImageSeriesWriter to the ImageIO [2]. Here is the JIRA issue for this task [3]. > > > So after these get done something like the following would do what you ask: > > import SimpleITK as sitk > > img = stik.ReadImage(argv[1]) > img.SetMetaData("008|0060", "MR") // Modality > img.SetMetaData("008|0008", "DERIVED\\SECONDARY") // Image Type > img.SetMetaData("008|0064", "DV") // Conversion Type > sitk.WriteImage(img, [ "test_{0:04}.dcm".format(i) for i in range(img.GetSize()[2]) ]) > > Does that look like what you are looking for? > > Brad > > [1] http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1Image.html#a3d6cb12a211352ee38da5405b9c75928 > [2] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/ImageBase/include/itkImageSeriesWriter.hxx#L327-L368 > [3] https://issues.itk.org/jira/browse/SIMPLEITK-122 > > On Dec 29, 2014, at 2:48 PM, Matias Montroull wrote: > >> Hi, >> >> Is there an example for SimpleITK to read a 3D image from a non Dicom file such as mhd and then write it as a series of DICOM Slices? >> >> I can do this with C++ but I haven't been able to figure out how to do it using simpleITK. >> >> Thanks, >> >> Matias. >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Thu Jan 15 10:41:24 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 15 Jan 2015 10:41:24 -0500 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Francisco, There is definitely something wrong with the textures features. It is not possible to know what is going on without more details, though. Matt On Thu, Jan 15, 2015 at 1:32 AM, Francisco Lopez de la Franca wrote: > Hi Matt, > Thanks a lot for your answers. I'll try this afternoon what you suggest > regarding the shape filter, but what do you think about my results as for > the texture filter? > Regards. > /Francisco > > 2015-01-15 2:30 GMT+01:00 Matt McCormick : >> >> Hi Francisco, >> >> Great to hear about the progress! >> >> The itk::BinaryImageToShapeLabelMapFilter requires a binary input, >> which should have an integer pixel type, like unsigned char or >> unsigned short. It is important to set the BackgroundValue and >> ForegroundValue [1] to get this filter to work correctly. >> >> HTH, >> Matt >> >> [1] >> http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html >> >> On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca >> wrote: >> > Hi again. >> > I fixed all the errors and got my library, now ready to be tested. >> > It contains an encapsulation, on the one hand, of the class >> > itkBinaryImageToShapeLabelMapFilter in order to get image shape >> > descriptors >> > of a 3D binary image, and on the other hand, the same for the class >> > itkScalarImageToTextureFeaturesFilter to get image texture features of a >> > 3D >> > scalar image. >> > >> > I pass as input image to both classes a binary 3D Nifti image >> > (150x150x150) >> > containing a cylinder where the inside voxels are 255 and the outside >> > voxels >> > are 0. >> > >> > As for the shape issue, it's very strange to me that the call to >> > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of 0. >> > The >> > main code is as follows: >> > >> > binaryImageToShapeLabelMapFilter->SetInput(_input); >> > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); >> > binaryImageToShapeLabelMapFilter->Update(); >> > >> > LabelMapType::Pointer labelMap = >> > binaryImageToShapeLabelMapFilter->GetOutput(); >> > >> > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); >> > >> > >> > And, as for the texture features, the result of the filter does not seem >> > to >> > be very logic: >> > >> > Energy = 1 >> > Entropy = 0 >> > Correlation = 1 >> > Local Homogeneity = 0 >> > Inertia = 0 >> > Cluster Shade = 0 >> > Cluster Prominence = 0 >> > >> > I've also tested this with a scalar 3D Nifti image and the results are >> > the >> > same. >> > >> > And the question is: What kind of image do I have to pass to the filters >> > so >> > that the code would return a more logic expected answer? >> > >> > Thank you very much in advance. >> > My best regars. >> > /Francisco >> > >> > 2015-01-10 22:38 GMT+01:00 Matt McCormick : >> >> >> >> Hi Francisco, >> >> >> >> Nice to hear about the progress! >> >> >> >> You will need to link your library to the ITK libraries: >> >> >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) >> >> >> >> HTH, >> >> Matt >> >> >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca >> >> wrote: >> >>> >> >>> Thanks to your previous answer the problem was solved, but another one >> >>> has come out. It occurs when linking to create the library. It gives >> >>> an >> >>> undefined reference to itk::ExceptionObject::ExceptionObject... as you >> >>> can >> >>> see below. >> >>> What it is strange to me is that before including explicit template >> >>> instantiation, I created the library without errors, and now that I >> >>> include >> >>> that, I get this error. >> >>> I'll appreciate very much any help. >> >>> >> >>> Linking CXX shared library libTFM_Features.dll >> >>> >> >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >>> >> >>> >> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> >>> 1ERKSsjS2_S2_]+0x35): undefined reference to >> >>> `itk::ExceptionObject::ExceptionObj >> >>> ect(std::string const&, unsigned int, std::string const&, std::string >> >>> const&)' >> >>> >> >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >>> >> >>> >> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for >> >>> itk::MemoryAllocationEr >> >>> ror' >> >>> >> >>> >> >>> C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min >> >>> gw32/bin/ld.exe: >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba >> >>> d reloc address 0x40 in section >> >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ >> >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' >> >>> collect2.exe: error: ld returned 1 exit status >> >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target >> >>> 'SRC/libTFM_Fe >> >>> atures.dll' failed >> >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 >> >>> CMakeFiles\Makefile2:77: recipe for target >> >>> 'SRC/CMakeFiles/TFM_Features.dir/all' >> >>> failed >> >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 >> >>> Makefile:74: recipe for target 'all' failed >> >>> mingw32-make: *** [all] Error 2 >> >>> >> >>> >> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick >> >>> : >> >>>> >> >>>> Hi Francisco, >> >>>> >> >>>> In order for the templates to be available in the library, they must >> >>>> be explicitly instantiated [1]. >> >>>> >> >>>> HTH, >> >>>> Matt >> >>>> >> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ >> >>>> >> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >> >>>> wrote: >> >>>> > Hi. >> >>>> > I' like to create a library containing, for example, one template >> >>>> > class with >> >>>> > a number of methods. >> >>>> > I've programmed a simple example and the compilation and generation >> >>>> > of >> >>>> > the >> >>>> > library goes fine. I use the cmake "add_library" command for >> >>>> > generating the >> >>>> > library. >> >>>> > >> >>>> > The problem arises at the moment of testing the library. I get an >> >>>> > undefined >> >>>> > reference for every method in the template class. >> >>>> > >> >>>> > I've downloaded a tool to look in the contents (functions) of >> >>>> > dynamic >> >>>> > libraries, and there is no function in the library. If I add >> >>>> > another >> >>>> > class >> >>>> > (not a template class), then, this tool shows me only the functions >> >>>> > in >> >>>> > this >> >>>> > latter class. >> >>>> > >> >>>> > Has anyone ever come across with this problem? >> >>>> > >> >>>> > Thanks a lot in advance. >> >>>> > Regards >> >>>> > /Francisco >> >>>> > >> >>>> > _____________________________________ >> >>>> > 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://public.kitware.com/mailman/listinfo/insight-users >> >>>> > >> >>> >> >>> >> >> >> > > > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Thu Jan 15 10:44:41 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 15 Jan 2015 10:44:41 -0500 Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421306921950-35117.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> <1421306921950-35117.post@n7.nabble.com> Message-ID: Hi Nissim, I would suggest reading in the DICOM data with an ITK reader as an ITK Image and writing out the output in an ITK supported file format, at least until the source of the problem is determined. There are many errors that can occurs when passing around blocks of bytes. HTH, Matt On Thu, Jan 15, 2015 at 2:28 AM, Nissim Hadar wrote: > The array of shorts I supply is a block of raw DICOM data (with, or without > windowing). The result is an array of similar size, containing a lot of > zeros, but the non-zero values seem to be quite random. Does each short > represent a filtered voxel, or do the values have a specific meaning, like > they do in the Segmentation algorithms? When I view the result as an image > it seems very noisy, even though there /is/ some resemblance to the blood > vessels. > I don't know if my understanding is wrong, my parameters are way off, or > there is a bug in the method.... > The images I am using are MRI scans of brain aneurysms and the like. > > Thanks > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35117.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From franciscolopezdelafranca at gmail.com Thu Jan 15 12:26:30 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Thu, 15 Jan 2015 18:26:30 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Matt again. You were fully right about setting the background/foreground values for the filter. I 2015-01-15 16:41 GMT+01:00 Matt McCormick : > Hi Francisco, > > There is definitely something wrong with the textures features. It is > not possible to know what is going on without more details, though. > > Matt > > On Thu, Jan 15, 2015 at 1:32 AM, Francisco Lopez de la Franca > wrote: > > Hi Matt, > > Thanks a lot for your answers. I'll try this afternoon what you suggest > > regarding the shape filter, but what do you think about my results as for > > the texture filter? > > Regards. > > /Francisco > > > > 2015-01-15 2:30 GMT+01:00 Matt McCormick : > >> > >> Hi Francisco, > >> > >> Great to hear about the progress! > >> > >> The itk::BinaryImageToShapeLabelMapFilter requires a binary input, > >> which should have an integer pixel type, like unsigned char or > >> unsigned short. It is important to set the BackgroundValue and > >> ForegroundValue [1] to get this filter to work correctly. > >> > >> HTH, > >> Matt > >> > >> [1] > >> > http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html > >> > >> On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca > >> wrote: > >> > Hi again. > >> > I fixed all the errors and got my library, now ready to be tested. > >> > It contains an encapsulation, on the one hand, of the class > >> > itkBinaryImageToShapeLabelMapFilter in order to get image shape > >> > descriptors > >> > of a 3D binary image, and on the other hand, the same for the class > >> > itkScalarImageToTextureFeaturesFilter to get image texture features > of a > >> > 3D > >> > scalar image. > >> > > >> > I pass as input image to both classes a binary 3D Nifti image > >> > (150x150x150) > >> > containing a cylinder where the inside voxels are 255 and the outside > >> > voxels > >> > are 0. > >> > > >> > As for the shape issue, it's very strange to me that the call to > >> > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of > 0. > >> > The > >> > main code is as follows: > >> > > >> > binaryImageToShapeLabelMapFilter->SetInput(_input); > >> > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); > >> > binaryImageToShapeLabelMapFilter->Update(); > >> > > >> > LabelMapType::Pointer labelMap = > >> > binaryImageToShapeLabelMapFilter->GetOutput(); > >> > > >> > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); > >> > > >> > > >> > And, as for the texture features, the result of the filter does not > seem > >> > to > >> > be very logic: > >> > > >> > Energy = 1 > >> > Entropy = 0 > >> > Correlation = 1 > >> > Local Homogeneity = 0 > >> > Inertia = 0 > >> > Cluster Shade = 0 > >> > Cluster Prominence = 0 > >> > > >> > I've also tested this with a scalar 3D Nifti image and the results are > >> > the > >> > same. > >> > > >> > And the question is: What kind of image do I have to pass to the > filters > >> > so > >> > that the code would return a more logic expected answer? > >> > > >> > Thank you very much in advance. > >> > My best regars. > >> > /Francisco > >> > > >> > 2015-01-10 22:38 GMT+01:00 Matt McCormick >: > >> >> > >> >> Hi Francisco, > >> >> > >> >> Nice to hear about the progress! > >> >> > >> >> You will need to link your library to the ITK libraries: > >> >> > >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) > >> >> > >> >> HTH, > >> >> Matt > >> >> > >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca > >> >> wrote: > >> >>> > >> >>> Thanks to your previous answer the problem was solved, but another > one > >> >>> has come out. It occurs when linking to create the library. It gives > >> >>> an > >> >>> undefined reference to itk::ExceptionObject::ExceptionObject... as > you > >> >>> can > >> >>> see below. > >> >>> What it is strange to me is that before including explicit template > >> >>> instantiation, I created the library without errors, and now that I > >> >>> include > >> >>> that, I get this error. > >> >>> I'll appreciate very much any help. > >> >>> > >> >>> Linking CXX shared library libTFM_Features.dll > >> >>> > >> >>> > >> >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >> >>> > >> >>> > >> >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >> >>> 1ERKSsjS2_S2_]+0x35): undefined reference to > >> >>> `itk::ExceptionObject::ExceptionObj > >> >>> ect(std::string const&, unsigned int, std::string const&, > std::string > >> >>> const&)' > >> >>> > >> >>> > >> >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >> >>> > >> >>> > >> >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >> >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for > >> >>> itk::MemoryAllocationEr > >> >>> ror' > >> >>> > >> >>> > >> >>> > C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min > >> >>> gw32/bin/ld.exe: > >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba > >> >>> d reloc address 0x40 in section > >> >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ > >> >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' > >> >>> collect2.exe: error: ld returned 1 exit status > >> >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target > >> >>> 'SRC/libTFM_Fe > >> >>> atures.dll' failed > >> >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 > >> >>> CMakeFiles\Makefile2:77: recipe for target > >> >>> 'SRC/CMakeFiles/TFM_Features.dir/all' > >> >>> failed > >> >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 > >> >>> Makefile:74: recipe for target 'all' failed > >> >>> mingw32-make: *** [all] Error 2 > >> >>> > >> >>> > >> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick > >> >>> : > >> >>>> > >> >>>> Hi Francisco, > >> >>>> > >> >>>> In order for the templates to be available in the library, they > must > >> >>>> be explicitly instantiated [1]. > >> >>>> > >> >>>> HTH, > >> >>>> Matt > >> >>>> > >> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ > >> >>>> > >> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca > >> >>>> wrote: > >> >>>> > Hi. > >> >>>> > I' like to create a library containing, for example, one template > >> >>>> > class with > >> >>>> > a number of methods. > >> >>>> > I've programmed a simple example and the compilation and > generation > >> >>>> > of > >> >>>> > the > >> >>>> > library goes fine. I use the cmake "add_library" command for > >> >>>> > generating the > >> >>>> > library. > >> >>>> > > >> >>>> > The problem arises at the moment of testing the library. I get an > >> >>>> > undefined > >> >>>> > reference for every method in the template class. > >> >>>> > > >> >>>> > I've downloaded a tool to look in the contents (functions) of > >> >>>> > dynamic > >> >>>> > libraries, and there is no function in the library. If I add > >> >>>> > another > >> >>>> > class > >> >>>> > (not a template class), then, this tool shows me only the > functions > >> >>>> > in > >> >>>> > this > >> >>>> > latter class. > >> >>>> > > >> >>>> > Has anyone ever come across with this problem? > >> >>>> > > >> >>>> > Thanks a lot in advance. > >> >>>> > Regards > >> >>>> > /Francisco > >> >>>> > > >> >>>> > _____________________________________ > >> >>>> > 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://public.kitware.com/mailman/listinfo/insight-users > >> >>>> > > >> >>> > >> >>> > >> >> > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From franciscolopezdelafranca at gmail.com Thu Jan 15 12:34:22 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Thu, 15 Jan 2015 18:34:22 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Sorry, I might press the wrong key. Hi Matt again. You were fully right about setting the background/foreground values for the filter. I wasn't using them because I followed the examples and there was no reference to them. Now my shape related functions are working. As for the textures, I attach my code so that anyone can see if i am doing something wrong: typedef itk::Statistics::ScalarImageToTextureFeaturesFilter TextureFilterType; typedef typename TextureFilterType::Pointer TextureFilterPtr; typedef typename TextureFilterType::FeatureValueVector FeatureValueVectorType; TextureFilterPtr textureFilter = TextureFilterType::New(); textureFilter->SetInput(_input); textureFilter->Update(); FeatureValueVectorType* output = textureFilter->GetFeatureMeans(); cout << "Energy = " << (*output)[0]) << endl; cout << "Entropy " << (*output)[1]); cout << "LocalHomogeneity = " << (*output)[3]) << endl; cout << "Inertia = " << (*output)[4]) << endl; cout << "ClusterShade " << (*output)[5]) << endl; cout << "ClusterProminence = " << (*output)[6]) << endl; Sincereously, I thank you a lot your help. Regards. /Francisco 2015-01-15 18:26 GMT+01:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi Matt again. > You were fully right about setting the background/foreground values for > the filter. I > > 2015-01-15 16:41 GMT+01:00 Matt McCormick : > >> Hi Francisco, >> >> There is definitely something wrong with the textures features. It is >> not possible to know what is going on without more details, though. >> >> Matt >> >> On Thu, Jan 15, 2015 at 1:32 AM, Francisco Lopez de la Franca >> wrote: >> > Hi Matt, >> > Thanks a lot for your answers. I'll try this afternoon what you suggest >> > regarding the shape filter, but what do you think about my results as >> for >> > the texture filter? >> > Regards. >> > /Francisco >> > >> > 2015-01-15 2:30 GMT+01:00 Matt McCormick : >> >> >> >> Hi Francisco, >> >> >> >> Great to hear about the progress! >> >> >> >> The itk::BinaryImageToShapeLabelMapFilter requires a binary input, >> >> which should have an integer pixel type, like unsigned char or >> >> unsigned short. It is important to set the BackgroundValue and >> >> ForegroundValue [1] to get this filter to work correctly. >> >> >> >> HTH, >> >> Matt >> >> >> >> [1] >> >> >> http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html >> >> >> >> On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca >> >> wrote: >> >> > Hi again. >> >> > I fixed all the errors and got my library, now ready to be tested. >> >> > It contains an encapsulation, on the one hand, of the class >> >> > itkBinaryImageToShapeLabelMapFilter in order to get image shape >> >> > descriptors >> >> > of a 3D binary image, and on the other hand, the same for the class >> >> > itkScalarImageToTextureFeaturesFilter to get image texture features >> of a >> >> > 3D >> >> > scalar image. >> >> > >> >> > I pass as input image to both classes a binary 3D Nifti image >> >> > (150x150x150) >> >> > containing a cylinder where the inside voxels are 255 and the outside >> >> > voxels >> >> > are 0. >> >> > >> >> > As for the shape issue, it's very strange to me that the call to >> >> > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of >> 0. >> >> > The >> >> > main code is as follows: >> >> > >> >> > binaryImageToShapeLabelMapFilter->SetInput(_input); >> >> > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); >> >> > binaryImageToShapeLabelMapFilter->Update(); >> >> > >> >> > LabelMapType::Pointer labelMap = >> >> > binaryImageToShapeLabelMapFilter->GetOutput(); >> >> > >> >> > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); >> >> > >> >> > >> >> > And, as for the texture features, the result of the filter does not >> seem >> >> > to >> >> > be very logic: >> >> > >> >> > Energy = 1 >> >> > Entropy = 0 >> >> > Correlation = 1 >> >> > Local Homogeneity = 0 >> >> > Inertia = 0 >> >> > Cluster Shade = 0 >> >> > Cluster Prominence = 0 >> >> > >> >> > I've also tested this with a scalar 3D Nifti image and the results >> are >> >> > the >> >> > same. >> >> > >> >> > And the question is: What kind of image do I have to pass to the >> filters >> >> > so >> >> > that the code would return a more logic expected answer? >> >> > >> >> > Thank you very much in advance. >> >> > My best regars. >> >> > /Francisco >> >> > >> >> > 2015-01-10 22:38 GMT+01:00 Matt McCormick < >> matt.mccormick at kitware.com>: >> >> >> >> >> >> Hi Francisco, >> >> >> >> >> >> Nice to hear about the progress! >> >> >> >> >> >> You will need to link your library to the ITK libraries: >> >> >> >> >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) >> >> >> >> >> >> HTH, >> >> >> Matt >> >> >> >> >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca >> >> >> wrote: >> >> >>> >> >> >>> Thanks to your previous answer the problem was solved, but another >> one >> >> >>> has come out. It occurs when linking to create the library. It >> gives >> >> >>> an >> >> >>> undefined reference to itk::ExceptionObject::ExceptionObject... as >> you >> >> >>> can >> >> >>> see below. >> >> >>> What it is strange to me is that before including explicit template >> >> >>> instantiation, I created the library without errors, and now that I >> >> >>> include >> >> >>> that, I get this error. >> >> >>> I'll appreciate very much any help. >> >> >>> >> >> >>> Linking CXX shared library libTFM_Features.dll >> >> >>> >> >> >>> >> >> >>> >> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >> >>> >> >> >>> >> >> >>> >> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> >> >>> 1ERKSsjS2_S2_]+0x35): undefined reference to >> >> >>> `itk::ExceptionObject::ExceptionObj >> >> >>> ect(std::string const&, unsigned int, std::string const&, >> std::string >> >> >>> const&)' >> >> >>> >> >> >>> >> >> >>> >> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >> >> >>> >> >> >>> >> >> >>> >> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >> >> >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for >> >> >>> itk::MemoryAllocationEr >> >> >>> ror' >> >> >>> >> >> >>> >> >> >>> >> C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min >> >> >>> gw32/bin/ld.exe: >> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba >> >> >>> d reloc address 0x40 in section >> >> >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ >> >> >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' >> >> >>> collect2.exe: error: ld returned 1 exit status >> >> >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target >> >> >>> 'SRC/libTFM_Fe >> >> >>> atures.dll' failed >> >> >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 >> >> >>> CMakeFiles\Makefile2:77: recipe for target >> >> >>> 'SRC/CMakeFiles/TFM_Features.dir/all' >> >> >>> failed >> >> >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 >> >> >>> Makefile:74: recipe for target 'all' failed >> >> >>> mingw32-make: *** [all] Error 2 >> >> >>> >> >> >>> >> >> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick >> >> >>> : >> >> >>>> >> >> >>>> Hi Francisco, >> >> >>>> >> >> >>>> In order for the templates to be available in the library, they >> must >> >> >>>> be explicitly instantiated [1]. >> >> >>>> >> >> >>>> HTH, >> >> >>>> Matt >> >> >>>> >> >> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ >> >> >>>> >> >> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >> >> >>>> wrote: >> >> >>>> > Hi. >> >> >>>> > I' like to create a library containing, for example, one >> template >> >> >>>> > class with >> >> >>>> > a number of methods. >> >> >>>> > I've programmed a simple example and the compilation and >> generation >> >> >>>> > of >> >> >>>> > the >> >> >>>> > library goes fine. I use the cmake "add_library" command for >> >> >>>> > generating the >> >> >>>> > library. >> >> >>>> > >> >> >>>> > The problem arises at the moment of testing the library. I get >> an >> >> >>>> > undefined >> >> >>>> > reference for every method in the template class. >> >> >>>> > >> >> >>>> > I've downloaded a tool to look in the contents (functions) of >> >> >>>> > dynamic >> >> >>>> > libraries, and there is no function in the library. If I add >> >> >>>> > another >> >> >>>> > class >> >> >>>> > (not a template class), then, this tool shows me only the >> functions >> >> >>>> > in >> >> >>>> > this >> >> >>>> > latter class. >> >> >>>> > >> >> >>>> > Has anyone ever come across with this problem? >> >> >>>> > >> >> >>>> > Thanks a lot in advance. >> >> >>>> > Regards >> >> >>>> > /Francisco >> >> >>>> > >> >> >>>> > _____________________________________ >> >> >>>> > 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://public.kitware.com/mailman/listinfo/insight-users >> >> >>>> > >> >> >>> >> >> >>> >> >> >> >> >> > >> > >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Thu Jan 15 13:01:49 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 15 Jan 2015 13:01:49 -0500 Subject: [ITK] [ITK-users] SimpleITK | read a 3D image from a non DICOM file and write it as a series of DICOM slices In-Reply-To: <9B24E4DF-447C-42CA-A8EC-609DABA2B630@mail.nih.gov> References: <9B24E4DF-447C-42CA-A8EC-609DABA2B630@mail.nih.gov> Message-ID: Hi, Generating a valid DICOM series can be a pretty complex task. New UID's need to be generated, for example. Some more information can be found here [1]. HTH, Matt [1] http://gdcm.sourceforge.net/wiki/index.php/Writing_DICOM On Thu, Jan 15, 2015 at 10:07 AM, Bradley Lowekamp wrote: > Hello, > > I have just added an ImageSeriesWriter to SimpleITK: > > http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ImageSeriesWriter.html > > The hooks for getting the meta-data dictionary in the dicom series aren't > quite there yet. But its a step closer. It's actually rather confusing how > the tags are handled in the example you linked too, and I'm not sure what > exactly needs to be done to create a "valid" dicom series. > > Brad > > On Dec 31, 2014, at 10:46 AM, Bradley Lowekamp > wrote: > > Hello, > > Sorry for the slow reply. Earlier you linked to this nice example for > reference: > http://www.itk.org/Doxygen/html/Examples_2IO_2ImageReadDicomSeriesWrite_8cxx-example.html > > With SimpleITK I have done the following when I needed to write a series in > Python: > > for i in range(img.GetSize()[2]): > sitk.WriteImage(img[:,:,i],"test_{0:04}.tif".format(i)) > > > However it is not quite this simple for a DICOM series. The metadata tags > need to be correct too. SimpleITK is not designed to be a full fledge > interface to DICOM files. Other tools may be better for that. But this seems > like a reasonable thing to do but it's not currently readily available in > the SimpleITK interface. Perhaps after some discussion on the best way to do > it it and be added. > > > There are 3 main components to this example: > > 1) MetaDataDictionary > > In SimpleITK the MetaDataDictionary interface is only part of the Image > class. Currently it provides a read only interface, with the > GetMetaDataKeys(), and GetMetaData(key) methods[1]. This get method only > returns the type of data in the dictionary converted to a string. > > The required method would be Image::SetMetaData(key,value). The issue would > be what types of value need to be supported. For this example only > std::string is needed, perhaps others should be overloaded? > > 2) NumericSeriesFileNameGenerator > > This class only produces a "list" of file names. I think that many of the > languages may have a more convenient way to do this. For example in Python: > > [ "test_{0:04}.png".format(i) for i in range(img.GetSize()[2]) ] > > So I don't think this is so important. > > 3) SeriesWriter > > What we just used above is different then the SeriesWriter, as special > metadata is passed from the ImageSeriesWriter to the ImageIO [2]. Here is > the JIRA issue for this task [3]. > > > So after these get done something like the following would do what you ask: > > import SimpleITK as sitk > > img = stik.ReadImage(argv[1]) > img.SetMetaData("008|0060", "MR") // Modality > img.SetMetaData("008|0008", "DERIVED\\SECONDARY") // Image Type > img.SetMetaData("008|0064", "DV") // Conversion Type > sitk.WriteImage(img, [ "test_{0:04}.dcm".format(i) for i in > range(img.GetSize()[2]) ]) > > Does that look like what you are looking for? > > Brad > > [1] > http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1Image.html#a3d6cb12a211352ee38da5405b9c75928 > [2] > https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/ImageBase/include/itkImageSeriesWriter.hxx#L327-L368 > [3] https://issues.itk.org/jira/browse/SIMPLEITK-122 > > On Dec 29, 2014, at 2:48 PM, Matias Montroull wrote: > > Hi, > > Is there an example for SimpleITK to read a 3D image from a non Dicom file > such as mhd and then write it as a series of DICOM Slices? > > I can do this with C++ but I haven't been able to figure out how to do it > using simpleITK. > > Thanks, > > Matias. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Thu Jan 15 14:08:02 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 15 Jan 2015 14:08:02 -0500 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Francisco, Good to hear the BinaryImageToShapeLabelMapFilter is working. This is probably not the source of your issues, but this line FeatureValueVectorType* output = textureFilter->GetFeatureMeans(); should be FeatureValueVectorType::Pointer output = textureFilter->GetFeatureMeans(); since itk::SmartPointer's [1] are different from raw pointers. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1SmartPointer.html On Thu, Jan 15, 2015 at 12:34 PM, Francisco Lopez de la Franca wrote: > Sorry, I might press the wrong key. > Hi Matt again. > You were fully right about setting the background/foreground values for the > filter. I wasn't using them because I followed the examples and there was no > reference to them. Now my shape related functions are working. > > As for the textures, I attach my code so that anyone can see if i am doing > something wrong: > > typedef itk::Statistics::ScalarImageToTextureFeaturesFilter > TextureFilterType; > typedef typename TextureFilterType::Pointer TextureFilterPtr; > typedef typename TextureFilterType::FeatureValueVector > FeatureValueVectorType; > > TextureFilterPtr textureFilter = TextureFilterType::New(); > textureFilter->SetInput(_input); > textureFilter->Update(); > > FeatureValueVectorType* output = textureFilter->GetFeatureMeans(); > > cout << "Energy = " << (*output)[0]) << endl; > cout << "Entropy " << (*output)[1]); > cout << "LocalHomogeneity = " << (*output)[3]) << endl; > cout << "Inertia = " << (*output)[4]) << endl; > cout << "ClusterShade " << (*output)[5]) << endl; > cout << "ClusterProminence = " << (*output)[6]) << endl; > > Sincereously, I thank you a lot your help. > Regards. > /Francisco > > > > 2015-01-15 18:26 GMT+01:00 Francisco Lopez de la Franca > : >> >> Hi Matt again. >> You were fully right about setting the background/foreground values for >> the filter. I >> >> 2015-01-15 16:41 GMT+01:00 Matt McCormick : >>> >>> Hi Francisco, >>> >>> There is definitely something wrong with the textures features. It is >>> not possible to know what is going on without more details, though. >>> >>> Matt >>> >>> On Thu, Jan 15, 2015 at 1:32 AM, Francisco Lopez de la Franca >>> wrote: >>> > Hi Matt, >>> > Thanks a lot for your answers. I'll try this afternoon what you suggest >>> > regarding the shape filter, but what do you think about my results as >>> > for >>> > the texture filter? >>> > Regards. >>> > /Francisco >>> > >>> > 2015-01-15 2:30 GMT+01:00 Matt McCormick : >>> >> >>> >> Hi Francisco, >>> >> >>> >> Great to hear about the progress! >>> >> >>> >> The itk::BinaryImageToShapeLabelMapFilter requires a binary input, >>> >> which should have an integer pixel type, like unsigned char or >>> >> unsigned short. It is important to set the BackgroundValue and >>> >> ForegroundValue [1] to get this filter to work correctly. >>> >> >>> >> HTH, >>> >> Matt >>> >> >>> >> [1] >>> >> >>> >> http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html >>> >> >>> >> On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca >>> >> wrote: >>> >> > Hi again. >>> >> > I fixed all the errors and got my library, now ready to be tested. >>> >> > It contains an encapsulation, on the one hand, of the class >>> >> > itkBinaryImageToShapeLabelMapFilter in order to get image shape >>> >> > descriptors >>> >> > of a 3D binary image, and on the other hand, the same for the class >>> >> > itkScalarImageToTextureFeaturesFilter to get image texture features >>> >> > of a >>> >> > 3D >>> >> > scalar image. >>> >> > >>> >> > I pass as input image to both classes a binary 3D Nifti image >>> >> > (150x150x150) >>> >> > containing a cylinder where the inside voxels are 255 and the >>> >> > outside >>> >> > voxels >>> >> > are 0. >>> >> > >>> >> > As for the shape issue, it's very strange to me that the call to >>> >> > GetNumberOfLabelObjects on a itk::LabelMap object returns a value of >>> >> > 0. >>> >> > The >>> >> > main code is as follows: >>> >> > >>> >> > binaryImageToShapeLabelMapFilter->SetInput(_input); >>> >> > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); >>> >> > binaryImageToShapeLabelMapFilter->Update(); >>> >> > >>> >> > LabelMapType::Pointer labelMap = >>> >> > binaryImageToShapeLabelMapFilter->GetOutput(); >>> >> > >>> >> > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); >>> >> > >>> >> > >>> >> > And, as for the texture features, the result of the filter does not >>> >> > seem >>> >> > to >>> >> > be very logic: >>> >> > >>> >> > Energy = 1 >>> >> > Entropy = 0 >>> >> > Correlation = 1 >>> >> > Local Homogeneity = 0 >>> >> > Inertia = 0 >>> >> > Cluster Shade = 0 >>> >> > Cluster Prominence = 0 >>> >> > >>> >> > I've also tested this with a scalar 3D Nifti image and the results >>> >> > are >>> >> > the >>> >> > same. >>> >> > >>> >> > And the question is: What kind of image do I have to pass to the >>> >> > filters >>> >> > so >>> >> > that the code would return a more logic expected answer? >>> >> > >>> >> > Thank you very much in advance. >>> >> > My best regars. >>> >> > /Francisco >>> >> > >>> >> > 2015-01-10 22:38 GMT+01:00 Matt McCormick >>> >> > : >>> >> >> >>> >> >> Hi Francisco, >>> >> >> >>> >> >> Nice to hear about the progress! >>> >> >> >>> >> >> You will need to link your library to the ITK libraries: >>> >> >> >>> >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) >>> >> >> >>> >> >> HTH, >>> >> >> Matt >>> >> >> >>> >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca >>> >> >> wrote: >>> >> >>> >>> >> >>> Thanks to your previous answer the problem was solved, but another >>> >> >>> one >>> >> >>> has come out. It occurs when linking to create the library. It >>> >> >>> gives >>> >> >>> an >>> >> >>> undefined reference to itk::ExceptionObject::ExceptionObject... as >>> >> >>> you >>> >> >>> can >>> >> >>> see below. >>> >> >>> What it is strange to me is that before including explicit >>> >> >>> template >>> >> >>> instantiation, I created the library without errors, and now that >>> >> >>> I >>> >> >>> include >>> >> >>> that, I get this error. >>> >> >>> I'll appreciate very much any help. >>> >> >>> >>> >> >>> Linking CXX shared library libTFM_Features.dll >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >>> >> >>> 1ERKSsjS2_S2_]+0x35): undefined reference to >>> >> >>> `itk::ExceptionObject::ExceptionObj >>> >> >>> ect(std::string const&, unsigned int, std::string const&, >>> >> >>> std::string >>> >> >>> const&)' >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC >>> >> >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for >>> >> >>> itk::MemoryAllocationEr >>> >> >>> ror' >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min >>> >> >>> gw32/bin/ld.exe: >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba >>> >> >>> d reloc address 0x40 in section >>> >> >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ >>> >> >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' >>> >> >>> collect2.exe: error: ld returned 1 exit status >>> >> >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for target >>> >> >>> 'SRC/libTFM_Fe >>> >> >>> atures.dll' failed >>> >> >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 >>> >> >>> CMakeFiles\Makefile2:77: recipe for target >>> >> >>> 'SRC/CMakeFiles/TFM_Features.dir/all' >>> >> >>> failed >>> >> >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] Error 2 >>> >> >>> Makefile:74: recipe for target 'all' failed >>> >> >>> mingw32-make: *** [all] Error 2 >>> >> >>> >>> >> >>> >>> >> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick >>> >> >>> : >>> >> >>>> >>> >> >>>> Hi Francisco, >>> >> >>>> >>> >> >>>> In order for the templates to be available in the library, they >>> >> >>>> must >>> >> >>>> be explicitly instantiated [1]. >>> >> >>>> >>> >> >>>> HTH, >>> >> >>>> Matt >>> >> >>>> >>> >> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ >>> >> >>>> >>> >> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca >>> >> >>>> wrote: >>> >> >>>> > Hi. >>> >> >>>> > I' like to create a library containing, for example, one >>> >> >>>> > template >>> >> >>>> > class with >>> >> >>>> > a number of methods. >>> >> >>>> > I've programmed a simple example and the compilation and >>> >> >>>> > generation >>> >> >>>> > of >>> >> >>>> > the >>> >> >>>> > library goes fine. I use the cmake "add_library" command for >>> >> >>>> > generating the >>> >> >>>> > library. >>> >> >>>> > >>> >> >>>> > The problem arises at the moment of testing the library. I get >>> >> >>>> > an >>> >> >>>> > undefined >>> >> >>>> > reference for every method in the template class. >>> >> >>>> > >>> >> >>>> > I've downloaded a tool to look in the contents (functions) of >>> >> >>>> > dynamic >>> >> >>>> > libraries, and there is no function in the library. If I add >>> >> >>>> > another >>> >> >>>> > class >>> >> >>>> > (not a template class), then, this tool shows me only the >>> >> >>>> > functions >>> >> >>>> > in >>> >> >>>> > this >>> >> >>>> > latter class. >>> >> >>>> > >>> >> >>>> > Has anyone ever come across with this problem? >>> >> >>>> > >>> >> >>>> > Thanks a lot in advance. >>> >> >>>> > Regards >>> >> >>>> > /Francisco >>> >> >>>> > >>> >> >>>> > _____________________________________ >>> >> >>>> > 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://public.kitware.com/mailman/listinfo/insight-users >>> >> >>>> > >>> >> >>> >>> >> >>> >>> >> >> >>> >> > >>> > >>> > >> >> > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From jmerkow at gmail.com Thu Jan 15 17:09:20 2015 From: jmerkow at gmail.com (jmerkow) Date: Thu, 15 Jan 2015 15:09:20 -0700 (MST) Subject: [ITK] [ITK-users] Setting constants in ternary functor filters Message-ID: <1421359760646-35125.post@n7.nabble.com> Hello, I am writing a ternary functor filter and I want to allow constants to be set for inputs 2 and 3 (1 and 2 in SetNthInput). I believe I followed the example in BinaryFunctor but when I set them I get NULL pointers for the inputs: "At least one input is missing. Input1 is 0xb212190, Input2 is 0, Input3 is 0" My filter looks something like this (I trimmed it down to just the relevant parts): ... class MyTernaryFunctorImageFilter: public itk::TernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage, MyTernaryFunctor< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TInputImage3::PixelType, typename TOutputImage::PixelType > > { ... //Common Typedefs are here ... typedef TInputImage2 Input2ImageType; typedef typename Input2ImageType::ConstPointer Input2ImagePointer; typedef typename Input2ImageType::RegionType Input2ImageRegionType; typedef typename Input2ImageType::PixelType Input2ImagePixelType; typedef itk::SimpleDataObjectDecorator DecoratedInput2ImagePixelType; typedef TInputImage3 Input3ImageType; typedef typename Input3ImageType::ConstPointer Input3ImagePointer; typedef typename Input3ImageType::RegionType Input3ImageRegionType; typedef typename Input3ImageType::PixelType Input3ImagePixelType; typedef itk::SimpleDataObjectDecorator DecoratedInput3ImagePixelType; virtual void SetConstant2(const Input2ImagePixelType &input); virtual void SetConstant2(const DecoratedInput2ImagePixelType *input); /** Set the Third operand as a constant */ virtual void SetConstant3(const Input3ImagePixelType &input); virtual void SetConstant3(const DecoratedInput3ImagePixelType *input); }; template<...> void MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage> ::SetConstant2(const Input2ImagePixelType &input) { itkDebugMacro("setting SetConstant2 to " << input); typename DecoratedInput2ImagePixelType::Pointer newInput = DecoratedInput2ImagePixelType::New(); newInput->Set(input); this->SetConstant2(newInput); } template<...> void MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage> ::SetConstant2(const DecoratedInput2ImagePixelType *input) { this->SetNthInput( 1,const_cast(input)); } template<...> void MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage> ::SetConstant3(const Input3ImagePixelType &input) { itkDebugMacro("setting SetConstant3 to " << input); typename DecoratedInput3ImagePixelType::Pointer newInput = DecoratedInput3ImagePixelType::New(); newInput->Set(input); this->SetConstant3(newInput); } template<...> void MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage> ::SetConstant3(const DecoratedInput3ImagePixelType *input) { this->SetNthInput( 2,const_cast(input)); } I pass this function an image for input1, then floats for other two inputs. Am I missing an ingredient here? -Jameson -- View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From jmerkow at gmail.com Thu Jan 15 17:15:51 2015 From: jmerkow at gmail.com (jmerkow) Date: Thu, 15 Jan 2015 15:15:51 -0700 (MST) Subject: [ITK] [ITK-users] Create java VM failure SimpleITK, Python, Windows In-Reply-To: <1419773770742-35075.post@n7.nabble.com> References: <1379456385734-32371.post@n7.nabble.com> <1379463383239-32376.post@n7.nabble.com> <1403721309106-34160.post@n7.nabble.com> <1419771563210-35074.post@n7.nabble.com> <1419773770742-35075.post@n7.nabble.com> Message-ID: <1421360151382-35126.post@n7.nabble.com> Change them in the standard way. Google search turned up these two tutorials: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/ which seems to cover it. -- View this message in context: http://itk-users.7.n7.nabble.com/Create-java-VM-failure-SimpleITK-Python-Windows-tp32371p35126.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From franciscolopezdelafranca at gmail.com Fri Jan 16 02:02:24 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Fri, 16 Jan 2015 08:02:24 +0100 Subject: [ITK] [ITK-users] Undefined references to methods of template classes In-Reply-To: References: Message-ID: Hi Matt. I've already solved the texture features problem. The solution is similar to that of the shape features. You must set a value or values to the filter in order to be able to calculate the features. I've used the SetPixelValueMinMax () method and everything OK. Thank you very much for your support. /Francisco 2015-01-15 20:08 GMT+01:00 Matt McCormick : > Hi Francisco, > > Good to hear the BinaryImageToShapeLabelMapFilter is working. > > This is probably not the source of your issues, but this line > > FeatureValueVectorType* output = textureFilter->GetFeatureMeans(); > > should be > > FeatureValueVectorType::Pointer output = > textureFilter->GetFeatureMeans(); > > since itk::SmartPointer's [1] are different from raw pointers. > > HTH, > Matt > > [1] http://www.itk.org/Doxygen/html/classitk_1_1SmartPointer.html > > > On Thu, Jan 15, 2015 at 12:34 PM, Francisco Lopez de la Franca > wrote: > > Sorry, I might press the wrong key. > > Hi Matt again. > > You were fully right about setting the background/foreground values for > the > > filter. I wasn't using them because I followed the examples and there > was no > > reference to them. Now my shape related functions are working. > > > > As for the textures, I attach my code so that anyone can see if i am > doing > > something wrong: > > > > typedef itk::Statistics::ScalarImageToTextureFeaturesFilter > > TextureFilterType; > > typedef typename TextureFilterType::Pointer TextureFilterPtr; > > typedef typename TextureFilterType::FeatureValueVector > > FeatureValueVectorType; > > > > TextureFilterPtr textureFilter = TextureFilterType::New(); > > textureFilter->SetInput(_input); > > textureFilter->Update(); > > > > FeatureValueVectorType* output = textureFilter->GetFeatureMeans(); > > > > cout << "Energy = " << (*output)[0]) << endl; > > cout << "Entropy " << (*output)[1]); > > cout << "LocalHomogeneity = " << (*output)[3]) << endl; > > cout << "Inertia = " << (*output)[4]) << endl; > > cout << "ClusterShade " << (*output)[5]) << endl; > > cout << "ClusterProminence = " << (*output)[6]) << endl; > > > > Sincereously, I thank you a lot your help. > > Regards. > > /Francisco > > > > > > > > 2015-01-15 18:26 GMT+01:00 Francisco Lopez de la Franca > > : > >> > >> Hi Matt again. > >> You were fully right about setting the background/foreground values for > >> the filter. I > >> > >> 2015-01-15 16:41 GMT+01:00 Matt McCormick : > >>> > >>> Hi Francisco, > >>> > >>> There is definitely something wrong with the textures features. It is > >>> not possible to know what is going on without more details, though. > >>> > >>> Matt > >>> > >>> On Thu, Jan 15, 2015 at 1:32 AM, Francisco Lopez de la Franca > >>> wrote: > >>> > Hi Matt, > >>> > Thanks a lot for your answers. I'll try this afternoon what you > suggest > >>> > regarding the shape filter, but what do you think about my results as > >>> > for > >>> > the texture filter? > >>> > Regards. > >>> > /Francisco > >>> > > >>> > 2015-01-15 2:30 GMT+01:00 Matt McCormick >: > >>> >> > >>> >> Hi Francisco, > >>> >> > >>> >> Great to hear about the progress! > >>> >> > >>> >> The itk::BinaryImageToShapeLabelMapFilter requires a binary input, > >>> >> which should have an integer pixel type, like unsigned char or > >>> >> unsigned short. It is important to set the BackgroundValue and > >>> >> ForegroundValue [1] to get this filter to work correctly. > >>> >> > >>> >> HTH, > >>> >> Matt > >>> >> > >>> >> [1] > >>> >> > >>> >> > http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html > >>> >> > >>> >> On Wed, Jan 14, 2015 at 5:05 PM, Francisco Lopez de la Franca > >>> >> wrote: > >>> >> > Hi again. > >>> >> > I fixed all the errors and got my library, now ready to be tested. > >>> >> > It contains an encapsulation, on the one hand, of the class > >>> >> > itkBinaryImageToShapeLabelMapFilter in order to get image shape > >>> >> > descriptors > >>> >> > of a 3D binary image, and on the other hand, the same for the > class > >>> >> > itkScalarImageToTextureFeaturesFilter to get image texture > features > >>> >> > of a > >>> >> > 3D > >>> >> > scalar image. > >>> >> > > >>> >> > I pass as input image to both classes a binary 3D Nifti image > >>> >> > (150x150x150) > >>> >> > containing a cylinder where the inside voxels are 255 and the > >>> >> > outside > >>> >> > voxels > >>> >> > are 0. > >>> >> > > >>> >> > As for the shape issue, it's very strange to me that the call to > >>> >> > GetNumberOfLabelObjects on a itk::LabelMap object returns a value > of > >>> >> > 0. > >>> >> > The > >>> >> > main code is as follows: > >>> >> > > >>> >> > binaryImageToShapeLabelMapFilter->SetInput(_input); > >>> >> > binaryImageToShapeLabelMapFilter->ComputePerimeterOn(); > >>> >> > binaryImageToShapeLabelMapFilter->Update(); > >>> >> > > >>> >> > LabelMapType::Pointer labelMap = > >>> >> > binaryImageToShapeLabelMapFilter->GetOutput(); > >>> >> > > >>> >> > int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects(); > >>> >> > > >>> >> > > >>> >> > And, as for the texture features, the result of the filter does > not > >>> >> > seem > >>> >> > to > >>> >> > be very logic: > >>> >> > > >>> >> > Energy = 1 > >>> >> > Entropy = 0 > >>> >> > Correlation = 1 > >>> >> > Local Homogeneity = 0 > >>> >> > Inertia = 0 > >>> >> > Cluster Shade = 0 > >>> >> > Cluster Prominence = 0 > >>> >> > > >>> >> > I've also tested this with a scalar 3D Nifti image and the results > >>> >> > are > >>> >> > the > >>> >> > same. > >>> >> > > >>> >> > And the question is: What kind of image do I have to pass to the > >>> >> > filters > >>> >> > so > >>> >> > that the code would return a more logic expected answer? > >>> >> > > >>> >> > Thank you very much in advance. > >>> >> > My best regars. > >>> >> > /Francisco > >>> >> > > >>> >> > 2015-01-10 22:38 GMT+01:00 Matt McCormick > >>> >> > : > >>> >> >> > >>> >> >> Hi Francisco, > >>> >> >> > >>> >> >> Nice to hear about the progress! > >>> >> >> > >>> >> >> You will need to link your library to the ITK libraries: > >>> >> >> > >>> >> >> target_link_libraries( mylibrary ${ITK_LIBRARIES} ) > >>> >> >> > >>> >> >> HTH, > >>> >> >> Matt > >>> >> >> > >>> >> >> On Sat, Jan 10, 2015 at 4:16 PM, Francisco Lopez de la Franca > >>> >> >> wrote: > >>> >> >>> > >>> >> >>> Thanks to your previous answer the problem was solved, but > another > >>> >> >>> one > >>> >> >>> has come out. It occurs when linking to create the library. It > >>> >> >>> gives > >>> >> >>> an > >>> >> >>> undefined reference to itk::ExceptionObject::ExceptionObject... > as > >>> >> >>> you > >>> >> >>> can > >>> >> >>> see below. > >>> >> >>> What it is strange to me is that before including explicit > >>> >> >>> template > >>> >> >>> instantiation, I created the library without errors, and now > that > >>> >> >>> I > >>> >> >>> include > >>> >> >>> that, I get this error. > >>> >> >>> I'll appreciate very much any help. > >>> >> >>> > >>> >> >>> Linking CXX shared library libTFM_Features.dll > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >>> >> >>> 1ERKSsjS2_S2_]+0x35): undefined reference to > >>> >> >>> `itk::ExceptionObject::ExceptionObj > >>> >> >>> ect(std::string const&, unsigned int, std::string const&, > >>> >> >>> std::string > >>> >> >>> const&)' > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> > CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj):TFM_Features.cpp:(.t > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> > ext$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC > >>> >> >>> 1ERKSsjS2_S2_]+0x40): undefined reference to `vtable for > >>> >> >>> itk::MemoryAllocationEr > >>> >> >>> ror' > >>> >> >>> > >>> >> >>> > >>> >> >>> > >>> >> >>> > C:/CV/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-min > >>> >> >>> gw32/bin/ld.exe: > >>> >> >>> CMakeFiles\TFM_Features.dir/objects.a(TFM_Features.cpp.obj): ba > >>> >> >>> d reloc address 0x40 in section > >>> >> >>> `.text$_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_ > >>> >> >>> S2_[_ZN3itk21MemoryAllocationErrorC1ERKSsjS2_S2_]' > >>> >> >>> collect2.exe: error: ld returned 1 exit status > >>> >> >>> SRC\CMakeFiles\TFM_Features.dir\build.make:219: recipe for > target > >>> >> >>> 'SRC/libTFM_Fe > >>> >> >>> atures.dll' failed > >>> >> >>> mingw32-make[2]: *** [SRC/libTFM_Features.dll] Error 1 > >>> >> >>> CMakeFiles\Makefile2:77: recipe for target > >>> >> >>> 'SRC/CMakeFiles/TFM_Features.dir/all' > >>> >> >>> failed > >>> >> >>> mingw32-make[1]: *** [SRC/CMakeFiles/TFM_Features.dir/all] > Error 2 > >>> >> >>> Makefile:74: recipe for target 'all' failed > >>> >> >>> mingw32-make: *** [all] Error 2 > >>> >> >>> > >>> >> >>> > >>> >> >>> 2015-01-09 21:02 GMT+01:00 Matt McCormick > >>> >> >>> : > >>> >> >>>> > >>> >> >>>> Hi Francisco, > >>> >> >>>> > >>> >> >>>> In order for the templates to be available in the library, they > >>> >> >>>> must > >>> >> >>>> be explicitly instantiated [1]. > >>> >> >>>> > >>> >> >>>> HTH, > >>> >> >>>> Matt > >>> >> >>>> > >>> >> >>>> [1] http://www.cplusplus.com/articles/1C75fSEw/ > >>> >> >>>> > >>> >> >>>> On Fri, Jan 9, 2015 at 2:59 PM, Francisco Lopez de la Franca > >>> >> >>>> wrote: > >>> >> >>>> > Hi. > >>> >> >>>> > I' like to create a library containing, for example, one > >>> >> >>>> > template > >>> >> >>>> > class with > >>> >> >>>> > a number of methods. > >>> >> >>>> > I've programmed a simple example and the compilation and > >>> >> >>>> > generation > >>> >> >>>> > of > >>> >> >>>> > the > >>> >> >>>> > library goes fine. I use the cmake "add_library" command for > >>> >> >>>> > generating the > >>> >> >>>> > library. > >>> >> >>>> > > >>> >> >>>> > The problem arises at the moment of testing the library. I > get > >>> >> >>>> > an > >>> >> >>>> > undefined > >>> >> >>>> > reference for every method in the template class. > >>> >> >>>> > > >>> >> >>>> > I've downloaded a tool to look in the contents (functions) of > >>> >> >>>> > dynamic > >>> >> >>>> > libraries, and there is no function in the library. If I add > >>> >> >>>> > another > >>> >> >>>> > class > >>> >> >>>> > (not a template class), then, this tool shows me only the > >>> >> >>>> > functions > >>> >> >>>> > in > >>> >> >>>> > this > >>> >> >>>> > latter class. > >>> >> >>>> > > >>> >> >>>> > Has anyone ever come across with this problem? > >>> >> >>>> > > >>> >> >>>> > Thanks a lot in advance. > >>> >> >>>> > Regards > >>> >> >>>> > /Francisco > >>> >> >>>> > > >>> >> >>>> > _____________________________________ > >>> >> >>>> > 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://public.kitware.com/mailman/listinfo/insight-users > >>> >> >>>> > > >>> >> >>> > >>> >> >>> > >>> >> >> > >>> >> > > >>> > > >>> > > >> > >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From david.m.welch at gmail.com Fri Jan 16 11:31:59 2015 From: david.m.welch at gmail.com (dmwelch) Date: Fri, 16 Jan 2015 09:31:59 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421275248945-35113.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> Message-ID: <1421425919413-35128.post@n7.nabble.com> This is off topic, but have you looked at using VMTK? It's a ITK-based Python package designed for vessel segmentation, so you don't have to re-invent the wheel, ICYI. I used it to create a semi-automated cerebral aneurysm segmentation app several years back. ;-) Cheers, Dave W. -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35128.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 16 11:54:24 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 16 Jan 2015 11:54:24 -0500 Subject: [ITK] [ITK-users] Setting constants in ternary functor filters In-Reply-To: <1421359760646-35125.post@n7.nabble.com> References: <1421359760646-35125.post@n7.nabble.com> Message-ID: Hi Jameson, The TernaryFunctorImageFilter was designed to work on three input images. For this case, it would be better to inherit from UnaryFunctorImageFilter, then set the constants on the functor. See, for example, the itk::ExpNegativeImageFilter [1], which also has a constant input. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1ExpNegativeImageFilter.html On Thu, Jan 15, 2015 at 5:09 PM, jmerkow wrote: > Hello, > > I am writing a ternary functor filter and I want to allow constants to be > set for inputs 2 and 3 (1 and 2 in SetNthInput). > I believe I followed the example in BinaryFunctor but when I set them I get > NULL pointers for the inputs: > "At least one input is missing. Input1 is 0xb212190, Input2 is 0, Input3 > is 0" > > My filter looks something like this (I trimmed it down to just the relevant > parts): > > ... > class MyTernaryFunctorImageFilter: > public itk::TernaryFunctorImageFilter< TInputImage1, TInputImage2, > TInputImage3, TOutputImage, > MyTernaryFunctor< > typename TInputImage1::PixelType, > typename TInputImage2::PixelType, > typename TInputImage3::PixelType, > typename TOutputImage::PixelType > > > { > ... > //Common Typedefs are here > ... > > typedef TInputImage2 Input2ImageType; > typedef typename Input2ImageType::ConstPointer Input2ImagePointer; > typedef typename Input2ImageType::RegionType Input2ImageRegionType; > typedef typename Input2ImageType::PixelType Input2ImagePixelType; > typedef itk::SimpleDataObjectDecorator > DecoratedInput2ImagePixelType; > > typedef TInputImage3 Input3ImageType; > typedef typename Input3ImageType::ConstPointer Input3ImagePointer; > typedef typename Input3ImageType::RegionType Input3ImageRegionType; > typedef typename Input3ImageType::PixelType Input3ImagePixelType; > typedef itk::SimpleDataObjectDecorator > DecoratedInput3ImagePixelType; > > virtual void SetConstant2(const Input2ImagePixelType &input); > virtual void SetConstant2(const DecoratedInput2ImagePixelType *input); > /** Set the Third operand as a constant */ > virtual void SetConstant3(const Input3ImagePixelType &input); > virtual void SetConstant3(const DecoratedInput3ImagePixelType *input); > }; > > template<...> > void > MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, > TOutputImage> > ::SetConstant2(const Input2ImagePixelType &input) > { > itkDebugMacro("setting SetConstant2 to " << input); > typename DecoratedInput2ImagePixelType::Pointer newInput = > DecoratedInput2ImagePixelType::New(); > newInput->Set(input); > this->SetConstant2(newInput); > } > > template<...> > void > MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, > TOutputImage> > ::SetConstant2(const DecoratedInput2ImagePixelType *input) > { > this->SetNthInput( 1,const_cast(input)); > } > template<...> > void > MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, > TOutputImage> > ::SetConstant3(const Input3ImagePixelType &input) > { > itkDebugMacro("setting SetConstant3 to " << input); > typename DecoratedInput3ImagePixelType::Pointer newInput = > DecoratedInput3ImagePixelType::New(); > newInput->Set(input); > this->SetConstant3(newInput); > } > > template<...> > void > MyTernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, > TOutputImage> > ::SetConstant3(const DecoratedInput3ImagePixelType *input) > { > this->SetNthInput( 2,const_cast(input)); > } > > I pass this function an image for input1, then floats for other two inputs. > > Am I missing an ingredient here? > > -Jameson > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From jmerkow at gmail.com Fri Jan 16 11:56:57 2015 From: jmerkow at gmail.com (jmerkow) Date: Fri, 16 Jan 2015 09:56:57 -0700 (MST) Subject: [ITK] [ITK-users] Setting constants in ternary functor filters In-Reply-To: References: <1421359760646-35125.post@n7.nabble.com> Message-ID: <1421427417375-35130.post@n7.nabble.com> I originally debated using a unary functor, though this will generally be used with constants, there may be some cases where don't want it to be constant, so I thought it best to write one image filter and have the ability to set constants or image inputs. Is there any reason that what Im trying to do won't work? -Jameson -- View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125p35130.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From blowekamp at mail.nih.gov Fri Jan 16 12:06:12 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Fri, 16 Jan 2015 12:06:12 -0500 Subject: [ITK] [ITK-users] Setting constants in ternary functor filters In-Reply-To: <1421427417375-35130.post@n7.nabble.com> References: <1421359760646-35125.post@n7.nabble.com> <1421427417375-35130.post@n7.nabble.com> Message-ID: Hello, You will need to look at the implementation of the TernaryFunctorImageFilter. You'll see that it expects the inputs to be images. I used image iterators and dynamics casts under this assumption. On the other hand the implementation BinaryFunctorImageFilter, this handles the case where the inputs are decorators and the other complications that are needed. Now, this is certainly a nice feature that could be added to the TernaryFunctorImageFilter, but I think there are really to many possible permutations for it to be worth the effort. Brad On Jan 16, 2015, at 11:56 AM, jmerkow wrote: > I originally debated using a unary functor, though this will generally be > used with constants, there may be some cases where don't want it to be > constant, so I thought it best to write one image filter and have the > ability to set constants or image inputs. > Is there any reason that what Im trying to do won't work? > > -Jameson > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125p35130.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From jmerkow at gmail.com Fri Jan 16 12:20:12 2015 From: jmerkow at gmail.com (jmerkow) Date: Fri, 16 Jan 2015 10:20:12 -0700 (MST) Subject: [ITK] [ITK-users] Setting constants in ternary functor filters In-Reply-To: References: <1421359760646-35125.post@n7.nabble.com> <1421427417375-35130.post@n7.nabble.com> Message-ID: <1421428812539-35132.post@n7.nabble.com> Ahhh, I see. You have an if-else block that checked for NULL pointers, and then call GetConstant on the null pointer. I guess I misunderstood the decorated data object for pixel types. I thought that they were constant images, so that GetPixel returns the constant at all locations. I re-read [1] more carefully and see my mistake. Im going to switch to the unary functor, but is there a constant image class like Im describing? It would be an easy way to set constants for functors (or anything) without wasting memory by CreateImage -> Fill. Thanks for your help! -Jameson -- View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125p35132.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Fri Jan 16 12:43:15 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Fri, 16 Jan 2015 10:43:15 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: References: <1421275248945-35113.post@n7.nabble.com> <1421306921950-35117.post@n7.nabble.com> Message-ID: <1421430195087-35133.post@n7.nabble.com> Thanks Matt. I can try reading in the DICOM images, but I am not sure about the "supported ITK file format". Can I produce a DICOM output? I do not use VTK, so I do not understand how I will be able to view the output, in any non-DICOM format. -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35133.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Fri Jan 16 12:58:42 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Fri, 16 Jan 2015 10:58:42 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421425919413-35128.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> <1421425919413-35128.post@n7.nabble.com> Message-ID: <1421431122358-35134.post@n7.nabble.com> Actually - very on topic :) I have built and started playing with VMTK, but the Python interface put me off. Our application has a C# GUI that calls ITK through a SWIG wrapper. Your application sounds very interesting ... can we talk about it? (So ... very interested...) -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35134.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 16 14:07:46 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 16 Jan 2015 14:07:46 -0500 Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421430195087-35133.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> <1421306921950-35117.post@n7.nabble.com> <1421430195087-35133.post@n7.nabble.com> Message-ID: ITK supports a number of file formats [1]. While it is technically possible to create DICOM, this is very complicated, and one of the other research formats, i.e. MetaImage, are recommended. There are programs like 3D Slicer, based on ITK, that can be used to visualize the output [2]. It is also possible to output PNG, JPG, TIFF, representations, too. Write the resulting image to file in one of these formats with ITK classes should be useful for debugging purposes. HTH, Matt [1] http://www.itk.org/Doxygen/html/group__Group-IO.html [2] http://slicer.org/ On Fri, Jan 16, 2015 at 12:43 PM, Nissim Hadar wrote: > Thanks Matt. I can try reading in the DICOM images, but I am not sure about > the "supported ITK file format". Can I produce a DICOM output? I do not > use VTK, so I do not understand how I will be able to view the output, in > any non-DICOM format. > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35133.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 16 14:09:18 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 16 Jan 2015 14:09:18 -0500 Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421431122358-35134.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> <1421425919413-35128.post@n7.nabble.com> <1421431122358-35134.post@n7.nabble.com> Message-ID: Hi, I would also recommend TubeTK [1] -- its forte is vessel segmentation, and it works well with ITK. Thanks, Matt [1] http://tubetk.org/ On Fri, Jan 16, 2015 at 12:58 PM, Nissim Hadar wrote: > Actually - very on topic :) > I have built and started playing with VMTK, but the Python interface put me > off. Our application has a C# GUI that calls ITK through a SWIG wrapper. > Your application sounds very interesting ... can we talk about it? (So ... > very interested...) > > > > -- > View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35134.html > Sent from the ITK - Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Fri Jan 16 17:00:04 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Fri, 16 Jan 2015 15:00:04 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: References: <1421275248945-35113.post@n7.nabble.com> <1421425919413-35128.post@n7.nabble.com> <1421431122358-35134.post@n7.nabble.com> Message-ID: <1421445604453-35137.post@n7.nabble.com> I am also trying TubeTK. Trying to compile that is :) -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35137.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From emmasaunders123 at gmail.com Mon Jan 19 11:47:58 2015 From: emmasaunders123 at gmail.com (Emma Saunders) Date: Mon, 19 Jan 2015 16:47:58 +0000 Subject: [ITK] [ITK-users] Upsample images or Deformation field - accuracy? Message-ID: Hi, Just wondering peoples experiences, would it be more or less accurate to upsample to images and register them, than register two images and upsample the deformation field? Thanks Emma -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From niels-xtk at xs4all.nl Mon Jan 19 12:21:26 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Mon, 19 Jan 2015 18:21:26 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> Message-ID: FYI, I have just submitted a bug report to Microsoft on the internal compiler errors that are triggered by setting ITK_USE_64BITS_IDS on VS2013 + Win64: "[C/C++] VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer conversions during array iteration: internal compiler error", https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 Note that for ITK, the internal compiler errors can be avoided by simply changing the parameter type of the two operator[] overloads in "vnl/vnl_vector.h", from 'unsigned int' to 'size_t'. Kind regards, Niels On 2015-01-14 14:20, Bradley Lowekamp wrote: > Yes, I'll add the 64BIT flags to that build. > > Brad > On Jan 14, 2015, at 7:42 AM, Floris Berendsen wrote: > >> Unfortunately I ran into more problems with the VS2013 compiler. If I >> set ITK_USE_64BITS_IDS to ON the compiler crashes while building >> Release. >> >> Could this setting be added to the setup of lhcp-vm-win701.nlm on CDash, >> since I think this configuration is preferable for 64bits? >> >> The compiler crash is related to a typecast of a 64bits id to an >> unsigned int. We are working on a next minimal example. >> >> In case of ITK, this (implicit) typecast is performed when calling the >> vnl-library, since it uses unsigned ints for indexing vectors. >> This raises the next question if vnl is suitable for 64bits at all, >> since it looks like it is limited to 32 bit. >> >> Cheers, >> Floris >> >> On Wed, Jan 14, 2015 at 12:56 PM, Niels Dekker >> wrote: >> Bradley Lowekamp wrote on Jan 13, 2015: >> Wow, very nice! Thanks for the clear commit message too. >> >> You're welcome :-) >> >> >> Here is the latest dashboard build: >> https://open.cdash.org/buildSummary.php?buildid=3650940 >> Way to squash 104 failing tests! One left though :) >> >> Cool! Do you have a clue how fix the one test failure that is left? I >> see it's a failure of CellularSegmentation1Test. >> >> >> With all this being done, I am still not sure I would trust >> this compiler to generate correct code with ITK. >> >> I really hope so! Visual Studio 2013 has had four updates already, >> including many compiler bug fixes. VS2013 offers many Standard C++ >> language features that were not available in previous versions of Visual >> C++, including: >> >> * Initializer lists >> * Variadic templates >> * Delegating constructors >> * Raw string literals >> * 'using' aliases >> * Deleted functions ('=delete') >> * Defaulted functions ('=default') >> * Non-static data member initializers >> >> A longer list is at "What's New for Visual C++ in Visual Studio 2013", >> http://msdn.microsoft.com/en-us/library/hh409293.aspx >> >> >> Kind regards, Niels From matt.mccormick at kitware.com Mon Jan 19 13:59:08 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 19 Jan 2015 13:59:08 -0500 Subject: [ITK] [ITK-users] Upsample images or Deformation field - accuracy? In-Reply-To: References: Message-ID: Hi Emma, In practice, for many cases it probably does not make much of a difference. However, if it does make a difference, upsampling the images first with an accurate interpolator, like windowed-sinc interpolation, should be best. HTH, Matt On Mon, Jan 19, 2015 at 11:47 AM, Emma Saunders wrote: > Hi, > > Just wondering peoples experiences, would it be more or less accurate to > upsample to images and register them, than register two images and upsample > the deformation field? > > Thanks > > Emma > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 19 14:21:43 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 19 Jan 2015 14:21:43 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> Message-ID: Well done! Issue vote bumped. Matt On Mon, Jan 19, 2015 at 12:21 PM, Niels Dekker wrote: > FYI, I have just submitted a bug report to Microsoft on the internal > compiler errors that are triggered by setting ITK_USE_64BITS_IDS on VS2013 > + Win64: "[C/C++] VS2013 x64 Release (/O2) fatal error C1001 on narrowing > integer conversions during array iteration: internal compiler error", > https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 > > Note that for ITK, the internal compiler errors can be avoided by simply > changing the parameter type of the two operator[] overloads in > "vnl/vnl_vector.h", from 'unsigned int' to 'size_t'. > > Kind regards, Niels > > On 2015-01-14 14:20, Bradley Lowekamp wrote: >> Yes, I'll add the 64BIT flags to that build. >> >> Brad >> On Jan 14, 2015, at 7:42 AM, Floris Berendsen wrote: >> >>> Unfortunately I ran into more problems with the VS2013 compiler. If I >>> set ITK_USE_64BITS_IDS to ON the compiler crashes while building >>> Release. >>> >>> Could this setting be added to the setup of lhcp-vm-win701.nlm on CDash, >>> since I think this configuration is preferable for 64bits? >>> >>> The compiler crash is related to a typecast of a 64bits id to an >>> unsigned int. We are working on a next minimal example. >>> >>> In case of ITK, this (implicit) typecast is performed when calling the >>> vnl-library, since it uses unsigned ints for indexing vectors. >>> This raises the next question if vnl is suitable for 64bits at all, >>> since it looks like it is limited to 32 bit. >>> >>> Cheers, >>> Floris >>> >>> On Wed, Jan 14, 2015 at 12:56 PM, Niels Dekker >>> wrote: >>> Bradley Lowekamp wrote on Jan 13, 2015: >>> Wow, very nice! Thanks for the clear commit message too. >>> >>> You're welcome :-) >>> >>> >>> Here is the latest dashboard build: >>> https://open.cdash.org/buildSummary.php?buildid=3650940 >>> Way to squash 104 failing tests! One left though :) >>> >>> Cool! Do you have a clue how fix the one test failure that is left? I >>> see it's a failure of CellularSegmentation1Test. >>> >>> >>> With all this being done, I am still not sure I would trust >>> this compiler to generate correct code with ITK. >>> >>> I really hope so! Visual Studio 2013 has had four updates already, >>> including many compiler bug fixes. VS2013 offers many Standard C++ >>> language features that were not available in previous versions of Visual >>> C++, including: >>> >>> * Initializer lists >>> * Variadic templates >>> * Delegating constructors >>> * Raw string literals >>> * 'using' aliases >>> * Deleted functions ('=delete') >>> * Defaulted functions ('=default') >>> * Non-static data member initializers >>> >>> A longer list is at "What's New for Visual C++ in Visual Studio 2013", >>> http://msdn.microsoft.com/en-us/library/hh409293.aspx >>> >>> >>> Kind regards, Niels > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From Erik.Olsson at neuro.gu.se Tue Jan 20 15:04:10 2015 From: Erik.Olsson at neuro.gu.se (Erik Olsson) Date: Tue, 20 Jan 2015 20:04:10 +0000 Subject: [ITK] [ITK-users] Command line use of N4 in MacOS terminal In-Reply-To: References: Message-ID: Hi, I have recently started to use N4 as a command line installation and the bias field correction works great in general. I am trying to figure out how to configure the flags for best performance on our T2 MRI images and when trying the rescale intensities I get the error message "segmentation fault 11" for both options ( -r 1 as well as -r 0). I also have a problem with the convergence flag -c, all works fine when I leave this flag out but when trying for example -c 50x50x50x50,0.0001 it stops after 1 iteration (Current level = 1 Iteration 1 (of 50). Current convergence value = 0.000816419 (threshold = 0.001). It does not seem like my specification of the threshold is read but the default value is used. Do you have an example of a typical setting for the -c flag other than the default values? best regards Erik Erik Olsson PhD Institute of Psychiatry and Neurochemistry Department of Neuroscience & physiology The Sahlgrenska academy Gothenburg University Sweden -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From ntustison at gmail.com Tue Jan 20 17:05:19 2015 From: ntustison at gmail.com (Nicholas Tustison) Date: Tue, 20 Jan 2015 14:05:19 -0800 Subject: [ITK] [ITK-users] Command line use of N4 in MacOS terminal In-Reply-To: References: Message-ID: Hi Erik, It sounds like this is an ANTs-specific issue. If you have any further questions, I would recommend asking at that forum. https://github.com/stnava/ANTs/issues The command line interface that you reference is ANTs-specific and should have brackets around it e.g., -c [50x50x50x50,0.0001] I don?t know about the rescale problem. Does it happen on any image or just that specific T2? Anyway, meet me over on the ANTs forum if you have further questions/ issues. Nick > On Jan 20, 2015, at 12:04 PM, Erik Olsson wrote: > > > > Hi, > > I have recently started to use N4 as a command line installation and the bias field correction works great in general. > > I am trying to figure out how to configure the flags for best performance on our T2 MRI images and when trying the rescale intensities I get the error message "segmentation fault 11" for both options ( -r 1 as well as -r 0). I also have a problem with the convergence flag -c, all works fine when I leave this flag out but when trying for example -c 50x50x50x50,0.0001 it stops after 1 iteration (Current level = 1 > Iteration 1 (of 50). Current convergence value = 0.000816419 (threshold = 0.001). It does not seem like my specification of the threshold is read but the default value is used. Do you have an example of a typical setting for the -c flag other than the default values? > > best regards > Erik > > Erik Olsson > PhD > > Institute of Psychiatry and Neurochemistry > Department of Neuroscience & physiology > The Sahlgrenska academy > Gothenburg University > Sweden > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From blowekamp at mail.nih.gov Wed Jan 21 09:09:14 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 21 Jan 2015 09:09:14 -0500 Subject: [ITK] [ITK-users] FastMarching UpwindGradient Filters difference Message-ID: <02EFACE9-9946-4546-9403-1A2709CB7B41@mail.nih.gov> Hello, I am trying to figure out the difference between the FastMarchingUpwindGradientImageFilterBase[1] and the FastMarchingUpwindGradientImageFilter[2]. The first thing to notice is that the "Base" class is NOT a parent of the other. Secondly, the non-Base implements a stopping criteria of reaching a number of target nodes. This is now incorporated as an optional stopping criteria [3], in the framework. Then both of the filters add the upwind gradient image as an output, with what appears to be duplicated code. I don't see a real difference here. I think one should be deprecated. Brad [1] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilterBase.html [2] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html [3] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingReachedTargetNodesStoppingCriterion.html _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From arnaudgelas at gmail.com Wed Jan 21 09:33:48 2015 From: arnaudgelas at gmail.com (Arnaud Gelas) Date: Wed, 21 Jan 2015 15:33:48 +0100 Subject: [ITK] [ITK-users] FastMarching UpwindGradient Filters difference In-Reply-To: <02EFACE9-9946-4546-9403-1A2709CB7B41@mail.nih.gov> References: <02EFACE9-9946-4546-9403-1A2709CB7B41@mail.nih.gov> Message-ID: <3C7C228B-B1B1-4DF5-8CFF-06F82A542FD6@gmail.com> Hi Brad, FastMarchingUpwindGradientImageFilter is from ITKv3 while the other one is from ITKv4. Note that in terms of features, FastMarchingUpwiindGradientImageFilter would be a subset of the ?Base" one? Arnaud > On 21 Jan 2015, at 15:09, Bradley Lowekamp wrote: > > Hello, > > I am trying to figure out the difference between the FastMarchingUpwindGradientImageFilterBase[1] and the FastMarchingUpwindGradientImageFilter[2]. > > The first thing to notice is that the "Base" class is NOT a parent of the other. Secondly, the non-Base implements a stopping criteria of reaching a number of target nodes. This is now incorporated as an optional stopping criteria [3], in the framework. Then both of the filters add the upwind gradient image as an output, with what appears to be duplicated code. > > I don't see a real difference here. I think one should be deprecated. > > Brad > > [1] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilterBase.html > [2] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html > [3] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingReachedTargetNodesStoppingCriterion.html _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From ra.corredor at gmail.com Wed Jan 21 12:50:06 2015 From: ra.corredor at gmail.com (Ricardo A Corredor) Date: Wed, 21 Jan 2015 10:50:06 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: References: <1421275248945-35113.post@n7.nabble.com> <1421306921950-35117.post@n7.nabble.com> <1421430195087-35133.post@n7.nabble.com> Message-ID: <1421862606723-35144.post@n7.nabble.com> Hi, For medical image visualization using a non-DICOM format I often use the MHD/RAW (MetaImage) format. You only need to use a ImageFileWriter, set as input the image you want to save and put a filename with .mhd as extension, e.g. "./theImage.mhd". It is possible to visualize these files in multiple programs: ParaView, MeVisLab, 3D Slicer, itkSNAP, ... Usually I suggest those tools on that order. Check also that the way you're constructing the image is the same as stored in the array (row-major order or column-major order) and that you're constructing an image with the correct data type, correct size. Hope that works! Best, RaC -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35144.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From HIROTATSU.ARMSTRONG at UCDENVER.EDU Wed Jan 21 13:13:41 2015 From: HIROTATSU.ARMSTRONG at UCDENVER.EDU (Armstrong, Hirotatsu) Date: Wed, 21 Jan 2015 18:13:41 +0000 Subject: [ITK] Deformation Field Perturbations Message-ID: Hello, I would like to add small perturbations to the deformation field computed to ITK. I create a registration filter through, typedef itk::Vector< float, Dimension > VectorPixelType; typedef itk::Image< VectorPixelType, Dimension > DisplacementFieldType; typedef itk::SymmetricForcesDemonsRegistrationFilter< InternalImageType, InternalImageType, DisplacementFieldType> RegistrationFilterType; RegistrationFilterType::Pointer filter = RegistrationFilterType::New(); CommandIterationUpdate::Pointer observer = CommandIterationUpdate::New(); filter->AddObserver( itk::IterationEvent(), observer ); filter->SetFixedImage( fixedImageCaster->GetOutput() ); filter->SetMovingImage( matcher->GetOutput() ); filter->SetNumberOfIterations( iterations ); filter->SetStandardDeviations( sd ); filter->SetNumberOfThreads(nprocs); filter->Update(); Now, I believe I want to get a pointer to the DVF and an iterator by defining, DisplacementFieldType* DVF = filter->GetDisplacementField(); ImageIterator it( DVF, DVF->GetRequestedRegion() ); With this iterator, I am not quite sure how to access the x/y/z components of the DVF so that I can update them. Any help would be appreciated. Thanks James Armstrong, Ph.D. PostDoctoral Fellow, Physics Department of Radiation Oncology University of Colorado School of Medicine 1665 Aurora Ct, MS F706 Aurora, CO 80045 720-848-0257 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpinkert at wisc.edu Wed Jan 21 14:44:53 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Wed, 21 Jan 2015 12:44:53 -0700 (MST) Subject: [ITK] [ITK-users] [ITK-Users] Multiple Inputs of different types Message-ID: <1421869493940-7586810.post@n2.nabble.com> Hi all, I'm trying to develop a Vector Connected Component Filter/pipeline that checks the direction of the eigenvector as well as whether or not the pixels are touching. I am doing this by modifying the three following filters that build off of each other. itkSymmetricEigenAnalysisImageFilter.h so that it returns the largest eigenvector rather than the eigenvalues itkBinaryImageToLabelMapFilter.h to check that the eigenvectors for each pixel are aligned after checking that they are touching itkBinaryShapeKeepNObjectsImageFilter.h to simply pass the hessian into the LabelMapFilter. The problem is that I need to include a image that contains the hessian for each pixel along with the normal input image, so that the KeepNObjects filter can send it down to the LabelMapFilter and then to the EigenAnalysisFilter. However, none of the methods I have tried to get the hessian image into the filters work, and I do not understand how to allow for this second input. So far I have tried modifying the template as follows class BinaryVectorConnectedShapeKeepNObjectsImageFilter: public ImageToImageFilter< TInputImage, THessianImage, TInputImage > Combined with using the SetInputX functions as seen in other filters as follows void SetInput1(const TInputImage *image1) { this->SetNthInput(0, const_cast ( image1)); } This produces an error of "Too many template arguments". I have tried to make the hessian image a member variable and to use the normal Get/Set macros, but that also produces errors of being unable to convert between types when the function is used in main. I have also tried to simply define a new function to set the Hessian, like such void SetHessian(HessianImageType::Pointer hessianImage) { m_HessianImage = hessianImage; } And alternate versions with different input arguments, which include "const HessianImage *hessianImage". These also run into errors where it won't covert between types when I use the function in main. I have looked around at different filters that have multiple inputs, and all of them seem to be based on Functors/the BinaryFunctorImageFilter, but I am very unsure of how I would go about modifying the filters, and have very little experience with Functors. Also, the arguments for the other filters based on Functors all seem to include an operator as a fourth argument, and I do not want to perform any operations on the Hessian until the SymmetricAnalysis filter. Does anyone know how I could set this second input simply, or could point me to an example that does similar? Best regards, Michael Pinkert -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-Users-Multiple-Inputs-of-different-types-tp7586810.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 21 15:11:02 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 21 Jan 2015 15:11:02 -0500 Subject: [ITK] [ITK-users] [ITK-Users] Multiple Inputs of different types In-Reply-To: <1421869493940-7586810.post@n2.nabble.com> References: <1421869493940-7586810.post@n2.nabble.com> Message-ID: Hi Michael, The ImageToImageFilter will still need to be templated over TInputImage and TOutputImage. For example filters that have multiple inputs to study, see, e.g., ConvolutionImageFilterBase [1] (has a KernalImage input) MaskedFFTNormalizedCorrelationImageFilter [2] (has MaskImage input) HistogramThresholdImageFilter [3] (has MaskImage input) HTH, Matt [1] http://itk.org/Doxygen/html/classitk_1_1ConvolutionImageFilterBase.html [2] http://itk.org/Doxygen/html/classitk_1_1MaskedFFTNormalizedCorrelationImageFilter.html#a238b7f7d871a81849e66a12e0564825a [3] http://itk.org/Doxygen/html/classitk_1_1HistogramThresholdImageFilter.html#a19a692e8043422ba6721815f94f04944 On Wed, Jan 21, 2015 at 2:44 PM, Michael Pinkert wrote: > Hi all, > > I'm trying to develop a Vector Connected Component Filter/pipeline that > checks the direction of the eigenvector as well as whether or not the pixels > are touching. I am doing this by modifying the three following filters that > build off of each other. > > itkSymmetricEigenAnalysisImageFilter.h so that it returns the largest > eigenvector rather than the eigenvalues > > itkBinaryImageToLabelMapFilter.h to check that the eigenvectors for each > pixel are aligned after checking that they are touching > > itkBinaryShapeKeepNObjectsImageFilter.h to simply pass the hessian into the > LabelMapFilter. > > The problem is that I need to include a image that contains the hessian for > each pixel along with the normal input image, so that the KeepNObjects > filter can send it down to the LabelMapFilter and then to the > EigenAnalysisFilter. However, none of the methods I have tried to get the > hessian image into the filters work, and I do not understand how to allow > for this second input. > > So far I have tried modifying the template as follows > > class BinaryVectorConnectedShapeKeepNObjectsImageFilter: > public ImageToImageFilter< TInputImage, THessianImage, TInputImage > > > Combined with using the SetInputX functions as seen in other filters as > follows > > void SetInput1(const TInputImage *image1) > { > this->SetNthInput(0, const_cast ( image1)); > } > > This produces an error of "Too many template arguments". > > I have tried to make the hessian image a member variable and to use the > normal Get/Set macros, but that also produces errors of being unable to > convert between types when the function is used in main. > > I have also tried to simply define a new function to set the Hessian, like > such > > void SetHessian(HessianImageType::Pointer hessianImage) > { > m_HessianImage = hessianImage; > } > > And alternate versions with different input arguments, which include "const > HessianImage *hessianImage". These also run into errors where it won't > covert between types when I use the function in main. > > I have looked around at different filters that have multiple inputs, and all > of them seem to be based on Functors/the BinaryFunctorImageFilter, but I am > very unsure of how I would go about modifying the filters, and have very > little experience with Functors. Also, the arguments for the other filters > based on Functors all seem to include an operator as a fourth argument, and > I do not want to perform any operations on the Hessian until the > SymmetricAnalysis filter. > > Does anyone know how I could set this second input simply, or could point me > to an example that does similar? > > Best regards, > Michael Pinkert > > > > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-Users-Multiple-Inputs-of-different-types-tp7586810.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From ted.florez at gmail.com Wed Jan 21 15:26:28 2015 From: ted.florez at gmail.com (=?UTF-8?Q?Edward_Fl=C3=B3rez_Pacheco?=) Date: Wed, 21 Jan 2015 14:26:28 -0600 Subject: [ITK] Files not found Message-ID: Hi everyone I am a new ITK user. Currently, I am using a set of algorithms that use ITK. I installed the *InsightToolkit - version 4.6.1* but I had these troubles: CMakeFiles/DicomSeriesReadImageWrite2.dir/DicomSeriesReadImageWrite2.cxx.o Linking CXX executable DicomSeriesReadImageWrite2 /usr/bin/ld: cannot find -lITKAlgorithms /usr/bin/ld: cannot find -lITKIO collect2: ld returned 1 exit status make[2]: ** [DicomSeriesReadImageWrite2] Erro 1 make[1]: ** [CMakeFiles/DicomSeriesReadImageWrite2.dir/all] Erro 2 make: ** [all] Erro 2 If anyone has some idea about these issues and can give me some help I'll be very thankful. Thank you in advance. Best regards. -- *Edward Fl?rez* -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Wed Jan 21 15:30:57 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 21 Jan 2015 15:30:57 -0500 Subject: [ITK] Deformation Field Perturbations In-Reply-To: References: Message-ID: Hi James, To modify the vector pixel components, use the Get() and Set() methods of ImageRegionIterator[1]. More information on using Image Iterators can be found in the ITK Software Guide [2]. HTH, Matt [1] http://www.itk.org/Doxygen/html/classitk_1_1ImageRegionIterator.html [2] http://itk.org/ItkSoftwareGuide.pdf On Wed, Jan 21, 2015 at 1:13 PM, Armstrong, Hirotatsu wrote: > Hello, > > > > I would like to add small perturbations to the deformation field computed to > ITK. I create a registration filter through, > > > > typedef itk::Vector< float, Dimension > > VectorPixelType; > > typedef itk::Image< VectorPixelType, Dimension > > DisplacementFieldType; > > typedef itk::SymmetricForcesDemonsRegistrationFilter< > > > InternalImageType, > > > InternalImageType, > > > DisplacementFieldType> RegistrationFilterType; > > RegistrationFilterType::Pointer filter = > RegistrationFilterType::New(); > > > > CommandIterationUpdate::Pointer observer = > CommandIterationUpdate::New(); > > filter->AddObserver( itk::IterationEvent(), observer ); > > filter->SetFixedImage( fixedImageCaster->GetOutput() ); > > filter->SetMovingImage( matcher->GetOutput() ); > > filter->SetNumberOfIterations( iterations ); > > filter->SetStandardDeviations( sd ); > > filter->SetNumberOfThreads(nprocs); > > filter->Update(); > > > > > > Now, I believe I want to get a pointer to the DVF and an iterator by > defining, > > > > DisplacementFieldType* DVF = filter->GetDisplacementField(); > > ImageIterator it( DVF, DVF->GetRequestedRegion() ); > > > > > > With this iterator, I am not quite sure how to access the x/y/z components > of the DVF so that I can update them. Any help would be appreciated. > Thanks > > > > > > James Armstrong, Ph.D. > > PostDoctoral Fellow, Physics > > Department of Radiation Oncology > > University of Colorado School of Medicine > > 1665 Aurora Ct, MS F706 > > Aurora, CO 80045 > > 720-848-0257 > > > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From matt.mccormick at kitware.com Wed Jan 21 15:40:44 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 21 Jan 2015 15:40:44 -0500 Subject: [ITK] Files not found In-Reply-To: References: Message-ID: Hi Edward, It looks like you are trying to use a project that had a CMake configuration for ITKv3. To update the configuration for ITKv4, change target_link_libraries(myexecutable ITKAlgorithms ITKIO ) with target_link_libraries(myexecutable ${ITK_LIBRARIES} ) HTH, Matt On Wed, Jan 21, 2015 at 3:26 PM, Edward Fl?rez Pacheco wrote: > Hi everyone > > I am a new ITK user. > Currently, I am using a set of algorithms that use ITK. > I installed the InsightToolkit - version 4.6.1 but I had these troubles: > > CMakeFiles/DicomSeriesReadImageWrite2.dir/DicomSeriesReadImageWrite2.cxx.o > Linking CXX executable DicomSeriesReadImageWrite2 > /usr/bin/ld: cannot find -lITKAlgorithms > /usr/bin/ld: cannot find -lITKIO > collect2: ld returned 1 exit status > make[2]: ** [DicomSeriesReadImageWrite2] Erro 1 > make[1]: ** [CMakeFiles/DicomSeriesReadImageWrite2.dir/all] Erro 2 > make: ** [all] Erro 2 > > If anyone has some idea about these issues and can give me some help I'll be > very thankful. > Thank you in advance. > > Best regards. > > -- > Edward Fl?rez > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From ted.florez at gmail.com Wed Jan 21 16:21:28 2015 From: ted.florez at gmail.com (=?UTF-8?Q?Edward_Fl=C3=B3rez_Pacheco?=) Date: Wed, 21 Jan 2015 15:21:28 -0600 Subject: [ITK] Files not found In-Reply-To: References: Message-ID: Dear Matt Thank you so much! I made the change you suggested and now it is working fine. Regards. Edward 2015-01-21 14:40 GMT-06:00 Matt McCormick : > Hi Edward, > > It looks like you are trying to use a project that had a CMake > configuration for ITKv3. To update the configuration for ITKv4, > change > > target_link_libraries(myexecutable > ITKAlgorithms > ITKIO > ) > > with > > target_link_libraries(myexecutable > ${ITK_LIBRARIES} > ) > > HTH, > Matt > > On Wed, Jan 21, 2015 at 3:26 PM, Edward Fl?rez Pacheco > wrote: > > Hi everyone > > > > I am a new ITK user. > > Currently, I am using a set of algorithms that use ITK. > > I installed the InsightToolkit - version 4.6.1 but I had these troubles: > > > > > CMakeFiles/DicomSeriesReadImageWrite2.dir/DicomSeriesReadImageWrite2.cxx.o > > Linking CXX executable DicomSeriesReadImageWrite2 > > /usr/bin/ld: cannot find -lITKAlgorithms > > /usr/bin/ld: cannot find -lITKIO > > collect2: ld returned 1 exit status > > make[2]: ** [DicomSeriesReadImageWrite2] Erro 1 > > make[1]: ** [CMakeFiles/DicomSeriesReadImageWrite2.dir/all] Erro 2 > > make: ** [all] Erro 2 > > > > If anyone has some idea about these issues and can give me some help > I'll be > > very thankful. > > Thank you in advance. > > > > Best regards. > > > > -- > > Edward Fl?rez > > > > _______________________________________________ > > Community mailing list > > Community at itk.org > > http://public.kitware.com/mailman/listinfo/community > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpinkert at wisc.edu Wed Jan 21 15:29:15 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Wed, 21 Jan 2015 20:29:15 +0000 Subject: [ITK] [ITK-users] [ITK-Users] Multiple Inputs of different types In-Reply-To: References: <1421869493940-7586810.post@n2.nabble.com> Message-ID: <1421872155297.63645@wisc.edu> Hi Matt, Following the example of those filters seems to have worked, I'm no longer getting errors related to the multiple inputs. Thank you very much. Best regards, Michael Pinkert ________________________________________ From: Matt McCormick Sent: Wednesday, January 21, 2015 2:11 PM To: Michael Pinkert Cc: insight-users at itk.org Subject: Re: [ITK-users] [ITK-Users] Multiple Inputs of different types Hi Michael, The ImageToImageFilter will still need to be templated over TInputImage and TOutputImage. For example filters that have multiple inputs to study, see, e.g., ConvolutionImageFilterBase [1] (has a KernalImage input) MaskedFFTNormalizedCorrelationImageFilter [2] (has MaskImage input) HistogramThresholdImageFilter [3] (has MaskImage input) HTH, Matt [1] http://itk.org/Doxygen/html/classitk_1_1ConvolutionImageFilterBase.html [2] http://itk.org/Doxygen/html/classitk_1_1MaskedFFTNormalizedCorrelationImageFilter.html#a238b7f7d871a81849e66a12e0564825a [3] http://itk.org/Doxygen/html/classitk_1_1HistogramThresholdImageFilter.html#a19a692e8043422ba6721815f94f04944 On Wed, Jan 21, 2015 at 2:44 PM, Michael Pinkert wrote: > Hi all, > > I'm trying to develop a Vector Connected Component Filter/pipeline that > checks the direction of the eigenvector as well as whether or not the pixels > are touching. I am doing this by modifying the three following filters that > build off of each other. > > itkSymmetricEigenAnalysisImageFilter.h so that it returns the largest > eigenvector rather than the eigenvalues > > itkBinaryImageToLabelMapFilter.h to check that the eigenvectors for each > pixel are aligned after checking that they are touching > > itkBinaryShapeKeepNObjectsImageFilter.h to simply pass the hessian into the > LabelMapFilter. > > The problem is that I need to include a image that contains the hessian for > each pixel along with the normal input image, so that the KeepNObjects > filter can send it down to the LabelMapFilter and then to the > EigenAnalysisFilter. However, none of the methods I have tried to get the > hessian image into the filters work, and I do not understand how to allow > for this second input. > > So far I have tried modifying the template as follows > > class BinaryVectorConnectedShapeKeepNObjectsImageFilter: > public ImageToImageFilter< TInputImage, THessianImage, TInputImage > > > Combined with using the SetInputX functions as seen in other filters as > follows > > void SetInput1(const TInputImage *image1) > { > this->SetNthInput(0, const_cast ( image1)); > } > > This produces an error of "Too many template arguments". > > I have tried to make the hessian image a member variable and to use the > normal Get/Set macros, but that also produces errors of being unable to > convert between types when the function is used in main. > > I have also tried to simply define a new function to set the Hessian, like > such > > void SetHessian(HessianImageType::Pointer hessianImage) > { > m_HessianImage = hessianImage; > } > > And alternate versions with different input arguments, which include "const > HessianImage *hessianImage". These also run into errors where it won't > covert between types when I use the function in main. > > I have looked around at different filters that have multiple inputs, and all > of them seem to be based on Functors/the BinaryFunctorImageFilter, but I am > very unsure of how I would go about modifying the filters, and have very > little experience with Functors. Also, the arguments for the other filters > based on Functors all seem to include an operator as a fourth argument, and > I do not want to perform any operations on the Hessian until the > SymmetricAnalysis filter. > > Does anyone know how I could set this second input simply, or could point me > to an example that does similar? > > Best regards, > Michael Pinkert > > > > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-Users-Multiple-Inputs-of-different-types-tp7586810.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From nhadar at surgicaltheater.net Wed Jan 21 17:04:06 2015 From: nhadar at surgicaltheater.net (Nissim Hadar) Date: Wed, 21 Jan 2015 15:04:06 -0700 (MST) Subject: [ITK] [ITK-users] Vessel Segmentation In-Reply-To: <1421862606723-35144.post@n7.nabble.com> References: <1421275248945-35113.post@n7.nabble.com> <1421306921950-35117.post@n7.nabble.com> <1421430195087-35133.post@n7.nabble.com> <1421862606723-35144.post@n7.nabble.com> Message-ID: <1421877846342-35151.post@n7.nabble.com> Thanks! I now have the vessel segmentation working with my format (a sub-volume of shorts extracted from the DICOM) - and can see the results in my 3D viewer (see http://surgicaltheater.net if it interests you) . The issue I have now is settup up the parameters. I have noticed that the algorithm is very sensitive to gamma; the rest I am not sure of yet. Cheers -- View this message in context: http://itk-users.7.n7.nabble.com/Vessel-Segmentation-tp35113p35151.html Sent from the ITK - Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Wed Jan 21 17:25:12 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 21 Jan 2015 17:25:12 -0500 Subject: [ITK] Opportunities to share, discuss, design, and learn with other ITK community members Message-ID: There are a couple of upcoming opportunities to share, discuss, design, and learn with your fellow ITK community members. On Thursday (tomorrow), 1:00 PM Eastern USA time, there will be a Google+ Hangout where we will be doing code reviews: https://plus.google.com/events/cjudsaidlnb7v4tpiob79q92n8s On Friday, 11:00 AM Eastern USA time, an ITK development conference, https://plus.google.com/events/c4jvg33epbvaldg25skbm81fag4 For those that cannot join via Hangout, telephone call-in is also possible. Dial: 585-632-6296 Enter pin: 31423 To get regular invites to these events, join the ITK Bar Camp G+ Community: https://plus.google.com/u/0/communities/111375098792764998322 All are welcome. Hope to talk to you then! From grothausmann.roman at mh-hannover.de Thu Jan 22 05:21:34 2015 From: grothausmann.roman at mh-hannover.de (Dr. Roman Grothausmann) Date: Thu, 22 Jan 2015 11:21:34 +0100 Subject: [ITK] [ITK-users] compile itk (VTKGlue ON) with vtk from paraview Message-ID: <54C0CF2E.3060106@mh-hannover.de> Dear mailing list members, What configuration is needed to compile itk (4.6.1) with VTKGlue enabled with vtk from paraview (4.3.1) in order to compile Paraview plugins making use of ITK and VTK? If I configure ITK to with: BUILD_SHARED_LIBS ON Module_ITKVtkGlue ON VTK_DIR /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 cmake complains about a missing VTKTargets.cmake even though PARAVIEW_INSTALL_DEVELOPMENT_FILES was set to ON. After a cp VTK/VTKTargets.cmake /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3/ cmake is happy but I get linker errors at the end of the compilation of ITK when the VTKGlue is due: Linking CXX shared library ../../../../lib/libITKVtkGlue-4.6.so /usr/bin/ld: cannot find -lvtkSciberQuest /usr/bin/ld: cannot find -lvtkEyeDomeLighting /usr/bin/ld: cannot find -lvtkQvis /usr/bin/ld: cannot find -lvtkPointSpriteRendering /usr/bin/ld: cannot find -lvtkPVPythonCatalyst /usr/bin/ld: cannot find -lvtkPointSpriteGraphics /usr/bin/ld: cannot find -lvtkUtilitiesPythonInitializer Switching off all PV plugin builds only leaves: Linking CXX shared library ../../../../lib/libITKVtkGlue-4.6.so /usr/bin/ld: cannot find -lvtkPVPythonCatalyst /usr/bin/ld: cannot find -lvtkUtilitiesPythonInitializer However, the files are there: find /opt/paraview-4.3.1_git/ -name '*vtkPVPythonCatalyst*so*' /opt/paraview-4.3.1_git/lib/paraview-4.3/site-packages/vtk/vtkPVPythonCatalystPython.so /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalyst-pv4.3.so.1 /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalystPython27D-pv4.3.so.1 /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalyst-pv4.3.so /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalystPython27D-pv4.3.so find /opt/paraview-4.3.1_git/ -name '*vtkUtilitiesPythonInitializer*so*' /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkUtilitiesPythonInitializer-pv4.3.so.1 /opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkUtilitiesPythonInitializer-pv4.3.so Adding the abs. file locations to the build command does not help nor does -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ Using the build dir of VTK in PV-tree instead for ITK does not help either: VTK_DIR /opt/compilation/ParaView-v4.3.1/build/VTK If I configure ITK to with: BUILD_SHARED_LIBS OFF I get linker errors in the last stage when compiling a PV plugin that makes use of VTK and ITK: /usr/bin/ld: /opt/compilation/InsightToolkit-4.6.1/build/lib/libitkvnl_algo-4.6.a(vnl_real_eigensystem.cxx.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /opt/compilation/InsightToolkit-4.6.1/build/lib/libitkvnl_algo-4.6.a: could not read symbols: Bad value After I've added CMAKE_CXX_FLAGS -fPIC to Paraview and ITK and recompiled both I get: /usr/bin/ld: /opt/compilation/InsightToolkit-4.6.1/build/lib/libitkv3p_netlib-4.6.a(dlamch.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /opt/compilation/InsightToolkit-4.6.1/build/lib/libitkv3p_netlib-4.6.a: could not read symbols: Bad value What am I missing in my configuration of PV and ITK? When and where should I specify: CMAKE_CXX_FLAGS -fPIC BUILD_SHARED_LIBS ON/OFF Is this the right VTK_DIR specification for ITK: /opt/compilation/ParaView-v4.3.1/build/VTK or /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 Many thanks for any help or hints. Roman -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From rbar9508 at uni.sydney.edu.au Thu Jan 22 18:02:32 2015 From: rbar9508 at uni.sydney.edu.au (rbar9508 at uni.sydney.edu.au) Date: Thu, 22 Jan 2015 23:02:32 +0000 Subject: [ITK] [ITK-users] NucMed DICOM slice thickness Message-ID: <1421967755984.90298@uni.sydney.edu.au> ITK seems to be misinterpreting the slice thickness reported in reconstructed nuc med images. The problem is that the slice thickness is being set to 1mm for some reason. This wasn't a problem for ITK version 3.14, but it seems to have started to occur with versions 4.4.2 and 4.7.0 - probably since GDCM was merged into the ITK project. The slice thickness tag is 0018,0050. What's the best workaround if I want to use ITK version 4? Thanks Robbie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Thu Jan 22 19:01:16 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 22 Jan 2015 19:01:16 -0500 Subject: [ITK] [ITK-users] NucMed DICOM slice thickness In-Reply-To: <1421967755984.90298@uni.sydney.edu.au> References: <1421967755984.90298@uni.sydney.edu.au> Message-ID: Hi Robbie, This slice thickness, how thick the slab of tissue is that is irradiated, is different from the spacing between slices -- the slice thickness tag should not be used for spacing. However, to override this, use the ChangeInformationImageFilter with the slice thickness taken from the MetaDataDictionary. Hope this helps, Matt On Thu, Jan 22, 2015 at 6:02 PM, rbar9508 at uni.sydney.edu.au wrote: > > ITK seems to be misinterpreting the slice thickness reported in > reconstructed nuc med images. The problem is that the slice thickness is > being set to 1mm for some reason. > > > This wasn't a problem for ITK version 3.14, but it seems to have started to > occur with versions 4.4.2 and 4.7.0 - probably since GDCM was merged into > the ITK project. > > > The slice thickness tag is 0018,0050. > > > What's the best workaround if I want to use ITK version 4? > > > Thanks > > > Robbie > > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From rbar9508 at uni.sydney.edu.au Thu Jan 22 19:19:14 2015 From: rbar9508 at uni.sydney.edu.au (rbar9508 at uni.sydney.edu.au) Date: Fri, 23 Jan 2015 00:19:14 +0000 Subject: [ITK] [ITK-users] NucMed DICOM slice thickness In-Reply-To: References: <1421967755984.90298@uni.sydney.edu.au>, Message-ID: Thanks Matt. Actually, it looks like both slice spacing and slice thickness are set to 2.697mm for this particular spect recon image. It looks like it is in accordance with the nuc med IOD. Sent from my iPad > On 23 Jan 2015, at 11:01 am, "Matt McCormick" wrote: > > Hi Robbie, > > This slice thickness, how thick the slab of tissue is that is > irradiated, is different from the spacing between slices -- the slice > thickness tag should not be used for spacing. However, to override > this, use the ChangeInformationImageFilter with the slice thickness > taken from the MetaDataDictionary. > > Hope this helps, > Matt > > On Thu, Jan 22, 2015 at 6:02 PM, rbar9508 at uni.sydney.edu.au > wrote: >> >> ITK seems to be misinterpreting the slice thickness reported in >> reconstructed nuc med images. The problem is that the slice thickness is >> being set to 1mm for some reason. >> >> >> This wasn't a problem for ITK version 3.14, but it seems to have started to >> occur with versions 4.4.2 and 4.7.0 - probably since GDCM was merged into >> the ITK project. >> >> >> The slice thickness tag is 0018,0050. >> >> >> What's the best workaround if I want to use ITK version 4? >> >> >> Thanks >> >> >> Robbie >> >> >> >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users >> _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From grothausmann.roman at mh-hannover.de Fri Jan 23 04:20:29 2015 From: grothausmann.roman at mh-hannover.de (Dr. Roman Grothausmann) Date: Fri, 23 Jan 2015 10:20:29 +0100 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: <54C0CF2E.3060106@mh-hannover.de> References: <54C0CF2E.3060106@mh-hannover.de> Message-ID: <54C2125D.7090801@mh-hannover.de> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: > Adding the abs. file locations to the build command does not help nor does > -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so which seems to be the reason why the linker does not find them. If I create symbolic links to these files without the extension: cd /opt/compilation/paraview-git_build/lib/ for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS the compilation of ITK succeeds. I wonder, is that the way it's meant to be done? > What am I missing in my configuration of PV and ITK? > > When and where should I specify: > CMAKE_CXX_FLAGS -fPIC > BUILD_SHARED_LIBS ON/OFF > > Is this the right VTK_DIR specification for ITK: > /opt/compilation/ParaView-v4.3.1/build/VTK > or > /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 > > > > Many thanks for any help or hints. > Roman > > -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From jcarrasco79 at gmail.com Fri Jan 23 07:29:47 2015 From: jcarrasco79 at gmail.com (=?UTF-8?Q?JOSE_ANTONIO_P=C3=89REZ_CARRASCO?=) Date: Fri, 23 Jan 2015 13:29:47 +0100 Subject: [ITK] DOUBT USING RGB Image Color Space Transformations Message-ID: Dear all, I?m Jos? Antonio P?rez, assistant professor in the Univ. of Seville. Last week I downloaded the code provided by you from " http://www.insight-journal.org/browse/publication/780" implementing RGB Image Color Space Transformations. The code separate an image into its three components in different color spaces. I have the following problem: 1.- I have tried to compose a 3D image using the three LAB components obtained using the provided code. But I?ve been unable. These are some lines of my code (not all of them): const unsigned int Dimension3 = 2; typedef itk::RGBPixel RGBPixelType; typedef unsigned char SimplePixelType3; typedef itk::Image< SimplePixelType3, Dimension3> CharImageType; typedef itk::Image RGBImageType; typedef itk::ComposeRGBImageFilter ComposeRGBType15; ComposeRGBType15::Pointer rgb16 = ComposeRGBType15::New(); typedef itk::VectorIndexSelectionCastImageFilter VectorCastFilterType12; VectorCastFilterType12::Pointer vectorCastFilter13 = VectorCastFilterType12::New(); vectorCastFilter13->SetIndex(0); vectorCastFilter13->SetInput(rgbToLabAdaptor10); vectorCastFilter13->SetInput(rgbToLabAdaptor10); vectorCastFilter13->SetIndex(0); rgb16->SetInput1(vectorCastFilter13->GetOutput()); vectorCastFilter13->SetIndex(1); rgb16->SetInput2(vectorCastFilter13->GetOutput()); vectorCastFilter13->SetIndex(2); rgb16->SetInput3(vectorCastFilter13->GetOutput()); RGBWriterType::Pointer writer15 = RGBWriterType::New(); writer15->SetFileName(imageOutname); writer15->SetInput( rgb16->GetOutput() ); writer15->Update(); The problem is that I get a 3D gray scale image with the gray image contained in vectorCastFilter13->SetIndex(2); Would you know how can I combine the three components LAB within a color image? What am I doing wrong? The only way I managed to do it correctly was creating three different vectorCastFilters and selecting a different index for each one, and then combining them inside rgb16, but that implies three computations of the LAB transformation. I would very much appreciate your help. Yours faithfully, Jose-Antonio -- ------------------------------------------------------ JOSE ANTONIO P?REZ CARRASCO Dpto de Teor?a de la Se?al y Comunicaciones Escuela Superior de Ingenieros Universidad de Sevilla, tfno: +34954487333 email: jperez2 at us.es jcarrasco79 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Fri Jan 23 08:31:47 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Fri, 23 Jan 2015 08:31:47 -0500 Subject: [ITK] [ITK-users] FastMarching UpwindGradient Filters difference In-Reply-To: <3C7C228B-B1B1-4DF5-8CFF-06F82A542FD6@gmail.com> References: <02EFACE9-9946-4546-9403-1A2709CB7B41@mail.nih.gov> <3C7C228B-B1B1-4DF5-8CFF-06F82A542FD6@gmail.com> Message-ID: Arnaud, Thanks for the info on this. I am looked through the code in the FastMarchingImageFilterBase [1], it looks like its using std::vector a surprising number of times, and that it is getting re-allocated very frequently. Some cases look like they should be stack allocated templated array. Do you know why this class is this way? This may be the reason why it's so slow in debug mode, i.e. too much dynamic allocation on a per-pixel basis. Brad [1] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/FastMarching/include/itkFastMarchingImageFilterBase.hxx On Jan 21, 2015, at 9:33 AM, Arnaud Gelas wrote: > Hi Brad, > > FastMarchingUpwindGradientImageFilter is from ITKv3 while the other one is from ITKv4. Note that in terms of features, FastMarchingUpwiindGradientImageFilter would be a subset of the ?Base" one? > > Arnaud > > > >> On 21 Jan 2015, at 15:09, Bradley Lowekamp wrote: >> >> Hello, >> >> I am trying to figure out the difference between the FastMarchingUpwindGradientImageFilterBase[1] and the FastMarchingUpwindGradientImageFilter[2]. >> >> The first thing to notice is that the "Base" class is NOT a parent of the other. Secondly, the non-Base implements a stopping criteria of reaching a number of target nodes. This is now incorporated as an optional stopping criteria [3], in the framework. Then both of the filters add the upwind gradient image as an output, with what appears to be duplicated code. >> >> I don't see a real difference here. I think one should be deprecated. >> >> Brad >> >> [1] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilterBase.html >> [2] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html >> [3] http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingReachedTargetNodesStoppingCriterion.html > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From taylor at braun-jones.org Fri Jan 23 09:43:30 2015 From: taylor at braun-jones.org (Taylor Braun-Jones) Date: Fri, 23 Jan 2015 09:43:30 -0500 Subject: [ITK] [ITK-users] Implementation of DBSCAN clustering algorithm in ITK Message-ID: Hello insight-users, Does ITK include an implementation of the DBSCAN algorithm[1] or are there plans to add one? Searching through the code didn't turn anything up, but maybe I missed it. Thanks, Taylor [1] http://en.wikipedia.org/wiki/DBSCAN -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From flymolo at gmail.com Fri Jan 23 10:29:37 2015 From: flymolo at gmail.com (Jonathan Grimm) Date: Fri, 23 Jan 2015 10:29:37 -0500 Subject: [ITK] [ITK-users] Job opening Message-ID: Our lab is looking for a programmer. We use Fiji and ITK heavily. Job flyer is linked below. Also check out the rest of website, we do microscopy and have collaborations to do Optical Coherence Tomography and MRI. http://ocularbiomechanics.com/pdfs/ProgrammerJobFlyer.pdf -- Sometimes it's hard to tell the dancer from the dance - Corwin in CoC -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 23 10:44:18 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 23 Jan 2015 10:44:18 -0500 Subject: [ITK] [ITK-users] Implementation of DBSCAN clustering algorithm in ITK In-Reply-To: References: Message-ID: Hi Taylor, I think this algorithm would be great to have! Thanks, Matt On Fri, Jan 23, 2015 at 9:43 AM, Taylor Braun-Jones wrote: > Hello insight-users, > > Does ITK include an implementation of the DBSCAN algorithm[1] or are there > plans to add one? Searching through the code didn't turn anything up, but > maybe I missed it. > > Thanks, > Taylor > > [1] http://en.wikipedia.org/wiki/DBSCAN > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From taylor at braun-jones.org Fri Jan 23 12:14:24 2015 From: taylor at braun-jones.org (Taylor Braun-Jones) Date: Fri, 23 Jan 2015 12:14:24 -0500 Subject: [ITK] [ITK-users] Implementation of DBSCAN clustering algorithm in ITK In-Reply-To: References: Message-ID: Maybe Nico (from the MITK team) can help :-) Nico, Would you be interested in converting mitk::UnstructuredGridClusteringFilter into a (templated) ITK filter and having it live upstream in ITK? On Fri, Jan 23, 2015 at 10:44 AM, Matt McCormick wrote: > Hi Taylor, > > I think this algorithm would be great to have! > > Thanks, > Matt > > On Fri, Jan 23, 2015 at 9:43 AM, Taylor Braun-Jones > wrote: > > Hello insight-users, > > > > Does ITK include an implementation of the DBSCAN algorithm[1] or are > there > > plans to add one? Searching through the code didn't turn anything up, but > > maybe I missed it. > > > > Thanks, > > Taylor > > > > [1] http://en.wikipedia.org/wiki/DBSCAN > > > > _____________________________________ > > 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://public.kitware.com/mailman/listinfo/insight-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Fri Jan 23 12:15:45 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 23 Jan 2015 12:15:45 -0500 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: <54C2125D.7090801@mh-hannover.de> References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> Message-ID: Hi Roman, Thanks for looking into the issue and reporting it to the mailing list. Paraview should be installing VTKTargets.cmake, which tells the build system where to find the libraries. Note that there might be two VTKTargets.cmake files that are generated -- one for the build tree and one for the install tree. HTH, Matt On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann wrote: > > On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >> >> Adding the abs. file locations to the build command does not help nor does >> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ > > > I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so > which seems to be the reason why the linker does not find them. If I create > symbolic links to these files without the extension: > > cd /opt/compilation/paraview-git_build/lib/ > for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done > > and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS > the compilation of ITK succeeds. > > I wonder, is that the way it's meant to be done? > > > >> What am I missing in my configuration of PV and ITK? >> >> When and where should I specify: >> CMAKE_CXX_FLAGS -fPIC >> BUILD_SHARED_LIBS ON/OFF >> >> Is this the right VTK_DIR specification for ITK: >> /opt/compilation/ParaView-v4.3.1/build/VTK >> or >> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >> >> >> >> Many thanks for any help or hints. >> Roman >> >> > > -- > Dr. Roman Grothausmann > > Tomographie und Digitale Bildverarbeitung > Tomography and Digital Image Analysis > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > Medizinische Hochschule Hannover > Carl-Neuberg-Str. 1 > D-30625 Hannover > > Tel. +49 511 532-9574 > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mpinkert at wisc.edu Fri Jan 23 14:36:21 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Fri, 23 Jan 2015 12:36:21 -0700 (MST) Subject: [ITK] [ITK-users] Visual Studio 2010 Express autocomplete IntelliSense not working with ITK 4.8.0 Message-ID: <1422041781731-7586829.post@n2.nabble.com> Hi all, I recently upgraded my install of ITK from 4.5 to 4.8, but it seems to have broken IntelliSense in Microsoft Visual Studio 2010. The editor will not autocomplete functions anymore or give a list of options, making it much more cumbersome to write code. Normally it will give a list of options after :: or -> commands, but now I simply get the error: IntelliSense: 'No additional information available' (See Troubleshooting IntelliSense in C++ Projects' for further help) I am still given a list of included .h files when I use #include, and I can also right click on declared types to go to the appropriate header files, but it does not autocomplete otherwise, so the program is locating the files correctly. The faq page of "Troubleshooting IntelliSense in C++ projects" has not been helpful. Does anyone have experience with a bug like this? Best regards, Michael Pinkert -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Visual-Studio-2010-Express-autocomplete-IntelliSense-not-working-with-ITK-4-8-0-tp7586829.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From dzenanz at gmail.com Fri Jan 23 16:31:17 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Fri, 23 Jan 2015 16:31:17 -0500 Subject: [ITK] [ITK-users] Visual Studio 2010 Express autocomplete IntelliSense not working with ITK 4.8.0 In-Reply-To: <1422041781731-7586829.post@n2.nabble.com> References: <1422041781731-7586829.post@n2.nabble.com> Message-ID: I do remember occasionally have such issues with template-heavy code, mostly (earlier) versions of ITK. That was years ago. Newer versions of Visual Studio handle templated code much better. Newest free VS works well with ITK. On Fri, Jan 23, 2015 at 2:36 PM, Michael Pinkert wrote: > Hi all, > > I recently upgraded my install of ITK from 4.5 to 4.8, but it seems to have > broken IntelliSense in Microsoft Visual Studio 2010. > > The editor will not autocomplete functions anymore or give a list of > options, making it much more cumbersome to write code. Normally it will > give a list of options after :: or -> commands, but now I simply get the > error: > > IntelliSense: 'No additional information available' (See Troubleshooting > IntelliSense in C++ Projects' for further help) > > I am still given a list of included .h files when I use #include, and I can > also right click on declared types to go to the appropriate header files, > but it does not autocomplete otherwise, so the program is locating the > files > correctly. > > The faq page of "Troubleshooting IntelliSense in C++ projects" has not been > helpful. > > Does anyone have experience with a bug like this? > > Best regards, > Michael Pinkert > > > > -- > View this message in context: > http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Visual-Studio-2010-Express-autocomplete-IntelliSense-not-working-with-ITK-4-8-0-tp7586829.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From elena.bresciani87 at gmail.com Mon Jan 26 03:44:48 2015 From: elena.bresciani87 at gmail.com (gmail) Date: Mon, 26 Jan 2015 09:44:48 +0100 Subject: [ITK] [ITK-users] Management of big datasets Message-ID: Hi everybody, I?m having issues with a project that requires using 3D datasets up to 4-5 GB without subsampling. The pipeline is something like this: ImageFileReader -> IntensityWindowingImageFilterType -> MedianImageFilter -> ScalarImageKmeansImageFilter -> RelabelComponentImageFilter -> RescaleIntensityImageFilter -> ImageSeriesWriter I was getting std::bad_alloc error but I solved this problem with -> ReleaseDataFlagOn() for each filter of the pipeline. My code runs well till the end and all the images of the output stack are written but after only 170 images (of a total of 1990) are written correctly whilst the others have only black pixels. Any guess on what could be the problem? Maybe I should use ImageFileWriter instead of ImageSeriesWriter? Best regards Elena -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From grothausmann.roman at mh-hannover.de Mon Jan 26 04:02:20 2015 From: grothausmann.roman at mh-hannover.de (Dr. Roman Grothausmann) Date: Mon, 26 Jan 2015 10:02:20 +0100 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> Message-ID: <54C6029C.4040600@mh-hannover.de> Hi Matt, Thank You very much for Your reply. I can only find one VTKTargets.cmake in /opt/compilation/paraview-git_build/VTK/ It seems though that it is lacking the relevant entries for the libraries that troubled me, e.g. vtkPVPythonCatalyst and vtkUtilitiesPythonInitializer. I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what installation instructions should I give there? Will the testing environment be able to compile this plugin and its tests or should I disable automatic testing for this contribution? Many thanks for looking into this. Roman On 23/01/15 18:15, Matt McCormick wrote: > Hi Roman, > > Thanks for looking into the issue and reporting it to the mailing list. > > Paraview should be installing VTKTargets.cmake, which tells the build > system where to find the libraries. Note that there might be two > VTKTargets.cmake files that are generated -- one for the build tree > and one for the install tree. > > HTH, > Matt > > On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann > wrote: >> >> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >>> >>> Adding the abs. file locations to the build command does not help nor does >>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ >> >> >> I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so >> which seems to be the reason why the linker does not find them. If I create >> symbolic links to these files without the extension: >> >> cd /opt/compilation/paraview-git_build/lib/ >> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done >> >> and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS >> the compilation of ITK succeeds. >> >> I wonder, is that the way it's meant to be done? >> >> >> >>> What am I missing in my configuration of PV and ITK? >>> >>> When and where should I specify: >>> CMAKE_CXX_FLAGS -fPIC >>> BUILD_SHARED_LIBS ON/OFF >>> >>> Is this the right VTK_DIR specification for ITK: >>> /opt/compilation/ParaView-v4.3.1/build/VTK >>> or >>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >>> >>> >>> >>> Many thanks for any help or hints. >>> Roman >>> >>> >> >> -- >> Dr. Roman Grothausmann >> >> Tomographie und Digitale Bildverarbeitung >> Tomography and Digital Image Analysis >> >> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >> Medizinische Hochschule Hannover >> Carl-Neuberg-Str. 1 >> D-30625 Hannover >> >> Tel. +49 511 532-9574 >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 26 09:39:23 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 26 Jan 2015 09:39:23 -0500 Subject: [ITK] [ITK-users] Management of big datasets In-Reply-To: References: Message-ID: Hi Elena, Using ImageFileWriter might help debug the problem. Or, ensuring that all the data is being processed incrementally along each stage of the pipeline can help. Also, it is recommended to conclude each pipeline with ->UpdateLargestPossibleRegion(); instead of just ->Update(); which helps with some subtle pipeline issues. Please keep us posted on your progress. Thanks, Matt On Mon, Jan 26, 2015 at 3:44 AM, gmail wrote: > Hi everybody, > > I?m having issues with a project that requires using 3D datasets up to 4-5 > GB without subsampling. > The pipeline is something like this: > > ImageFileReader -> IntensityWindowingImageFilterType -> MedianImageFilter -> > ScalarImageKmeansImageFilter -> RelabelComponentImageFilter -> > RescaleIntensityImageFilter -> ImageSeriesWriter > > I was getting std::bad_alloc error but I solved this problem with -> > ReleaseDataFlagOn() for each filter of the pipeline. > > My code runs well till the end and all the images of the output stack are > written but after only 170 images (of a total of 1990) are written correctly > whilst the others have only black pixels. > > Any guess on what could be the problem? Maybe I should use ImageFileWriter > instead of ImageSeriesWriter? > > Best regards > > Elena > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From blowekamp at mail.nih.gov Mon Jan 26 09:43:36 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Mon, 26 Jan 2015 09:43:36 -0500 Subject: [ITK] [ITK-users] Management of big datasets In-Reply-To: References: Message-ID: Hello, It looks like this should work. What OS, compiler, architecture are you using? How much memory is on the system you are using? We need to narrow down where the problem is occurring. Here are some suggestions to track down and to figure out where the problem is: Your though of switching to a ImageFileWirter is reasonable. My goto format it mha, as I have written the most tests for that IO, and have the highest confidence there. Does this pipeline work with smaller data? Perhaps just run your data through the BInShrinkFilter in stead of Median? I have used most of these filters with large data, and expect them to work very well. But I have not used the ScalarImageKmeans so much. Try replacing it with the MultiOtsu. Also write out some intermediate image to see where the image processing is going awry. Hope that helps, Brad On Jan 26, 2015, at 3:44 AM, gmail wrote: > Hi everybody, > > I?m having issues with a project that requires using 3D datasets up to 4-5 GB without subsampling. > The pipeline is something like this: > > ImageFileReader -> IntensityWindowingImageFilterType -> MedianImageFilter -> ScalarImageKmeansImageFilter -> RelabelComponentImageFilter -> RescaleIntensityImageFilter -> ImageSeriesWriter > > I was getting std::bad_alloc error but I solved this problem with -> ReleaseDataFlagOn() for each filter of the pipeline. > > My code runs well till the end and all the images of the output stack are written but after only 170 images (of a total of 1990) are written correctly whilst the others have only black pixels. > > Any guess on what could be the problem? Maybe I should use ImageFileWriter instead of ImageSeriesWriter? > > Best regards > > Elena > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 26 11:54:53 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 26 Jan 2015 11:54:53 -0500 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: <54C6029C.4040600@mh-hannover.de> References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> <54C6029C.4040600@mh-hannover.de> Message-ID: Hi Roman, Thanks for the update. Great to hear about the Midas Journal article! I do not think the Midas Journal will be able to build your plugin. I would recommend creating build instructions to build against a ParaView build tree. I have just verified that ITK builds with the ITKVtkGlue module ON when pointing VTK_DIR to the /VTK directory. I don't see the install tree VTKTargets.cmake file in my ParaView build, either. In the long term, the ParaView CMake configuration should be corrected. HTH, Matt On Mon, Jan 26, 2015 at 4:02 AM, Dr. Roman Grothausmann wrote: > Hi Matt, > > > Thank You very much for Your reply. > I can only find one VTKTargets.cmake in > /opt/compilation/paraview-git_build/VTK/ > It seems though that it is lacking the relevant entries for the libraries > that troubled me, e.g. vtkPVPythonCatalyst and > vtkUtilitiesPythonInitializer. > > I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what > installation instructions should I give there? > Will the testing environment be able to compile this plugin and its tests or > should I disable automatic testing for this contribution? > > Many thanks for looking into this. > Roman > > > On 23/01/15 18:15, Matt McCormick wrote: >> >> Hi Roman, >> >> Thanks for looking into the issue and reporting it to the mailing list. >> >> Paraview should be installing VTKTargets.cmake, which tells the build >> system where to find the libraries. Note that there might be two >> VTKTargets.cmake files that are generated -- one for the build tree >> and one for the install tree. >> >> HTH, >> Matt >> >> On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann >> wrote: >>> >>> >>> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >>>> >>>> >>>> Adding the abs. file locations to the build command does not help nor >>>> does >>>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ >>> >>> >>> >>> I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so >>> which seems to be the reason why the linker does not find them. If I >>> create >>> symbolic links to these files without the extension: >>> >>> cd /opt/compilation/paraview-git_build/lib/ >>> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done >>> >>> and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS >>> the compilation of ITK succeeds. >>> >>> I wonder, is that the way it's meant to be done? >>> >>> >>> >>>> What am I missing in my configuration of PV and ITK? >>>> >>>> When and where should I specify: >>>> CMAKE_CXX_FLAGS -fPIC >>>> BUILD_SHARED_LIBS ON/OFF >>>> >>>> Is this the right VTK_DIR specification for ITK: >>>> /opt/compilation/ParaView-v4.3.1/build/VTK >>>> or >>>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >>>> >>>> >>>> >>>> Many thanks for any help or hints. >>>> Roman >>>> >>>> >>> >>> -- >>> Dr. Roman Grothausmann >>> >>> Tomographie und Digitale Bildverarbeitung >>> Tomography and Digital Image Analysis >>> >>> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >>> Medizinische Hochschule Hannover >>> Carl-Neuberg-Str. 1 >>> D-30625 Hannover >>> >>> Tel. +49 511 532-9574 >>> _____________________________________ >>> 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://public.kitware.com/mailman/listinfo/insight-users > > > -- > Dr. Roman Grothausmann > > Tomographie und Digitale Bildverarbeitung > Tomography and Digital Image Analysis > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > Medizinische Hochschule Hannover > Carl-Neuberg-Str. 1 > D-30625 Hannover > > Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 26 12:03:33 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 26 Jan 2015 12:03:33 -0500 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> <54C6029C.4040600@mh-hannover.de> Message-ID: PS. Another option is to compile / install VTK separately outside of ParaView. This may be a better approach. It is a little tricky to configure ParaView in this way. See: http://www.paraview.org/gitweb?p=ParaView.git;a=blob;f=CMakeLists.txt;h=d80ff535090edc1fa9520d39aa66d269fc1db8b3;hb=HEAD#l516 On Mon, Jan 26, 2015 at 11:54 AM, Matt McCormick wrote: > Hi Roman, > > Thanks for the update. Great to hear about the Midas Journal article! > > I do not think the Midas Journal will be able to build your plugin. > > I would recommend creating build instructions to build against a > ParaView build tree. I have just verified that ITK builds with the > ITKVtkGlue module ON when pointing VTK_DIR to the /VTK > directory. > > I don't see the install tree VTKTargets.cmake file in my ParaView > build, either. In the long term, the ParaView CMake configuration > should be corrected. > > HTH, > Matt > > On Mon, Jan 26, 2015 at 4:02 AM, Dr. Roman Grothausmann > wrote: >> Hi Matt, >> >> >> Thank You very much for Your reply. >> I can only find one VTKTargets.cmake in >> /opt/compilation/paraview-git_build/VTK/ >> It seems though that it is lacking the relevant entries for the libraries >> that troubled me, e.g. vtkPVPythonCatalyst and >> vtkUtilitiesPythonInitializer. >> >> I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what >> installation instructions should I give there? >> Will the testing environment be able to compile this plugin and its tests or >> should I disable automatic testing for this contribution? >> >> Many thanks for looking into this. >> Roman >> >> >> On 23/01/15 18:15, Matt McCormick wrote: >>> >>> Hi Roman, >>> >>> Thanks for looking into the issue and reporting it to the mailing list. >>> >>> Paraview should be installing VTKTargets.cmake, which tells the build >>> system where to find the libraries. Note that there might be two >>> VTKTargets.cmake files that are generated -- one for the build tree >>> and one for the install tree. >>> >>> HTH, >>> Matt >>> >>> On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann >>> wrote: >>>> >>>> >>>> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >>>>> >>>>> >>>>> Adding the abs. file locations to the build command does not help nor >>>>> does >>>>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ >>>> >>>> >>>> >>>> I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so >>>> which seems to be the reason why the linker does not find them. If I >>>> create >>>> symbolic links to these files without the extension: >>>> >>>> cd /opt/compilation/paraview-git_build/lib/ >>>> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done >>>> >>>> and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS >>>> the compilation of ITK succeeds. >>>> >>>> I wonder, is that the way it's meant to be done? >>>> >>>> >>>> >>>>> What am I missing in my configuration of PV and ITK? >>>>> >>>>> When and where should I specify: >>>>> CMAKE_CXX_FLAGS -fPIC >>>>> BUILD_SHARED_LIBS ON/OFF >>>>> >>>>> Is this the right VTK_DIR specification for ITK: >>>>> /opt/compilation/ParaView-v4.3.1/build/VTK >>>>> or >>>>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >>>>> >>>>> >>>>> >>>>> Many thanks for any help or hints. >>>>> Roman >>>>> >>>>> >>>> >>>> -- >>>> Dr. Roman Grothausmann >>>> >>>> Tomographie und Digitale Bildverarbeitung >>>> Tomography and Digital Image Analysis >>>> >>>> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >>>> Medizinische Hochschule Hannover >>>> Carl-Neuberg-Str. 1 >>>> D-30625 Hannover >>>> >>>> Tel. +49 511 532-9574 >>>> _____________________________________ >>>> 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://public.kitware.com/mailman/listinfo/insight-users >> >> >> -- >> Dr. Roman Grothausmann >> >> Tomographie und Digitale Bildverarbeitung >> Tomography and Digital Image Analysis >> >> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >> Medizinische Hochschule Hannover >> Carl-Neuberg-Str. 1 >> D-30625 Hannover >> >> Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From alexandra-judisch at uiowa.edu Mon Jan 26 12:04:46 2015 From: alexandra-judisch at uiowa.edu (Judisch, Alexandra L) Date: Mon, 26 Jan 2015 17:04:46 +0000 Subject: [ITK] [ITK-users] Image Size [0, 0, 0] Message-ID: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> Hi all! I am trying to write code to downsample an image using the resample image filter. The problem is that the program keeps failing because it is reading the image size as [0, 0, 0] which is obviously not the case. Has anyone run into this problem before or have any ideas how to fix it? Thanks, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From bill.lorensen at gmail.com Mon Jan 26 12:27:54 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 26 Jan 2015 12:27:54 -0500 Subject: [ITK] [ITK-users] Image Size [0, 0, 0] In-Reply-To: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> References: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> Message-ID: What image format? On Mon, Jan 26, 2015 at 12:04 PM, Judisch, Alexandra L wrote: > Hi all! > I am trying to write code to downsample an image using the resample image > filter. The problem is that the program keeps failing because it is reading > the image size as [0, 0, 0] which is obviously not the case. Has anyone run > into this problem before or have any ideas how to fix it? > Thanks, > Alex > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > -- Unpaid intern in BillsBasement at noware dot com _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From bill.lorensen at gmail.com Mon Jan 26 12:50:24 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 26 Jan 2015 12:50:24 -0500 Subject: [ITK] [ITK-users] Image Size [0, 0, 0] In-Reply-To: References: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> Message-ID: Can you share code that illustrate the problem? On Mon, Jan 26, 2015 at 12:27 PM, Bill Lorensen wrote: > What image format? > > > On Mon, Jan 26, 2015 at 12:04 PM, Judisch, Alexandra L > wrote: >> Hi all! >> I am trying to write code to downsample an image using the resample image >> filter. The problem is that the program keeps failing because it is reading >> the image size as [0, 0, 0] which is obviously not the case. Has anyone run >> into this problem before or have any ideas how to fix it? >> Thanks, >> Alex >> >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users >> > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From bill.lorensen at gmail.com Mon Jan 26 12:57:37 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 26 Jan 2015 12:57:37 -0500 Subject: [ITK] [ITK-users] Image Size [0, 0, 0] In-Reply-To: <15CDF1AC0152924C817C2D5522E0904F329FA93E@ITSNT438.iowa.uiowa.edu> References: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> <15CDF1AC0152924C817C2D5522E0904F329FA93E@ITSNT438.iowa.uiowa.edu> Message-ID: Before input = reader->GetOutput(); apply reader->Update(); On Mon, Jan 26, 2015 at 12:52 PM, Judisch, Alexandra L wrote: > Here it is. > ________________________________________ > From: Bill Lorensen [bill.lorensen at gmail.com] > Sent: Monday, January 26, 2015 11:50 AM > To: Judisch, Alexandra L > Cc: insight-users at itk.org > Subject: Re: [ITK-users] Image Size [0, 0, 0] > > Can you share code that illustrate the problem? > > > On Mon, Jan 26, 2015 at 12:27 PM, Bill Lorensen wrote: >> What image format? >> >> >> On Mon, Jan 26, 2015 at 12:04 PM, Judisch, Alexandra L >> wrote: >>> Hi all! >>> I am trying to write code to downsample an image using the resample image >>> filter. The problem is that the program keeps failing because it is reading >>> the image size as [0, 0, 0] which is obviously not the case. Has anyone run >>> into this problem before or have any ideas how to fix it? >>> Thanks, >>> Alex >>> >>> _____________________________________ >>> 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://public.kitware.com/mailman/listinfo/insight-users >>> >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From bill.lorensen at gmail.com Mon Jan 26 12:58:51 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 26 Jan 2015 12:58:51 -0500 Subject: [ITK] [ITK-users] Image Size [0, 0, 0] In-Reply-To: References: <15CDF1AC0152924C817C2D5522E0904F329FA901@ITSNT438.iowa.uiowa.edu> <15CDF1AC0152924C817C2D5522E0904F329FA93E@ITSNT438.iowa.uiowa.edu> Message-ID: Or instead of resample->SetInput( input ); apply resample->SetInput(reader->GetOutput()); On Mon, Jan 26, 2015 at 12:57 PM, Bill Lorensen wrote: > Before > input = reader->GetOutput(); > apply > reader->Update(); > > > On Mon, Jan 26, 2015 at 12:52 PM, Judisch, Alexandra L > wrote: >> Here it is. >> ________________________________________ >> From: Bill Lorensen [bill.lorensen at gmail.com] >> Sent: Monday, January 26, 2015 11:50 AM >> To: Judisch, Alexandra L >> Cc: insight-users at itk.org >> Subject: Re: [ITK-users] Image Size [0, 0, 0] >> >> Can you share code that illustrate the problem? >> >> >> On Mon, Jan 26, 2015 at 12:27 PM, Bill Lorensen wrote: >>> What image format? >>> >>> >>> On Mon, Jan 26, 2015 at 12:04 PM, Judisch, Alexandra L >>> wrote: >>>> Hi all! >>>> I am trying to write code to downsample an image using the resample image >>>> filter. The problem is that the program keeps failing because it is reading >>>> the image size as [0, 0, 0] which is obviously not the case. Has anyone run >>>> into this problem before or have any ideas how to fix it? >>>> Thanks, >>>> Alex >>>> >>>> _____________________________________ >>>> 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://public.kitware.com/mailman/listinfo/insight-users >>>> >>> >>> >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mpinkert at wisc.edu Mon Jan 26 15:30:40 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Mon, 26 Jan 2015 13:30:40 -0700 (MST) Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 Message-ID: <1422304240599-7586842.post@n2.nabble.com> Hi all, I have been trying to compile ITK on Visual Studio 2013, as I was having problems with the autocomplete IntelliSense in Visual Studio 2010. However, when I try to build ITK I am running into two errors, and do not know what to do about them. Does anyone have experience with the following? Error 1 error C1189: #error : "No native data type can represent a 16-bit integer." C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h 75 1 ITKIOLSM Error 2 error LNK1104: cannot open file '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver Best regards, Michael Pinkert -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 26 15:36:21 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 26 Jan 2015 15:36:21 -0500 Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: <1422304240599-7586842.post@n2.nabble.com> References: <1422304240599-7586842.post@n2.nabble.com> Message-ID: Hi Michael, Did you start with a fresh build tree? Matt On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert wrote: > Hi all, > > I have been trying to compile ITK on Visual Studio 2013, as I was having > problems with the autocomplete IntelliSense in Visual Studio 2010. However, > when I try to build ITK I am running into two errors, and do not know what > to do about them. Does anyone have experience with the following? > > Error 1 error C1189: #error : "No native data type can represent a 16-bit > integer." C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h > 75 1 ITKIOLSM > > Error 2 error LNK1104: cannot open file > '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' > C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver > > Best regards, > Michael Pinkert > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mpinkert at wisc.edu Mon Jan 26 15:44:00 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Mon, 26 Jan 2015 13:44:00 -0700 (MST) Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: References: <1422304240599-7586842.post@n2.nabble.com> Message-ID: <1422305040386-7586844.post@n2.nabble.com> Hi Matt, I am not sure what you mean by fresh build tree. I cleared my cache in CMake and deleted the build folder for my old ITK installation, if that is what you mean. Best regards, Michale Pinkert Matt McCormick-2 wrote > Hi Michael, > > Did you start with a fresh build tree? > > Matt > > On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert < > mpinkert@ > > wrote: >> Hi all, >> >> I have been trying to compile ITK on Visual Studio 2013, as I was having >> problems with the autocomplete IntelliSense in Visual Studio 2010. >> However, >> when I try to build ITK I am running into two errors, and do not know >> what >> to do about them. Does anyone have experience with the following? >> >> Error 1 error C1189: #error : "No native data type can represent >> a 16-bit >> integer." >> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h >> 75 1 ITKIOLSM >> >> Error 2 error LNK1104: cannot open file >> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' >> C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver >> >> Best regards, >> Michael Pinkert >> >> >> >> -- >> View this message in context: >> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html >> Sent from the ITK Insight Users mailing list archive at Nabble.com. >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Mon Jan 26 15:49:23 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Mon, 26 Jan 2015 15:49:23 -0500 Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: <1422305040386-7586844.post@n2.nabble.com> References: <1422304240599-7586842.post@n2.nabble.com> <1422305040386-7586844.post@n2.nabble.com> Message-ID: Hi Michael, Instead of just clearing the cache, it is necessary to delete the entry build tree when switching to a new compiler. HTH, Matt On Mon, Jan 26, 2015 at 3:44 PM, Michael Pinkert wrote: > Hi Matt, > > I am not sure what you mean by fresh build tree. I cleared my cache in > CMake and deleted the build folder for my old ITK installation, if that is > what you mean. > > Best regards, > Michale Pinkert > > > Matt McCormick-2 wrote >> Hi Michael, >> >> Did you start with a fresh build tree? >> >> Matt >> >> On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert < > >> mpinkert@ > >> > wrote: >>> Hi all, >>> >>> I have been trying to compile ITK on Visual Studio 2013, as I was having >>> problems with the autocomplete IntelliSense in Visual Studio 2010. >>> However, >>> when I try to build ITK I am running into two errors, and do not know >>> what >>> to do about them. Does anyone have experience with the following? >>> >>> Error 1 error C1189: #error : "No native data type can represent >>> a 16-bit >>> integer." >>> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h >>> 75 1 ITKIOLSM >>> >>> Error 2 error LNK1104: cannot open file >>> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' >>> C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver >>> >>> Best regards, >>> Michael Pinkert >>> >>> >>> >>> -- >>> View this message in context: >>> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html >>> Sent from the ITK Insight Users mailing list archive at Nabble.com. >>> _____________________________________ >>> 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://public.kitware.com/mailman/listinfo/insight-users >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users > > > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From mpinkert at wisc.edu Tue Jan 27 10:43:26 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Tue, 27 Jan 2015 08:43:26 -0700 (MST) Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: References: <1422304240599-7586842.post@n2.nabble.com> <1422305040386-7586844.post@n2.nabble.com> Message-ID: <1422373406186-7586846.post@n2.nabble.com> Hi Matt, I managed to get ITK built by building to a new folder, but I still do not understand how I am supposed to clear the build tree, as I doubt that is the correct solution. I have googled the term, but I have not found anything that would indicate how I would delete the build tree, if clearing the cache and deleting the build folder do not count. I am still having more errors after trying to build it. The first is an error in the compiler: command-line error: invalid macro definition: ..../ITK/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL.h" The next is related, in that I am still having trouble with the IntelliSense autocomplete not functioning in any of my projects, which was my purpose in updating visual studio. Do you have any experience with these additional errors? I believe the first error may be related to IntelliSense, due to a quick google turning up that error in relation to it, but nothing I've found has told me how to solve it. Best regards, Michael Pinkert Matt McCormick-2 wrote > Hi Michael, > > Instead of just clearing the cache, it is necessary to delete the > entry build tree when switching to a new compiler. > > HTH, > Matt > > On Mon, Jan 26, 2015 at 3:44 PM, Michael Pinkert < > mpinkert@ > > wrote: >> Hi Matt, >> >> I am not sure what you mean by fresh build tree. I cleared my cache in >> CMake and deleted the build folder for my old ITK installation, if that >> is >> what you mean. >> >> Best regards, >> Michale Pinkert >> >> >> Matt McCormick-2 wrote >>> Hi Michael, >>> >>> Did you start with a fresh build tree? >>> >>> Matt >>> >>> On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert < >> >>> mpinkert@ >> >>> > wrote: >>>> Hi all, >>>> >>>> I have been trying to compile ITK on Visual Studio 2013, as I was >>>> having >>>> problems with the autocomplete IntelliSense in Visual Studio 2010. >>>> However, >>>> when I try to build ITK I am running into two errors, and do not know >>>> what >>>> to do about them. Does anyone have experience with the following? >>>> >>>> Error 1 error C1189: #error : "No native data type can >>>> represent >>>> a 16-bit >>>> integer." >>>> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h >>>> 75 1 ITKIOLSM >>>> >>>> Error 2 error LNK1104: cannot open file >>>> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' >>>> C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver >>>> >>>> Best regards, >>>> Michael Pinkert >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html >>>> Sent from the ITK Insight Users mailing list archive at Nabble.com. >>>> _____________________________________ >>>> 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://public.kitware.com/mailman/listinfo/insight-users >>> _____________________________________ >>> 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://public.kitware.com/mailman/listinfo/insight-users >> >> >> >> >> >> -- >> View this message in context: >> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html >> Sent from the ITK Insight Users mailing list archive at Nabble.com. >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586846.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Tue Jan 27 12:45:56 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 27 Jan 2015 12:45:56 -0500 Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: <1422373406186-7586846.post@n2.nabble.com> References: <1422304240599-7586842.post@n2.nabble.com> <1422305040386-7586844.post@n2.nabble.com> <1422373406186-7586846.post@n2.nabble.com> Message-ID: Hi Michael, > I managed to get ITK built by building to a new folder, but I still do not > understand how I am supposed to clear the build tree, as I doubt that is the > correct solution. I have googled the term, but I have not found anything > that would indicate how I would delete the build tree, if clearing the cache > and deleting the build folder do not count. Good to hear it is build . By "clearing the build tree", I meant to complete delete all the content of the build folder. Sorry if there was any confusion. > I am still having more errors after trying to build it. The first is an > error in the compiler: > > command-line error: invalid macro definition: > ..../ITK/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL.h" This is fixed in ITK's current Git "master" and "release" branches. Instructions to get the Git version are here [1]. > The next is related, in that I am still having trouble with the IntelliSense > autocomplete not functioning in any of my projects, which was my purpose in > updating visual studio. Do you have any experience with these additional > errors? I believe the first error may be related to IntelliSense, due to a > quick google turning up that error in relation to it, but nothing I've found > has told me how to solve it. Sorry, I don't have much experience with IntelliSense. Be well, Matt [1] http://www.itk.org/Wiki/ITK/Git/Download > Best regards, > Michael Pinkert > > > Matt McCormick-2 wrote >> Hi Michael, >> >> Instead of just clearing the cache, it is necessary to delete the >> entry build tree when switching to a new compiler. >> >> HTH, >> Matt >> >> On Mon, Jan 26, 2015 at 3:44 PM, Michael Pinkert < > >> mpinkert@ > >> > wrote: >>> Hi Matt, >>> >>> I am not sure what you mean by fresh build tree. I cleared my cache in >>> CMake and deleted the build folder for my old ITK installation, if that >>> is >>> what you mean. >>> >>> Best regards, >>> Michale Pinkert >>> >>> >>> Matt McCormick-2 wrote >>>> Hi Michael, >>>> >>>> Did you start with a fresh build tree? >>>> >>>> Matt >>>> >>>> On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert < >>> >>>> mpinkert@ >>> >>>> > wrote: >>>>> Hi all, >>>>> >>>>> I have been trying to compile ITK on Visual Studio 2013, as I was >>>>> having >>>>> problems with the autocomplete IntelliSense in Visual Studio 2010. >>>>> However, >>>>> when I try to build ITK I am running into two errors, and do not know >>>>> what >>>>> to do about them. Does anyone have experience with the following? >>>>> >>>>> Error 1 error C1189: #error : "No native data type can >>>>> represent >>>>> a 16-bit >>>>> integer." >>>>> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h >>>>> 75 1 ITKIOLSM >>>>> >>>>> Error 2 error LNK1104: cannot open file >>>>> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' >>>>> C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver >>>>> >>>>> Best regards, >>>>> Michael Pinkert >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html >>>>> Sent from the ITK Insight Users mailing list archive at Nabble.com. >>>>> _____________________________________ >>>>> 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://public.kitware.com/mailman/listinfo/insight-users >>>> _____________________________________ >>>> 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://public.kitware.com/mailman/listinfo/insight-users >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html >>> Sent from the ITK Insight Users mailing list archive at Nabble.com. >>> _____________________________________ >>> 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://public.kitware.com/mailman/listinfo/insight-users >> _____________________________________ >> 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://public.kitware.com/mailman/listinfo/insight-users > > > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586846.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From dzenanz at gmail.com Tue Jan 27 13:11:11 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Tue, 27 Jan 2015 13:11:11 -0500 Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: <1422373406186-7586846.post@n2.nabble.com> References: <1422304240599-7586842.post@n2.nabble.com> <1422305040386-7586844.post@n2.nabble.com> <1422373406186-7586846.post@n2.nabble.com> Message-ID: Hi Michael, compile errors in the project can throw off IntelliSense. Once the project is properly compiling, it takes some time to gather all the information into a browsing database (*.sdf). Let VS scan all headers and generate this file. It needs to be done independently for projects using ITK, I think. In case IntelliSense is broken for a project, try closing VS, deleting its .sdf file, and then reopening the project's solution file. This should re-trigger an update of IntelliSense browsing database. HTH On Tue, Jan 27, 2015 at 10:43 AM, Michael Pinkert wrote: > Hi Matt, > > I managed to get ITK built by building to a new folder, but I still do not > understand how I am supposed to clear the build tree, as I doubt that is > the > correct solution. I have googled the term, but I have not found anything > that would indicate how I would delete the build tree, if clearing the > cache > and deleting the build folder do not count. > > I am still having more errors after trying to build it. The first is an > error in the compiler: > > command-line error: invalid macro definition: > > ..../ITK/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL.h" > > The next is related, in that I am still having trouble with the > IntelliSense > autocomplete not functioning in any of my projects, which was my purpose in > updating visual studio. Do you have any experience with these additional > errors? I believe the first error may be related to IntelliSense, due to a > quick google turning up that error in relation to it, but nothing I've > found > has told me how to solve it. > > Best regards, > Michael Pinkert > > > Matt McCormick-2 wrote > > Hi Michael, > > > > Instead of just clearing the cache, it is necessary to delete the > > entry build tree when switching to a new compiler. > > > > HTH, > > Matt > > > > On Mon, Jan 26, 2015 at 3:44 PM, Michael Pinkert < > > > mpinkert@ > > > > wrote: > >> Hi Matt, > >> > >> I am not sure what you mean by fresh build tree. I cleared my cache in > >> CMake and deleted the build folder for my old ITK installation, if that > >> is > >> what you mean. > >> > >> Best regards, > >> Michale Pinkert > >> > >> > >> Matt McCormick-2 wrote > >>> Hi Michael, > >>> > >>> Did you start with a fresh build tree? > >>> > >>> Matt > >>> > >>> On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert < > >> > >>> mpinkert@ > >> > >>> > wrote: > >>>> Hi all, > >>>> > >>>> I have been trying to compile ITK on Visual Studio 2013, as I was > >>>> having > >>>> problems with the autocomplete IntelliSense in Visual Studio 2010. > >>>> However, > >>>> when I try to build ITK I am running into two errors, and do not know > >>>> what > >>>> to do about them. Does anyone have experience with the following? > >>>> > >>>> Error 1 error C1189: #error : "No native data type can > >>>> represent > >>>> a 16-bit > >>>> integer." > >>>> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h > >>>> 75 1 ITKIOLSM > >>>> > >>>> Error 2 error LNK1104: cannot open file > >>>> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib' > >>>> C:\Build\ITK\Modules\Core\TestKernel\src\LINK itkTestDriver > >>>> > >>>> Best regards, > >>>> Michael Pinkert > >>>> > >>>> > >>>> > >>>> -- > >>>> View this message in context: > >>>> > http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html > >>>> Sent from the ITK Insight Users mailing list archive at Nabble.com. > >>>> _____________________________________ > >>>> 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://public.kitware.com/mailman/listinfo/insight-users > >>> _____________________________________ > >>> 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://public.kitware.com/mailman/listinfo/insight-users > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html > >> Sent from the ITK Insight Users mailing list archive at Nabble.com. > >> _____________________________________ > >> 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://public.kitware.com/mailman/listinfo/insight-users > > _____________________________________ > > 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://public.kitware.com/mailman/listinfo/insight-users > > > > > > -- > View this message in context: > http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586846.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From niels-xtk at xs4all.nl Tue Jan 27 14:54:38 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Tue, 27 Jan 2015 20:54:38 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> Message-ID: <54C7ECFE.8080408@xs4all.nl> Status update: Floris Berendsen and I are currently testing a few workarounds for the build errors and test failures that appeared at the Dashboard for Win64-VS12-Release-Shared after setting ITK_USE_64BITS_IDS: https://open.cdash.org/buildSummary.php?buildid=3670301 Next week, we expect to be able to submit a patch to http://review.source.kitware.com, with the help of our colleague Marius Staring. Hope it's still in time for the next ITK release :-) Furthermore, you may have seen that both compiler bugs have been confirmed by Microsoft by now, and that Gratian Lup (Microsoft) commented that these two bugs have been been fixed for the Visual Studio 2015: "Compiler generates divpd instruction on non-aligned data", https://connect.microsoft.com/VisualStudio/feedbackdetail/view/10601 "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer conversions...", https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 Matt, thanks for your vote on the bug report :-) Kind regards, Niels -- Niels Dekker Scientific programmer at LKEB, Leiden University Medical Center From blowekamp at mail.nih.gov Tue Jan 27 16:08:24 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Tue, 27 Jan 2015 16:08:24 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <54C7ECFE.8080408@xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> Message-ID: <5B8BE9A8-AE10-49DE-BCF3-C4BF144DB80B@mail.nih.gov> Hello, It is not clear to me from those comments if they are going to fix it in VS12, or not. I tries out the VS2015 preview[1] and it looks pretty good with some patches. I had to do a couple hacks to get it working, one patch I cleaned up and is already merged[2], and two other still need to be investigated further and cleanup[3,4]. With those being done I only got 4 failing tests[5], that all look related to rounding and the interpolator. Brad p.s I am not able to view the links you provided to Microsoft Connect [1] http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx [2] http://review.source.kitware.com/#/c/18929/ [3] http://review.source.kitware.com/#/c/18927/ [4] http://review.source.kitware.com/#/c/18928/ [5] https://open.cdash.org/viewTest.php?onlyfailed&buildid=3660925 On Jan 27, 2015, at 2:54 PM, Niels Dekker wrote: > Status update: Floris Berendsen and I are currently testing a few workarounds for the build errors and test failures that appeared at the Dashboard for Win64-VS12-Release-Shared after setting ITK_USE_64BITS_IDS: https://open.cdash.org/buildSummary.php?buildid=3670301 > > Next week, we expect to be able to submit a patch to http://review.source.kitware.com, with the help of our colleague Marius Staring. Hope it's still in time for the next ITK release :-) > > Furthermore, you may have seen that both compiler bugs have been confirmed by Microsoft by now, and that Gratian Lup (Microsoft) commented that these two bugs have been been fixed for the Visual Studio 2015: > > "Compiler generates divpd instruction on non-aligned data", https://connect.microsoft.com/VisualStudio/feedbackdetail/view/10601 > > "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer conversions...", https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 > > Matt, thanks for your vote on the bug report :-) > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer at LKEB, Leiden University Medical Center > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From matt.mccormick at kitware.com Tue Jan 27 16:14:14 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 27 Jan 2015 16:14:14 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <54C7ECFE.8080408@xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> Message-ID: Thanks for the update! Looking forward to the patches! On Tue, Jan 27, 2015 at 2:54 PM, Niels Dekker wrote: > Status update: Floris Berendsen and I are currently testing a few > workarounds for the build errors and test failures that appeared at the > Dashboard for Win64-VS12-Release-Shared after setting ITK_USE_64BITS_IDS: > https://open.cdash.org/buildSummary.php?buildid=3670301 > > Next week, we expect to be able to submit a patch to > http://review.source.kitware.com, with the help of our colleague Marius > Staring. Hope it's still in time for the next ITK release :-) > > Furthermore, you may have seen that both compiler bugs have been confirmed > by Microsoft by now, and that Gratian Lup (Microsoft) commented that these > two bugs have been been fixed for the Visual Studio 2015: > > "Compiler generates divpd instruction on non-aligned data", > https://connect.microsoft.com/VisualStudio/feedbackdetail/view/10601 > > "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer > conversions...", > https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 > > Matt, thanks for your vote on the bug report :-) > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer at LKEB, Leiden University Medical Center > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From mpinkert at wisc.edu Tue Jan 27 16:51:03 2015 From: mpinkert at wisc.edu (Michael Pinkert) Date: Tue, 27 Jan 2015 14:51:03 -0700 (MST) Subject: [ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0 In-Reply-To: References: <1422304240599-7586842.post@n2.nabble.com> <1422305040386-7586844.post@n2.nabble.com> <1422373406186-7586846.post@n2.nabble.com> Message-ID: <1422395463573-7586849.post@n2.nabble.com> Hi Matt, D?enan, Thank you both. Updating ITK again managed to solve both issues, and I will definitely keep in mind how Visual Studio IntelliSense works in the future when I am having problems again. Best regards, Michael Pinkert -- View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586849.html Sent from the ITK Insight Users mailing list archive at Nabble.com. _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From niels-xtk at xs4all.nl Tue Jan 27 18:41:04 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Wed, 28 Jan 2015 00:41:04 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <5B8BE9A8-AE10-49DE-BCF3-C4BF144DB80B@mail.nih.gov> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> <5B8BE9A8-AE10-49DE-BCF3-C4BF144DB80B@mail.nih.gov> Message-ID: <54C82210.4050705@xs4all.nl> Bradley Lowekamp wrote on Jan 27, 2015: > It is not clear to me from those comments if they are going > to fix it in VS12, or not. I don't know either... and I don't know how to convince Microsoft to fix those bugs in VS12. I think these two compiler bugs are quite severe, they even affect plain ANSI C code (as standardized in 1989)! But in fact, while the bugs were introduced with the very first release of VS12 (2013), no user presented a simple, minimal repro case for these bugs, apparently, until we did, just a few weeks ago. And VS12 already has had four updates. So it may be just too late now, to have them fixed in VS12. What do you think? > I tries out the VS2015 preview[1] and it looks pretty good with some patches. Cool! > p.s I am not able to view the links you provided to Microsoft Connect Oops, I made a typo in the first link! HTTPS may also slow things down. Please try again: "Compiler generates divpd instruction on non-aligned data" http://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166 "[C/C++] VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer conversions..." http://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 Kind regards, Niels -- Niels Dekker Scientific programmer at LKEB, Leiden University Medical Center From adiamondcsi at gmail.com Tue Jan 27 20:26:35 2015 From: adiamondcsi at gmail.com (Andy Diamond) Date: Tue, 27 Jan 2015 17:26:35 -0800 Subject: [ITK] How do I generate the ITKMorpholigical library? Message-ID: I followed instructions in http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm using Studio 12 (which is VC11?). I used cmake GUI, which seemed to generate all the visual studio projects. Note, to save time, as per the recommendations in the above link, I didn't generate the test or examples. I loaded ITK.SLN, from the top level of cmake-guis target, into VS and it ran saying it had no errors. However, when I go to where it generate the libs there is no ITKMathematicalMorphology.lib. One of the projects listed in Visual Studio is ITKMathematicalMorphology-all. It apparently has no source code (the ITKMathematicalMorphology-all project has no Source Files section). According to ITKs That library has a function (or whatever) called GrayscaleFillholeImageFilter but there is no file in the entire build directory tree (cmake-gui's target) with that string. Even if it's all somehow templated away, shouldn't some header or whatever file have GrayscaleFillholeImageFilter(otherwise what does it mean to list it) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Tue Jan 27 22:13:16 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 27 Jan 2015 22:13:16 -0500 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: References: Message-ID: Hi Andy, Yes, since that module only contains templated headers, there is nothing to build. If BUILD_TESTING is ON, then the tests for that module would be built. HTH, Matt On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: > I followed instructions in > http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm > using Studio 12 (which is VC11?). > > I used cmake GUI, which seemed to generate all the visual studio projects. > Note, to save time, as per the recommendations in the above link, I didn't > generate the test or examples. I loaded ITK.SLN, from the top level of > cmake-guis target, into VS and it ran saying it had no errors. > > However, when I go to where it generate the libs there is no > ITKMathematicalMorphology.lib. > > One of the projects listed in Visual Studio is > ITKMathematicalMorphology-all. It apparently has no source code (the > ITKMathematicalMorphology-all project has no Source Files section). > According to ITKs That library has a function (or whatever) called > GrayscaleFillholeImageFilter but there is no file in the entire build > directory tree (cmake-gui's target) with that string. > > Even if it's all somehow templated away, shouldn't some header or whatever > file have GrayscaleFillholeImageFilter(otherwise what does it mean to list > it) > > Thanks > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > From matt.mccormick at kitware.com Tue Jan 27 23:19:28 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 27 Jan 2015 23:19:28 -0500 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: References: Message-ID: Hi Andy, > 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled? The header files are not pre-compiled. When you build your executable and specify the types you want to use in the template, the compiler generates the appropriate code. > 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever Yes, the options must be enabled in CMake -- it is all or nothing. Try some of the Sphinx Examples (see the link to the .zip file in the left column), to build just an individual example [1]. HTH, Matt [1] http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html PS. Please keep messages on the list so all can benefit. > > thanks, > Andy > Sent from my iPhone > >> On Jan 27, 2015, at 7:13 PM, Matt McCormick wrote: >> >> Hi Andy, >> >> Yes, since that module only contains templated headers, there is >> nothing to build. If BUILD_TESTING is ON, then the tests for that >> module would be built. >> >> HTH, >> Matt >> >>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: >>> I followed instructions in >>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm >>> using Studio 12 (which is VC11?). >>> >>> I used cmake GUI, which seemed to generate all the visual studio projects. >>> Note, to save time, as per the recommendations in the above link, I didn't >>> generate the test or examples. I loaded ITK.SLN, from the top level of >>> cmake-guis target, into VS and it ran saying it had no errors. >>> >>> However, when I go to where it generate the libs there is no >>> ITKMathematicalMorphology.lib. >>> >>> One of the projects listed in Visual Studio is >>> ITKMathematicalMorphology-all. It apparently has no source code (the >>> ITKMathematicalMorphology-all project has no Source Files section). >>> According to ITKs That library has a function (or whatever) called >>> GrayscaleFillholeImageFilter but there is no file in the entire build >>> directory tree (cmake-gui's target) with that string. >>> >>> Even if it's all somehow templated away, shouldn't some header or whatever >>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list >>> it) >>> >>> Thanks >>> >>> _______________________________________________ >>> Community mailing list >>> Community at itk.org >>> http://public.kitware.com/mailman/listinfo/community >>> From grothausmann.roman at mh-hannover.de Wed Jan 28 07:02:10 2015 From: grothausmann.roman at mh-hannover.de (Dr. Roman Grothausmann) Date: Wed, 28 Jan 2015 13:02:10 +0100 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> <54C6029C.4040600@mh-hannover.de> Message-ID: <54C8CFC2.4000305@mh-hannover.de> Hi Matt, On 26/01/15 17:54, Matt McCormick wrote: > I do not think the Midas Journal will be able to build your plugin. OK, so I added a VTK test program. Is there a way to test if the automatic testing environment would be able to build and run my VTK test program BEFORE submitting the contribution to Midas? (My last submission never got tested by the system so far, i.e. there is no colde review reported: http://www.vtkjournal.org/browse/publication/949) > I would recommend creating build instructions to build against a > ParaView build tree. I have just verified that ITK builds with the > ITKVtkGlue module ON when pointing VTK_DIR to the /VTK > directory. Did You use BUILD_SHARED_LIBS ON for both ITK and ParaView? ITK also compiles fine without any errors for me if I use BUILD_SHARED_LIBS OFF, however the problems then arise when compiling the plugin. If You like, You can test the compilation of the plugin with the code from the git repository: https://github.com/romangrothausmann/FacetAnalyser Many thanks for looking into this. Roman On 26/01/15 17:54, Matt McCormick wrote: > Hi Roman, > > Thanks for the update. Great to hear about the Midas Journal article! > > I do not think the Midas Journal will be able to build your plugin. > > I would recommend creating build instructions to build against a > ParaView build tree. I have just verified that ITK builds with the > ITKVtkGlue module ON when pointing VTK_DIR to the /VTK > directory. > > I don't see the install tree VTKTargets.cmake file in my ParaView > build, either. In the long term, the ParaView CMake configuration > should be corrected. > > HTH, > Matt > > On Mon, Jan 26, 2015 at 4:02 AM, Dr. Roman Grothausmann > wrote: >> Hi Matt, >> >> >> Thank You very much for Your reply. >> I can only find one VTKTargets.cmake in >> /opt/compilation/paraview-git_build/VTK/ >> It seems though that it is lacking the relevant entries for the libraries >> that troubled me, e.g. vtkPVPythonCatalyst and >> vtkUtilitiesPythonInitializer. >> >> I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what >> installation instructions should I give there? >> Will the testing environment be able to compile this plugin and its tests or >> should I disable automatic testing for this contribution? >> >> Many thanks for looking into this. >> Roman >> >> >> On 23/01/15 18:15, Matt McCormick wrote: >>> >>> Hi Roman, >>> >>> Thanks for looking into the issue and reporting it to the mailing list. >>> >>> Paraview should be installing VTKTargets.cmake, which tells the build >>> system where to find the libraries. Note that there might be two >>> VTKTargets.cmake files that are generated -- one for the build tree >>> and one for the install tree. >>> >>> HTH, >>> Matt >>> >>> On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann >>> wrote: >>>> >>>> >>>> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >>>>> >>>>> >>>>> Adding the abs. file locations to the build command does not help nor >>>>> does >>>>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ >>>> >>>> >>>> >>>> I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so >>>> which seems to be the reason why the linker does not find them. If I >>>> create >>>> symbolic links to these files without the extension: >>>> >>>> cd /opt/compilation/paraview-git_build/lib/ >>>> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done >>>> >>>> and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS >>>> the compilation of ITK succeeds. >>>> >>>> I wonder, is that the way it's meant to be done? >>>> >>>> >>>> >>>>> What am I missing in my configuration of PV and ITK? >>>>> >>>>> When and where should I specify: >>>>> CMAKE_CXX_FLAGS -fPIC >>>>> BUILD_SHARED_LIBS ON/OFF >>>>> >>>>> Is this the right VTK_DIR specification for ITK: >>>>> /opt/compilation/ParaView-v4.3.1/build/VTK >>>>> or >>>>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >>>>> >>>>> >>>>> >>>>> Many thanks for any help or hints. >>>>> Roman >>>>> >>>>> >>>> >>>> -- >>>> Dr. Roman Grothausmann >>>> >>>> Tomographie und Digitale Bildverarbeitung >>>> Tomography and Digital Image Analysis >>>> >>>> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >>>> Medizinische Hochschule Hannover >>>> Carl-Neuberg-Str. 1 >>>> D-30625 Hannover >>>> >>>> Tel. +49 511 532-9574 >>>> _____________________________________ >>>> 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://public.kitware.com/mailman/listinfo/insight-users >> >> >> -- >> Dr. Roman Grothausmann >> >> Tomographie und Digitale Bildverarbeitung >> Tomography and Digital Image Analysis >> >> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >> Medizinische Hochschule Hannover >> Carl-Neuberg-Str. 1 >> D-30625 Hannover >> >> Tel. +49 511 532-9574 -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matimontg at gmail.com Wed Jan 28 08:45:09 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 28 Jan 2015 10:45:09 -0300 Subject: [ITK] [ITK-users] ITK Apps | MultiResMIRegistration output slices blank Message-ID: Hi, I'm working on testing the MultiResMIRegistration example in the ITK-Apps and it runs ok with my dataset, however, the output mhd file has blank slices (all black or white depending the Window Level setting) I get the matrix and overall transform set parameters and the values kinda make sense but I can't see the resulting slices for some reason. Both MR and CT 3D files are signed short pixel type. Thanks for the help. Matias. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From blowekamp at mail.nih.gov Wed Jan 28 08:55:17 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 28 Jan 2015 08:55:17 -0500 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: References: Message-ID: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> Matt, Isn't there some CMake option to "add" header and template headers files to targets? The properties/option I recall reading said it only effected how the files where displaced in an IDE. Perhaps this is what Andy was expecting? To see the headers as part of the project some place? Brad On Jan 27, 2015, at 11:19 PM, Matt McCormick wrote: > Hi Andy, > >> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled? > > The header files are not pre-compiled. When you build your executable > and specify the types you want to use in the template, the compiler > generates the appropriate code. > >> 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever > > Yes, the options must be enabled in CMake -- it is all or nothing. > Try some of the Sphinx Examples (see the link to the .zip file in the > left column), to build just an individual example [1]. > > HTH, > Matt > > [1] http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html > > PS. Please keep messages on the list so all can benefit. > > >> >> thanks, >> Andy >> Sent from my iPhone >> >>> On Jan 27, 2015, at 7:13 PM, Matt McCormick wrote: >>> >>> Hi Andy, >>> >>> Yes, since that module only contains templated headers, there is >>> nothing to build. If BUILD_TESTING is ON, then the tests for that >>> module would be built. >>> >>> HTH, >>> Matt >>> >>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: >>>> I followed instructions in >>>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm >>>> using Studio 12 (which is VC11?). >>>> >>>> I used cmake GUI, which seemed to generate all the visual studio projects. >>>> Note, to save time, as per the recommendations in the above link, I didn't >>>> generate the test or examples. I loaded ITK.SLN, from the top level of >>>> cmake-guis target, into VS and it ran saying it had no errors. >>>> >>>> However, when I go to where it generate the libs there is no >>>> ITKMathematicalMorphology.lib. >>>> >>>> One of the projects listed in Visual Studio is >>>> ITKMathematicalMorphology-all. It apparently has no source code (the >>>> ITKMathematicalMorphology-all project has no Source Files section). >>>> According to ITKs That library has a function (or whatever) called >>>> GrayscaleFillholeImageFilter but there is no file in the entire build >>>> directory tree (cmake-gui's target) with that string. >>>> >>>> Even if it's all somehow templated away, shouldn't some header or whatever >>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list >>>> it) >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> Community mailing list >>>> Community at itk.org >>>> http://public.kitware.com/mailman/listinfo/community >>>> > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From matt.mccormick at kitware.com Wed Jan 28 10:00:29 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 28 Jan 2015 10:00:29 -0500 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> References: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> Message-ID: Hi, For the IDE project generators, we already add the header files to the projects so they will show up in the IDE [1]. But, there is still nothing to build for a header-only module and no .lib file will be generated. HTH, Matt [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81 On Wed, Jan 28, 2015 at 8:55 AM, Bradley Lowekamp wrote: > Matt, > > Isn't there some CMake option to "add" header and template headers files to targets? The properties/option I recall reading said it only effected how the files where displaced in an IDE. > > Perhaps this is what Andy was expecting? To see the headers as part of the project some place? > > Brad > > On Jan 27, 2015, at 11:19 PM, Matt McCormick wrote: > >> Hi Andy, >> >>> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled? >> >> The header files are not pre-compiled. When you build your executable >> and specify the types you want to use in the template, the compiler >> generates the appropriate code. >> >>> 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever >> >> Yes, the options must be enabled in CMake -- it is all or nothing. >> Try some of the Sphinx Examples (see the link to the .zip file in the >> left column), to build just an individual example [1]. >> >> HTH, >> Matt >> >> [1] http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html >> >> PS. Please keep messages on the list so all can benefit. >> >> >>> >>> thanks, >>> Andy >>> Sent from my iPhone >>> >>>> On Jan 27, 2015, at 7:13 PM, Matt McCormick wrote: >>>> >>>> Hi Andy, >>>> >>>> Yes, since that module only contains templated headers, there is >>>> nothing to build. If BUILD_TESTING is ON, then the tests for that >>>> module would be built. >>>> >>>> HTH, >>>> Matt >>>> >>>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: >>>>> I followed instructions in >>>>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm >>>>> using Studio 12 (which is VC11?). >>>>> >>>>> I used cmake GUI, which seemed to generate all the visual studio projects. >>>>> Note, to save time, as per the recommendations in the above link, I didn't >>>>> generate the test or examples. I loaded ITK.SLN, from the top level of >>>>> cmake-guis target, into VS and it ran saying it had no errors. >>>>> >>>>> However, when I go to where it generate the libs there is no >>>>> ITKMathematicalMorphology.lib. >>>>> >>>>> One of the projects listed in Visual Studio is >>>>> ITKMathematicalMorphology-all. It apparently has no source code (the >>>>> ITKMathematicalMorphology-all project has no Source Files section). >>>>> According to ITKs That library has a function (or whatever) called >>>>> GrayscaleFillholeImageFilter but there is no file in the entire build >>>>> directory tree (cmake-gui's target) with that string. >>>>> >>>>> Even if it's all somehow templated away, shouldn't some header or whatever >>>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list >>>>> it) >>>>> >>>>> Thanks >>>>> >>>>> _______________________________________________ >>>>> Community mailing list >>>>> Community at itk.org >>>>> http://public.kitware.com/mailman/listinfo/community >>>>> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community > From emily-hammond at uiowa.edu Wed Jan 28 10:36:08 2015 From: emily-hammond at uiowa.edu (Hammond, Emily M) Date: Wed, 28 Jan 2015 15:36:08 +0000 Subject: [ITK] [ITK-users] STL methods and ITK Message-ID: <2609C492EC89AB4CAAD3647B8D1A43CC2F1854DB@ITSNT437.iowa.uiowa.edu> Hello all, I am trying to wrap some functionality into a class. I am trying to write a function that reads in a transform file, however, I want it to take the list of transform pointers that it reads in and merge/insert them into an already existing list. Here is the relevant code with more details below it: #include "itkTransform.h" #include "itkTransformFileReader.h" public: typedef itk::TransformFileReaderTemplate< double > TransformReaderType; typedef TransformReaderType::TransformListType TransformListType; void ReadTransformFile( const char * transformFilename ); protected: LandmarkAnalysis() { TransformListType * m_TransformList = 0; TransformListType * m_TransformListTemporary = 0; } private: TransformListType * m_TransformList; TransformListType * m_TransformListTemporary; }; .hxx file void LandmarkAnalysis::ReadTransformFile( const char * transformFilename ) { TransformReaderType::Pointer reader = TransformReaderType::New(); reader->SetFileName( transformFilename ); reader->Update(); // put output into member variable m_TransformListTemporary = reader->GetTransformList(); //(*m_TransformList).merge( *m_TransformListTemporary ); // print out to prove that it was completed TransformListType::const_iterator tempIt = m_TransformListTemporary->begin(); TransformListType::iterator it = m_TransformList->begin(); ***CODE BREAKS AT THIS LINE*** for(; tempIt !=m_TransformListTemporary->end(); tempIt++) { std::cout << (*tempIt) << std::endl; (*m_TransformList).insert(it, (*tempIt)); } std::cout << transformFilename << " has been read in." << std::endl; return; } Here is my problem: I know that at the base level both m_TransformListTemporary and m_TransformList are lists of transform pointers. However, I cannot use any of the c++ stl list member functions such as merge or insert (I get runtime errors.) Is there some fundamental concept that I do not understand with how ITK interacts with the STL? In addition, through debugging, the line shown above instantiating an iterator for m_TransformList breaks the code, even though the previous line (which, to my understanding, does the same thing, but with a different list) works fine. Any help would be very much appreciated. Emily Hammond -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From blowekamp at mail.nih.gov Wed Jan 28 10:47:50 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 28 Jan 2015 10:47:50 -0500 Subject: [ITK] [ITK-users] STL methods and ITK In-Reply-To: <2609C492EC89AB4CAAD3647B8D1A43CC2F1854DB@ITSNT437.iowa.uiowa.edu> References: <2609C492EC89AB4CAAD3647B8D1A43CC2F1854DB@ITSNT437.iowa.uiowa.edu> Message-ID: Hello Emily, This has recently been fixed in ITK: https://github.com/InsightSoftwareConsortium/ITK/commit/240b5568b641bb995ba01cbc338ddadffd95d5fa The return for GetTransformList is now a constant pointer: const TransformListType * GetTransformList() Truthfully I am not sure why this method is returning a pointer and not a reference. So the return should not be modified, which is your issue. The pointer is to an STL list managed by the reader. The list is of itk::SmartPointers, so doing a copy should be light weight. So you should do something like: TransformListType m_TransformList; this->m_TransformList = *(reader->GetTranformList()); Brad On Jan 28, 2015, at 10:36 AM, Hammond, Emily M wrote: > Hello all, > > I am trying to wrap some functionality into a class. I am trying to write a function that reads in a transform file, however, I want it to take the list of transform pointers that it reads in and merge/insert them into an already existing list. Here is the relevant code with more details below it: > > #include "itkTransform.h" > #include "itkTransformFileReader.h" > > public: > typedef itk::TransformFileReaderTemplate< double > > TransformReaderType; > typedef TransformReaderType::TransformListType > TransformListType; > > void ReadTransformFile( const char * transformFilename ); > > protected: > LandmarkAnalysis() > { > TransformListType * m_TransformList = 0; > TransformListType * m_TransformListTemporary = 0; > } > > private: > TransformListType * m_TransformList; > TransformListType * m_TransformListTemporary; > }; > > > .hxx file > void LandmarkAnalysis::ReadTransformFile( const char * transformFilename ) > { > TransformReaderType::Pointer reader = TransformReaderType::New(); > reader->SetFileName( transformFilename ); > reader->Update(); > > // put output into member variable > m_TransformListTemporary = reader->GetTransformList(); > //(*m_TransformList).merge( *m_TransformListTemporary ); > // print out to prove that it was completed > TransformListType::const_iterator tempIt = m_TransformListTemporary->begin(); > TransformListType::iterator it = m_TransformList->begin(); ***CODE BREAKS AT THIS LINE*** > > for(; tempIt !=m_TransformListTemporary->end(); tempIt++) > { > std::cout << (*tempIt) << std::endl; > (*m_TransformList).insert(it, (*tempIt)); > } > > std::cout << transformFilename << " has been read in." << std::endl; > return; > } > > Here is my problem: I know that at the base level both m_TransformListTemporary and m_TransformList are lists of transform pointers. However, I cannot use any of the c++ stl list member functions such as merge or insert (I get runtime errors.) Is there some fundamental concept that I do not understand with how ITK interacts with the STL? In addition, through debugging, the line shown above instantiating an iterator for m_TransformList breaks the code, even though the previous line (which, to my understanding, does the same thing, but with a different list) works fine. > > Any help would be very much appreciated. > > Emily Hammond > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From adiamondcsi at gmail.com Wed Jan 28 14:21:47 2015 From: adiamondcsi at gmail.com (Andy Diamond) Date: Wed, 28 Jan 2015 11:21:47 -0800 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: References: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> Message-ID: Hi Matt, Brat, et. al., I'm still confused. Sorry for being dense. Let me try this another way. Below is the start of a definition of a template class (in some header file I would think) template class calc .... and here's a corresponding instantiation in some C++ file (.cpp) calc a_calc_class; How does compiler know what what the Identifier/type "calc" is? Doesn't it have to include the header with the definition so it doesn't come back with an error message of " 'calc' is an unknown identifier" or the like? Of course, given such a header file, if I searched its directory for the string "calc" the search would at least return that header file as a file that contains "calc". None of this seems to be the case with the class "GrayscaleFillholeImageFilter" Thanks, Andy On Wed, Jan 28, 2015 at 7:00 AM, Matt McCormick wrote: > Hi, > > For the IDE project generators, we already add the header files to the > projects so they will show up in the IDE [1]. But, there is still > nothing to build for a header-only module and no .lib file will be > generated. > > HTH, > Matt > > [1] > http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81 > > On Wed, Jan 28, 2015 at 8:55 AM, Bradley Lowekamp > wrote: > > Matt, > > > > Isn't there some CMake option to "add" header and template headers files > to targets? The properties/option I recall reading said it only effected > how the files where displaced in an IDE. > > > > Perhaps this is what Andy was expecting? To see the headers as part of > the project some place? > > > > Brad > > > > On Jan 27, 2015, at 11:19 PM, Matt McCormick > wrote: > > > >> Hi Andy, > >> > >>> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything > say in a header file? are they pre compiled? > >> > >> The header files are not pre-compiled. When you build your executable > >> and specify the types you want to use in the template, the compiler > >> generates the appropriate code. > >> > >>> 2) Do you know how I can build just that test and example ( in msvc > 11). Do I have to run cmake-gui all over again with the option checked for > all the example and tests? Then what project would I need to build in > msvc? I certainly don't want to build all the tests and examples as that > takes forever > >> > >> Yes, the options must be enabled in CMake -- it is all or nothing. > >> Try some of the Sphinx Examples (see the link to the .zip file in the > >> left column), to build just an individual example [1]. > >> > >> HTH, > >> Matt > >> > >> [1] > http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html > >> > >> PS. Please keep messages on the list so all can benefit. > >> > >> > >>> > >>> thanks, > >>> Andy > >>> Sent from my iPhone > >>> > >>>> On Jan 27, 2015, at 7:13 PM, Matt McCormick < > matt.mccormick at kitware.com> wrote: > >>>> > >>>> Hi Andy, > >>>> > >>>> Yes, since that module only contains templated headers, there is > >>>> nothing to build. If BUILD_TESTING is ON, then the tests for that > >>>> module would be built. > >>>> > >>>> HTH, > >>>> Matt > >>>> > >>>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond > wrote: > >>>>> I followed instructions in > >>>>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio > but I'm > >>>>> using Studio 12 (which is VC11?). > >>>>> > >>>>> I used cmake GUI, which seemed to generate all the visual studio > projects. > >>>>> Note, to save time, as per the recommendations in the above link, I > didn't > >>>>> generate the test or examples. I loaded ITK.SLN, from the top level > of > >>>>> cmake-guis target, into VS and it ran saying it had no errors. > >>>>> > >>>>> However, when I go to where it generate the libs there is no > >>>>> ITKMathematicalMorphology.lib. > >>>>> > >>>>> One of the projects listed in Visual Studio is > >>>>> ITKMathematicalMorphology-all. It apparently has no source code (the > >>>>> ITKMathematicalMorphology-all project has no Source Files section). > >>>>> According to ITKs That library has a function (or whatever) called > >>>>> GrayscaleFillholeImageFilter but there is no file in the entire build > >>>>> directory tree (cmake-gui's target) with that string. > >>>>> > >>>>> Even if it's all somehow templated away, shouldn't some header or > whatever > >>>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean > to list > >>>>> it) > >>>>> > >>>>> Thanks > >>>>> > >>>>> _______________________________________________ > >>>>> Community mailing list > >>>>> Community at itk.org > >>>>> http://public.kitware.com/mailman/listinfo/community > >>>>> > >> _______________________________________________ > >> Community mailing list > >> Community at itk.org > >> http://public.kitware.com/mailman/listinfo/community > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Wed Jan 28 14:37:33 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Wed, 28 Jan 2015 14:37:33 -0500 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: References: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> Message-ID: <75D3B6E0-1644-4C3E-81A1-9B6792D75F87@mail.nih.gov> Hello, The header file reside in the source directory of ITK[1], and does not need to be moved to the build directory where object files and libraries are created during the build process. When the INSTALL target is run on the ITK project, all the libraries, cmake interface files along with the header, and template header files are copied to the specified installation directory. When you use ITK with CMake, and find and include the ITK cmake[2] files, it will automatically add the correct include paths to the compiler for all the ITK files available for either of the above cases. Does that explanation help? Brad [1] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/MathematicalMorphology/include/itkGrayscaleFillholeImageFilter.h [2] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/CMakeLists.txt#L5-L6 On Jan 28, 2015, at 2:21 PM, Andy Diamond wrote: > Hi Matt, Brat, et. al., > I'm still confused. Sorry for being dense. > > Let me try this another way. Below is the start of a definition of a template class (in some header file I would think) > template class calc > .... > > and here's a corresponding instantiation in some C++ file (.cpp) > calc a_calc_class; > How does compiler know what what the Identifier/type "calc" is? Doesn't it have to include the header with the definition so it doesn't come back with an error message of " 'calc' is an unknown identifier" or the like? > > Of course, given such a header file, if I searched its directory for the string "calc" the search would at least return that header file as a file that contains "calc". > > None of this seems to be the case with the class "GrayscaleFillholeImageFilter" > > Thanks, > Andy > > On Wed, Jan 28, 2015 at 7:00 AM, Matt McCormick wrote: > Hi, > > For the IDE project generators, we already add the header files to the > projects so they will show up in the IDE [1]. But, there is still > nothing to build for a header-only module and no .lib file will be > generated. > > HTH, > Matt > > [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81 > > On Wed, Jan 28, 2015 at 8:55 AM, Bradley Lowekamp > wrote: > > Matt, > > > > Isn't there some CMake option to "add" header and template headers files to targets? The properties/option I recall reading said it only effected how the files where displaced in an IDE. > > > > Perhaps this is what Andy was expecting? To see the headers as part of the project some place? > > > > Brad > > > > On Jan 27, 2015, at 11:19 PM, Matt McCormick wrote: > > > >> Hi Andy, > >> > >>> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled? > >> > >> The header files are not pre-compiled. When you build your executable > >> and specify the types you want to use in the template, the compiler > >> generates the appropriate code. > >> > >>> 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever > >> > >> Yes, the options must be enabled in CMake -- it is all or nothing. > >> Try some of the Sphinx Examples (see the link to the .zip file in the > >> left column), to build just an individual example [1]. > >> > >> HTH, > >> Matt > >> > >> [1] http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html > >> > >> PS. Please keep messages on the list so all can benefit. > >> > >> > >>> > >>> thanks, > >>> Andy > >>> Sent from my iPhone > >>> > >>>> On Jan 27, 2015, at 7:13 PM, Matt McCormick wrote: > >>>> > >>>> Hi Andy, > >>>> > >>>> Yes, since that module only contains templated headers, there is > >>>> nothing to build. If BUILD_TESTING is ON, then the tests for that > >>>> module would be built. > >>>> > >>>> HTH, > >>>> Matt > >>>> > >>>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: > >>>>> I followed instructions in > >>>>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm > >>>>> using Studio 12 (which is VC11?). > >>>>> > >>>>> I used cmake GUI, which seemed to generate all the visual studio projects. > >>>>> Note, to save time, as per the recommendations in the above link, I didn't > >>>>> generate the test or examples. I loaded ITK.SLN, from the top level of > >>>>> cmake-guis target, into VS and it ran saying it had no errors. > >>>>> > >>>>> However, when I go to where it generate the libs there is no > >>>>> ITKMathematicalMorphology.lib. > >>>>> > >>>>> One of the projects listed in Visual Studio is > >>>>> ITKMathematicalMorphology-all. It apparently has no source code (the > >>>>> ITKMathematicalMorphology-all project has no Source Files section). > >>>>> According to ITKs That library has a function (or whatever) called > >>>>> GrayscaleFillholeImageFilter but there is no file in the entire build > >>>>> directory tree (cmake-gui's target) with that string. > >>>>> > >>>>> Even if it's all somehow templated away, shouldn't some header or whatever > >>>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list > >>>>> it) > >>>>> > >>>>> Thanks > >>>>> > >>>>> _______________________________________________ > >>>>> Community mailing list > >>>>> Community at itk.org > >>>>> http://public.kitware.com/mailman/listinfo/community > >>>>> > >> _______________________________________________ > >> Community mailing list > >> Community at itk.org > >> http://public.kitware.com/mailman/listinfo/community > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adiamondcsi at gmail.com Wed Jan 28 15:50:39 2015 From: adiamondcsi at gmail.com (Andy Diamond) Date: Wed, 28 Jan 2015 12:50:39 -0800 Subject: [ITK] How do I generate the ITKMorpholigical library? In-Reply-To: <75D3B6E0-1644-4C3E-81A1-9B6792D75F87@mail.nih.gov> References: <717C0E3B-3FF9-4D1B-B741-0F95C4CE41C0@mail.nih.gov> <75D3B6E0-1644-4C3E-81A1-9B6792D75F87@mail.nih.gov> Message-ID: Oh yes, that does help. I'll have to look anew at this when I get home. Thanks, Andy Sent from my iPhone > On Jan 28, 2015, at 11:37 AM, Bradley Lowekamp wrote: > > Hello, > > The header file reside in the source directory of ITK[1], and does not need to be moved to the build directory where object files and libraries are created during the build process. > > When the INSTALL target is run on the ITK project, all the libraries, cmake interface files along with the header, and template header files are copied to the specified installation directory. > > When you use ITK with CMake, and find and include the ITK cmake[2] files, it will automatically add the correct include paths to the compiler for all the ITK files available for either of the above cases. > > Does that explanation help? > Brad > > > [1] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/MathematicalMorphology/include/itkGrayscaleFillholeImageFilter.h > [2] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/CMakeLists.txt#L5-L6 > >> On Jan 28, 2015, at 2:21 PM, Andy Diamond wrote: >> >> Hi Matt, Brat, et. al., >> I'm still confused. Sorry for being dense. >> >> Let me try this another way. Below is the start of a definition of a template class (in some header file I would think) >> template class calc >> .... >> >> and here's a corresponding instantiation in some C++ file (.cpp) >> calc a_calc_class; >> How does compiler know what what the Identifier/type "calc" is? Doesn't it have to include the header with the definition so it doesn't come back with an error message of " 'calc' is an unknown identifier" or the like? >> >> Of course, given such a header file, if I searched its directory for the string "calc" the search would at least return that header file as a file that contains "calc". >> >> None of this seems to be the case with the class "GrayscaleFillholeImageFilter" >> >> Thanks, >> Andy >> >>> On Wed, Jan 28, 2015 at 7:00 AM, Matt McCormick wrote: >>> Hi, >>> >>> For the IDE project generators, we already add the header files to the >>> projects so they will show up in the IDE [1]. But, there is still >>> nothing to build for a header-only module and no .lib file will be >>> generated. >>> >>> HTH, >>> Matt >>> >>> [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81 >>> >>> On Wed, Jan 28, 2015 at 8:55 AM, Bradley Lowekamp >>> wrote: >>> > Matt, >>> > >>> > Isn't there some CMake option to "add" header and template headers files to targets? The properties/option I recall reading said it only effected how the files where displaced in an IDE. >>> > >>> > Perhaps this is what Andy was expecting? To see the headers as part of the project some place? >>> > >>> > Brad >>> > >>> > On Jan 27, 2015, at 11:19 PM, Matt McCormick wrote: >>> > >>> >> Hi Andy, >>> >> >>> >>> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled? >>> >> >>> >> The header files are not pre-compiled. When you build your executable >>> >> and specify the types you want to use in the template, the compiler >>> >> generates the appropriate code. >>> >> >>> >>> 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever >>> >> >>> >> Yes, the options must be enabled in CMake -- it is all or nothing. >>> >> Try some of the Sphinx Examples (see the link to the .zip file in the >>> >> left column), to build just an individual example [1]. >>> >> >>> >> HTH, >>> >> Matt >>> >> >>> >> [1] http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html >>> >> >>> >> PS. Please keep messages on the list so all can benefit. >>> >> >>> >> >>> >>> >>> >>> thanks, >>> >>> Andy >>> >>> Sent from my iPhone >>> >>> >>> >>>> On Jan 27, 2015, at 7:13 PM, Matt McCormick wrote: >>> >>>> >>> >>>> Hi Andy, >>> >>>> >>> >>>> Yes, since that module only contains templated headers, there is >>> >>>> nothing to build. If BUILD_TESTING is ON, then the tests for that >>> >>>> module would be built. >>> >>>> >>> >>>> HTH, >>> >>>> Matt >>> >>>> >>> >>>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond wrote: >>> >>>>> I followed instructions in >>> >>>>> http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio but I'm >>> >>>>> using Studio 12 (which is VC11?). >>> >>>>> >>> >>>>> I used cmake GUI, which seemed to generate all the visual studio projects. >>> >>>>> Note, to save time, as per the recommendations in the above link, I didn't >>> >>>>> generate the test or examples. I loaded ITK.SLN, from the top level of >>> >>>>> cmake-guis target, into VS and it ran saying it had no errors. >>> >>>>> >>> >>>>> However, when I go to where it generate the libs there is no >>> >>>>> ITKMathematicalMorphology.lib. >>> >>>>> >>> >>>>> One of the projects listed in Visual Studio is >>> >>>>> ITKMathematicalMorphology-all. It apparently has no source code (the >>> >>>>> ITKMathematicalMorphology-all project has no Source Files section). >>> >>>>> According to ITKs That library has a function (or whatever) called >>> >>>>> GrayscaleFillholeImageFilter but there is no file in the entire build >>> >>>>> directory tree (cmake-gui's target) with that string. >>> >>>>> >>> >>>>> Even if it's all somehow templated away, shouldn't some header or whatever >>> >>>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list >>> >>>>> it) >>> >>>>> >>> >>>>> Thanks >>> >>>>> >>> >>>>> _______________________________________________ >>> >>>>> Community mailing list >>> >>>>> Community at itk.org >>> >>>>> http://public.kitware.com/mailman/listinfo/community >>> >>>>> >>> >> _______________________________________________ >>> >> Community mailing list >>> >> Community at itk.org >>> >> http://public.kitware.com/mailman/listinfo/community >>> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.brehler at dkfz-heidelberg.de Thu Jan 29 04:15:49 2015 From: m.brehler at dkfz-heidelberg.de (Brehler, Michael) Date: Thu, 29 Jan 2015 10:15:49 +0100 Subject: [ITK] ITK NeighborhoodIterator alternative Message-ID: <57EE86D11538B44096C712532DBB6C5A011C76F584BF@DKFZEX01.ad.dkfz-heidelberg.de> Hi, I am using the ITK NeighborhoodIterator to calculate response images of 3D box filters with varying size on volumetric images. The iterator is very convenient but especially for large filter sizes (27x27x27 and above) this method is very slow. Is there an efficient alterative? Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From niels-xtk at xs4all.nl Thu Jan 29 10:16:02 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Thu, 29 Jan 2015 16:16:02 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> Message-ID: Good news: We just did an Experimental Build, including ITK_USE_64BITS and Module_ITKReview, with our (local) patches, and it has "100% tests passed, 0 tests failed out of 2517"! Build Name: "Win64-VS2013-Release-64BITS_IDS patched", https://open.cdash.org/buildSummary.php?buildid=3673003 In order to make more people aware of these Win64 compiler bugs, as well as our workarounds, do you think it would be useful to add an "issue" (or two) to https://issues.itk.org/jira/secure/Dashboard.jspa ? Kind regards, Niels Matt McCormick wrote on Jan 27, 2015: > Thanks for the update! Looking forward to the patches! > > On Tue, Jan 27, 2015 at 2:54 PM, Niels Dekker wrote: >> Status update: Floris Berendsen and I are currently testing a few >> workarounds for the build errors and test failures that appeared at the >> Dashboard for Win64-VS12-Release-Shared after setting >> ITK_USE_64BITS_IDS: >> https://open.cdash.org/buildSummary.php?buildid=3670301 >> >> Next week, we expect to be able to submit a patch to >> http://review.source.kitware.com, with the help of our colleague Marius >> Staring. Hope it's still in time for the next ITK release :-) >> >> Furthermore, you may have seen that both compiler bugs have been >> confirmed by Microsoft by now, and that Gratian Lup (Microsoft) >> commented that these two bugs have been been fixed for the Visual >> Studio 2015: >> >> "Compiler generates divpd instruction on non-aligned data", >> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166 >> >> "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer >> conversions...", >> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 >> >> Matt, thanks for your vote on the bug report :-) >> >> >> Kind regards, Niels >> -- >> Niels Dekker >> Scientific programmer at LKEB, Leiden University Medical Center From matt.mccormick at kitware.com Thu Jan 29 10:27:06 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 29 Jan 2015 10:27:06 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> Message-ID: Hi Niels, That is excellent! I'll wait until we have the patches merged into the release branch before releasing 4.7.1. We can then explain the situation in the release announcement to improve awareness. I don't think an issue tracker issue will help. Thanks, Matt On Thu, Jan 29, 2015 at 10:16 AM, Niels Dekker wrote: > Good news: We just did an Experimental Build, including ITK_USE_64BITS and > Module_ITKReview, with our (local) patches, and it has "100% tests passed, > 0 tests failed out of 2517"! Build Name: "Win64-VS2013-Release-64BITS_IDS > patched", https://open.cdash.org/buildSummary.php?buildid=3673003 > > In order to make more people aware of these Win64 compiler bugs, as well > as our workarounds, do you think it would be useful to add an "issue" (or > two) to https://issues.itk.org/jira/secure/Dashboard.jspa ? > > Kind regards, Niels > > Matt McCormick wrote on Jan 27, 2015: >> Thanks for the update! Looking forward to the patches! >> >> On Tue, Jan 27, 2015 at 2:54 PM, Niels Dekker wrote: >>> Status update: Floris Berendsen and I are currently testing a few >>> workarounds for the build errors and test failures that appeared at the >>> Dashboard for Win64-VS12-Release-Shared after setting >>> ITK_USE_64BITS_IDS: >>> https://open.cdash.org/buildSummary.php?buildid=3670301 >>> >>> Next week, we expect to be able to submit a patch to >>> http://review.source.kitware.com, with the help of our colleague Marius >>> Staring. Hope it's still in time for the next ITK release :-) >>> >>> Furthermore, you may have seen that both compiler bugs have been >>> confirmed by Microsoft by now, and that Gratian Lup (Microsoft) >>> commented that these two bugs have been been fixed for the Visual >>> Studio 2015: >>> >>> "Compiler generates divpd instruction on non-aligned data", >>> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166 >>> >>> "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer >>> conversions...", >>> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 >>> >>> Matt, thanks for your vote on the bug report :-) >>> >>> >>> Kind regards, Niels >>> -- >>> Niels Dekker >>> Scientific programmer at LKEB, Leiden University Medical Center > > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From blowekamp at mail.nih.gov Thu Jan 29 13:02:14 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Thu, 29 Jan 2015 13:02:14 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> Message-ID: <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> Hello, I also have a SimpleITK build with Visual Studio 2013 (VS12) for SimpleITK for Win64 build against the ITK release branch: https://open.cdash.org/buildSummary.php?buildid=3671881 It is down to 36 failures from 1287. The CollidingFronts and FastMarchingUpwindGradient are SimpleITK issues. What's interesting is that there no report internal compiler error, with 64-bit ids enabled. We a bunch of Deconvolution filters failing put nothing else. Well this builds confidence in correct code being generated, I still would not give the generated code away to anyone and expect it to work 100%. I think we should likely add a CMake warning for this problematic compiler and architecture. Thanks, Brad On Jan 29, 2015, at 10:27 AM, Matt McCormick wrote: > Hi Niels, > > That is excellent! > > I'll wait until we have the patches merged into the release branch > before releasing 4.7.1. We can then explain the situation in the > release announcement to improve awareness. I don't think an issue > tracker issue will help. > > Thanks, > Matt > > On Thu, Jan 29, 2015 at 10:16 AM, Niels Dekker wrote: >> Good news: We just did an Experimental Build, including ITK_USE_64BITS and >> Module_ITKReview, with our (local) patches, and it has "100% tests passed, >> 0 tests failed out of 2517"! Build Name: "Win64-VS2013-Release-64BITS_IDS >> patched", https://open.cdash.org/buildSummary.php?buildid=3673003 >> >> In order to make more people aware of these Win64 compiler bugs, as well >> as our workarounds, do you think it would be useful to add an "issue" (or >> two) to https://issues.itk.org/jira/secure/Dashboard.jspa ? >> >> Kind regards, Niels >> >> Matt McCormick wrote on Jan 27, 2015: >>> Thanks for the update! Looking forward to the patches! >>> >>> On Tue, Jan 27, 2015 at 2:54 PM, Niels Dekker wrote: >>>> Status update: Floris Berendsen and I are currently testing a few >>>> workarounds for the build errors and test failures that appeared at the >>>> Dashboard for Win64-VS12-Release-Shared after setting >>>> ITK_USE_64BITS_IDS: >>>> https://open.cdash.org/buildSummary.php?buildid=3670301 >>>> >>>> Next week, we expect to be able to submit a patch to >>>> http://review.source.kitware.com, with the help of our colleague Marius >>>> Staring. Hope it's still in time for the next ITK release :-) >>>> >>>> Furthermore, you may have seen that both compiler bugs have been >>>> confirmed by Microsoft by now, and that Gratian Lup (Microsoft) >>>> commented that these two bugs have been been fixed for the Visual >>>> Studio 2015: >>>> >>>> "Compiler generates divpd instruction on non-aligned data", >>>> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166 >>>> >>>> "VS2013 x64 Release (/O2) fatal error C1001 on narrowing integer >>>> conversions...", >>>> https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1093610 >>>> >>>> Matt, thanks for your vote on the bug report :-) >>>> >>>> >>>> Kind regards, Niels >>>> -- >>>> Niels Dekker >>>> Scientific programmer at LKEB, Leiden University Medical Center >> >> >> _______________________________________________ >> Community mailing list >> Community at itk.org >> http://public.kitware.com/mailman/listinfo/community > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From matt.mccormick at kitware.com Thu Jan 29 14:04:30 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 29 Jan 2015 14:04:30 -0500 Subject: [ITK] [ANNOUNCE] ITK Software Guide hardcopies are available on Amazon! Message-ID: Hardcopies of The ITK Software Guide are available on Amazon! Book 1: http://www.amazon.com/ITK-Software-Guide-Book-Introduction/dp/1930934270/ Book 2: http://www.amazon.com/ITK-Software-Guide-Book-Functionality/dp/1930934289/ Thanks to everyone who helped make this happen! New versions of the book will be available with subsequent releases. If you would like to contribute to the Guide, see http://itk.org/gitweb?p=ITKSoftwareGuide.git;a=blob;f=README.md;h=eadf34576971b36c6f1c64c9f9590d7194fa4463;hb=HEAD From niels-xtk at xs4all.nl Thu Jan 29 18:05:34 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Fri, 30 Jan 2015 00:05:34 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> Message-ID: <54CABCBE.7040209@xs4all.nl> Thanks for your reply, Bradley. Are you sure that those 36 SimpleITK test failures are also caused by Win64 VS12 compiler bugs? They don't seem to be caused by segfaults, whereas most of the 1296 test failures from 12 days ago were marked as SEGFAULT: https://open.cdash.org/viewTest.php?onlyfailed&buildid=3656652 (Win64-vs12-shared-next, 2015-01-17). I see many test failures from other compilers and architectures as well, at https://open.cdash.org/index.php?project=SimpleITK&date=2015-01-29 Are these just SimpleITK issues? If those 36 SimpleITK test failures are from another Win64 VS12 compiler bug, I would be very interested to see a minimal example. You know, the segfault Win64 VS12 compiler bug can be reproduced by a program of just 10 lines of code, without any #include. (As I commented at http://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166). Any way, early next week we'll hope to submit our ITK patch. Maybe that also fix some of the SimpleITK issues... :-) Kind regards, Niels Bradley Lowekamp wrote on Jan. 29, 2015: > I also have a SimpleITK build with Visual Studio 2013 (VS12) > for SimpleITK for Win64 build against the ITK release branch: > 2 > https://open.cdash.org/buildSummary.php?buildid=3671881 > > It is down to 36 failures from 1287. The CollidingFronts and > FastMarchingUpwindGradient are SimpleITK issues. > > What's interesting is that there no report internal compiler error, > with 64-bit ids enabled. We a bunch of Deconvolution filters > failing put nothing else. > > Well this builds confidence in correct code being generated, I > still would not give the generated code away to anyone and expect > it to work 100%. > > I think we should likely add a CMake warning for this problematic > compiler and architecture. From hobbsk at ohio.edu Thu Jan 29 18:18:10 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Thu, 29 Jan 2015 18:18:10 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions Message-ID: <54CABFB2.8080309@ohio.edu> I have a very simple test case that is broken on bubbles (a host that submits a nightly dashboard build) I'm using nightly ITK and nightly CMake CMakeLists.txt : cmake_minimum_required( VERSION 2.8.7 ) project( Testi_prog ) find_package( ITK ) include( ${ITK_USE_FILE} ) add_executable( test_prog test_prog.cxx ) target_link_libraries( test_prog ) test_prog.cxx: int main( int argc, char** argv) { return 0; } The build goes fine with the : find_package( ITK ) include( ${ITK_USE_FILE} ) but as soon as those lines are in I get : WARNING: Function-style preprocessor definitions may not be passed on the compiler command line because many compilers do not support it. CMake is dropping a preprocessor definition: ( Consider defining the macro in a (configured) header file. WARNING: Function-style preprocessor definitions may not be passed on the compiler command line because many compilers do not support it. CMake is dropping a preprocessor definition: ( Consider defining the macro in a (configured) header file. from ccmake and then : Scanning dependencies of target test_prog [100%] Building CXX object CMakeFiles/test_prog.dir/test_prog.cxx.o /bin/sh: -c: line 0: syntax error near unexpected token `)' /bin/sh: -c: line 0: `/usr/lib64/ccache/c++ -D) -DITK_IO_FACTORY_REGISTER_MANAGER.... from make -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hobbsk at ohio.edu Thu Jan 29 18:28:06 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Thu, 29 Jan 2015 18:28:06 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CABFB2.8080309@ohio.edu> References: <54CABFB2.8080309@ohio.edu> Message-ID: <54CAC206.6020105@ohio.edu> On 01/29/2015 06:18 PM, Kevin H. Hobbs wrote: > The build goes fine with the : > > find_package( ITK ) > include( ${ITK_USE_FILE} ) The build goes fine _without_ these lines. The build also goes fine on my other machine which submits a dashboard build but without wrapping turned on. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From blowekamp at mail.nih.gov Thu Jan 29 18:54:41 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Thu, 29 Jan 2015 18:54:41 -0500 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <54CABCBE.7040209@xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <2b9211ea6ec6ba2e607309741302ac97.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> <54CABCBE.7040209@xs4all.nl> Message-ID: <9B61CEA5-BEB1-433F-9B55-7E0F240FF52A@mail.nih.gov> Hi, No just 26 of them that are deconvolution filters, not the fast marching/colliding fronts ones. Most of those others where fixed in today builds on next [1]. It's quite hard to maintain all those builds, and wrappers for 7 different languages, please pardon the red ness. The top master/package section should be green except for window 64 linking issue. The BasicFilters.* failing tests are the C++ native code, and don't have the extra language to hide the abnormal program termination. The error reported by gtest is: unknown file: error: SEH exception with code 0xc0000005 thrown in the test body. I truthfully haven't seen that error before, and googling it looks like its similar to a segfault, I believe I saw some of these filters failing before it ITK with this compiler. I hope your patch addresses these issue too, but it could very well be one of the existing examples you demonstrated that is not covered by ITK tests. Brad [1] https://open.cdash.org/viewTest.php?onlyfailed&buildid=3673220 On Jan 29, 2015, at 6:05 PM, Niels Dekker wrote: > Thanks for your reply, Bradley. > > Are you sure that those 36 SimpleITK test failures are also caused by Win64 VS12 compiler bugs? They don't seem to be caused by segfaults, whereas most of the 1296 test failures from 12 days ago were marked as SEGFAULT: https://open.cdash.org/viewTest.php?onlyfailed&buildid=3656652 (Win64-vs12-shared-next, 2015-01-17). > > I see many test failures from other compilers and architectures as well, at https://open.cdash.org/index.php?project=SimpleITK&date=2015-01-29 Are these just SimpleITK issues? > > If those 36 SimpleITK test failures are from another Win64 VS12 compiler bug, I would be very interested to see a minimal example. You know, the segfault Win64 VS12 compiler bug can be reproduced by a program of just 10 lines of code, without any #include. (As I commented at http://connect.microsoft.com/VisualStudio/feedbackdetail/view/1060166). > > Any way, early next week we'll hope to submit our ITK patch. Maybe that also fix some of the SimpleITK issues... :-) > > Kind regards, Niels > > Bradley Lowekamp wrote on Jan. 29, 2015: >> I also have a SimpleITK build with Visual Studio 2013 (VS12) >> for SimpleITK for Win64 build against the ITK release branch: >> 2 >> https://open.cdash.org/buildSummary.php?buildid=3671881 >> >> It is down to 36 failures from 1287. The CollidingFronts and >> FastMarchingUpwindGradient are SimpleITK issues. >> >> What's interesting is that there no report internal compiler error, >> with 64-bit ids enabled. We a bunch of Deconvolution filters >> failing put nothing else. >> >> Well this builds confidence in correct code being generated, I >> still would not give the generated code away to anyone and expect >> it to work 100%. >> >> I think we should likely add a CMake warning for this problematic >> compiler and architecture. > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.malaterre at gmail.com Fri Jan 30 03:51:25 2015 From: mathieu.malaterre at gmail.com (Mathieu Malaterre) Date: Fri, 30 Jan 2015 09:51:25 +0100 Subject: [ITK] [ITK-dev] [ANNOUNCE] ITK Software Guide hardcopies are available on Amazon! In-Reply-To: References: Message-ID: On Thu, Jan 29, 2015 at 8:04 PM, Matt McCormick wrote: > Hardcopies of The ITK Software Guide are available on Amazon! > > > Book 1: http://www.amazon.com/ITK-Software-Guide-Book-Introduction/dp/1930934270/ > > Book 2: http://www.amazon.com/ITK-Software-Guide-Book-Functionality/dp/1930934289/ > > > Thanks to everyone who helped make this happen! If you do so, don't forget to set a charity at smile.amazon.com. For example some people can pick: Software In The Public Interest Inc [*] among the possible charities. https://en.wikipedia.org/wiki/Software_in_the_Public_Interest 2cts From niels-xtk at xs4all.nl Fri Jan 30 06:13:24 2015 From: niels-xtk at xs4all.nl (Niels Dekker) Date: Fri, 30 Jan 2015 12:13:24 +0100 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <9B61CEA5-BEB1-433F-9B55-7E0F240FF52A@mail.nih.gov> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> <54CABCBE.7040209@xs4all.nl> <9B61CEA5-BEB1-433F-9B55-7E0F240FF52A@mail.nih.gov> Message-ID: <5d2a87fc569862cf0292c8c5fbfb44f8.squirrel@webmail.xs4all.nl> Hi Bradley, I googled as well, but found no relation so far between the SimpleITK SEH exceptions and the Win64 VS12 access violation compiler bug we've been discussing. Could the SimpleITK/VS12 problem be related to the following? http://stackoverflow.com/questions/15953255/seh-exception-when-using-googlemock Xu Chang answered on Dec 10, 2014, at the Stackoverflow page: > After a lot of try, I found the reason is: > > You have to compile the gmock and your project in the same configuration! > > That means you have to compile the gmock in DEBUG(RELEASE) configuration, > if you want to link it in the DEBUG(RELEASE) mode. If not, the > > unknown file: error: SEH exception with code 0xc0000005 thrown in the test body. > > always occurs. Does that Stackoverflow answer seem helpful to you? I have to admit, I'm not familiar with this stuff, but can you check the gmock configuration for VS12 Win64 Release? Kind regards, Niels Bradley Lowekamp wrote on Jan 30, 2015: > No just 26 of them that are deconvolution filters, not the fast > marching/colliding fronts ones. Most of those others where fixed in today > builds on next [1]. > > It's quite hard to maintain all those builds, and wrappers for 7 different > languages, please pardon the red ness. The top master/package section > should be green except for window 64 linking issue. > > The BasicFilters.* failing tests are the C++ native code, and don't have > the extra language to hide the abnormal program termination. > > The error reported by gtest is: > unknown file: error: SEH exception with code 0xc0000005 thrown in the test > body. > > I truthfully haven't seen that error before, and googling it looks like > its similar to a segfault, I believe I saw some of these filters failing > before it ITK with this compiler. > > I hope your patch addresses these issue too, but it could very well be one > of the existing examples you demonstrated that is not covered by ITK > tests. > > Brad From blowekamp at mail.nih.gov Fri Jan 30 08:39:00 2015 From: blowekamp at mail.nih.gov (Lowekamp, Bradley (NIH/NLM/LHC) [C]) Date: Fri, 30 Jan 2015 13:39:00 +0000 Subject: [ITK] Win64 Visual Studio 12 segfaults In-Reply-To: <5d2a87fc569862cf0292c8c5fbfb44f8.squirrel@webmail.xs4all.nl> References: <8fbafd44a9b9c364351e7bbf776c896f.squirrel@webmail.xs4all.nl> <54B65976.3060205@xs4all.nl> <54C7ECFE.8080408@xs4all.nl> <45052D5A-CCFA-46FF-91EB-CCA9D40B4DC7@mail.nih.gov> <54CABCBE.7040209@xs4all.nl> <9B61CEA5-BEB1-433F-9B55-7E0F240FF52A@mail.nih.gov>, <5d2a87fc569862cf0292c8c5fbfb44f8.squirrel@webmail.xs4all.nl> Message-ID: The info I read about an SEH exception was here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms680657(v=vs.85).aspx I believe that google test tries to handle these things in the test driver to help recover from things that are recoverable. That is why it's different than expected with the ITK test driver. It sounds to me like they are in the same category with some invalid memory access and miss aligned SSE data. As this only happening with the VS12 64-bits, and 32-bits is OK, I'm blaming the compiler and hoping your patch fixed it :) Thanks, Brad ________________________________________ From: Niels Dekker [niels-xtk at xs4all.nl] Sent: Friday, January 30, 2015 6:13 AM To: community at itk.org Subject: Re: [ITK] Win64 Visual Studio 12 segfaults Hi Bradley, I googled as well, but found no relation so far between the SimpleITK SEH exceptions and the Win64 VS12 access violation compiler bug we've been discussing. Could the SimpleITK/VS12 problem be related to the following? http://stackoverflow.com/questions/15953255/seh-exception-when-using-googlemock Xu Chang answered on Dec 10, 2014, at the Stackoverflow page: > After a lot of try, I found the reason is: > > You have to compile the gmock and your project in the same configuration! > > That means you have to compile the gmock in DEBUG(RELEASE) configuration, > if you want to link it in the DEBUG(RELEASE) mode. If not, the > > unknown file: error: SEH exception with code 0xc0000005 thrown in the test body. > > always occurs. Does that Stackoverflow answer seem helpful to you? I have to admit, I'm not familiar with this stuff, but can you check the gmock configuration for VS12 Win64 Release? Kind regards, Niels Bradley Lowekamp wrote on Jan 30, 2015: > No just 26 of them that are deconvolution filters, not the fast > marching/colliding fronts ones. Most of those others where fixed in today > builds on next [1]. > > It's quite hard to maintain all those builds, and wrappers for 7 different > languages, please pardon the red ness. The top master/package section > should be green except for window 64 linking issue. > > The BasicFilters.* failing tests are the C++ native code, and don't have > the extra language to hide the abnormal program termination. > > The error reported by gtest is: > unknown file: error: SEH exception with code 0xc0000005 thrown in the test > body. > > I truthfully haven't seen that error before, and googling it looks like > its similar to a segfault, I believe I saw some of these filters failing > before it ITK with this compiler. > > I hope your patch addresses these issue too, but it could very well be one > of the existing examples you demonstrated that is not covered by ITK > tests. > > Brad _______________________________________________ Community mailing list Community at itk.org http://public.kitware.com/mailman/listinfo/community From ronn at rlkling.com Fri Jan 30 08:30:44 2015 From: ronn at rlkling.com (Ronn Kling) Date: Fri, 30 Jan 2015 08:30:44 -0500 Subject: [ITK] how to output 3d tiff stack from a memory buffer Message-ID: <54CB8784.2070002@rlkling.com> All, I have a 3D memory buffer (resampledBuffer) that came from a non ITK source and I want to write it out as a 3D tiff stack. This is what I am trying. Now I know that FillBuffer only takes a constant fixed pixel type, but there must be a way to get resampledBuffer into them resampleImage pointer? typedef itk::ImageFileWriter< movingImageType > MovingWriterType; MovingWriterType::Pointer movingWriter = MovingWriterType::New(); itk::ImageIOBase::Pointer imageIO3 = itk::TIFFImageIO::New(); movingWriter->SetImageIO(imageIO3); movingWriter->SetFileName(outputFileName); //output the 3d tiff stack typedef itk::Image< int, 3 > ImageType; ImageType::Pointer resampledImage = ImageType::New(); resampledImage->FillBuffer(resampledBuffer); //not right, but what to use instead? movingWriter->SetInput(resampledImage); movingWriter->Write(); From blowekamp at mail.nih.gov Fri Jan 30 09:04:19 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Fri, 30 Jan 2015 09:04:19 -0500 Subject: [ITK] how to output 3d tiff stack from a memory buffer In-Reply-To: <54CB8784.2070002@rlkling.com> References: <54CB8784.2070002@rlkling.com> Message-ID: Hello, I believe you are looking for the ImportImageFilter: http://www.itk.org/Doxygen/html/classitk_1_1ImportImageFilter.html There are a few examples listed in the doxygen to get you started. Brad On Jan 30, 2015, at 8:30 AM, Ronn Kling wrote: > All, > > I have a 3D memory buffer (resampledBuffer) that came from a non ITK source and I want to write it out as a 3D tiff stack. This is what I am trying. Now I know that FillBuffer only takes a constant fixed pixel type, but there must be a way to get resampledBuffer into them resampleImage pointer? > > typedef itk::ImageFileWriter< movingImageType > MovingWriterType; > MovingWriterType::Pointer movingWriter = MovingWriterType::New(); > itk::ImageIOBase::Pointer imageIO3 = itk::TIFFImageIO::New(); > movingWriter->SetImageIO(imageIO3); > movingWriter->SetFileName(outputFileName); > > //output the 3d tiff stack > typedef itk::Image< int, 3 > ImageType; > ImageType::Pointer resampledImage = ImageType::New(); > > resampledImage->FillBuffer(resampledBuffer); //not right, but what to use instead? > > movingWriter->SetInput(resampledImage); > movingWriter->Write(); > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community From blowekamp at mail.nih.gov Fri Jan 30 09:16:33 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Fri, 30 Jan 2015 09:16:33 -0500 Subject: [ITK] [ITK-dev] Reading BSplineDeformableTransform with out V3 Compatibility Message-ID: <4ED50C22-6805-47B5-BAA4-AE924BD18B10@mail.nih.gov> Hello, I would like suggest that we still support reading the BSplineDeformableTransform by default even when V3 compatibility is disabled [1], to better support ITK ability to read older transform. The thought is that may be we should still support reading the older transform. Here is the related Slicer issue: https://github.com/Slicer/Slicer/pull/227 The registering of these older transforms needs to be done in Slicer on ITK. Thought? Brad [1] https://github.com/InsightSoftwareConsortium/ITK/blob/f02a176972ad4f4266cf8ae20b498c10c4218cd0/Modules/IO/TransformBase/src/itkTransformFactoryBase.cxx#L98-L101 _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hobbsk at ohio.edu Fri Jan 30 12:54:53 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Fri, 30 Jan 2015 12:54:53 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CABFB2.8080309@ohio.edu> References: <54CABFB2.8080309@ohio.edu> Message-ID: <54CBC56D.5070200@ohio.edu> The problem goes away when I disable : Module_ITKVtkGlue:BOOL=ON -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hobbsk at ohio.edu Fri Jan 30 13:08:39 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Fri, 30 Jan 2015 13:08:39 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CABFB2.8080309@ohio.edu> References: <54CABFB2.8080309@ohio.edu> Message-ID: <54CBC8A7.2030500@ohio.edu> D?enan, This seems to be related to vtkGlue. Could it be related to your recent commit? On 01/29/2015 06:18 PM, Kevin H. Hobbs wrote: > I have a very simple test case that is broken on bubbles (a host that > submits a nightly dashboard build) > > I'm using nightly ITK and nightly CMake > > CMakeLists.txt : > > cmake_minimum_required( VERSION 2.8.7 ) > project( Testi_prog ) > > find_package( ITK ) > include( ${ITK_USE_FILE} ) > > add_executable( test_prog test_prog.cxx ) > target_link_libraries( test_prog ) > > test_prog.cxx: > > int main( int argc, char** argv) > { > return 0; > } > > The build goes fine with the : > > find_package( ITK ) > include( ${ITK_USE_FILE} ) > > but as soon as those lines are in I get : > > WARNING: Function-style preprocessor definitions may not be passed on > the compiler > command line because many compilers do not support it. > CMake is dropping a preprocessor definition: ( > Consider defining the macro in a (configured) header file. > > > WARNING: Function-style preprocessor definitions may not be passed on > the compiler > command line because many compilers do not support it. > CMake is dropping a preprocessor definition: ( > Consider defining the macro in a (configured) header file. > > from ccmake and then : > > Scanning dependencies of target test_prog > [100%] Building CXX object CMakeFiles/test_prog.dir/test_prog.cxx.o > /bin/sh: -c: line 0: syntax error near unexpected token `)' > /bin/sh: -c: line 0: `/usr/lib64/ccache/c++ -D) > -DITK_IO_FACTORY_REGISTER_MANAGER.... > > from make > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hobbsk at ohio.edu Fri Jan 30 13:50:51 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Fri, 30 Jan 2015 13:50:51 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> Message-ID: <54CBD28B.8010603@ohio.edu> On 01/30/2015 01:18 PM, Dzenan Zukic wrote: > /bin/sh: -c: line 0: syntax error near unexpected token `)' >> /bin/sh: -c: line 0: `/usr/lib64/ccache/c++ -D) I think it's the -D) that's causing the problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hans-johnson at uiowa.edu Fri Jan 30 14:53:29 2015 From: hans-johnson at uiowa.edu (Johnson, Hans J) Date: Fri, 30 Jan 2015 19:53:29 +0000 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CBD28B.8010603@ohio.edu> References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> Message-ID: <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> I too have been fighting with this problem for several days. I can not seem to track it down. in a file called flags.make, there is a line: CXX_DEFINES = -D) -DITK_IOFACTORY_REGISTERMANGER ?.< other stuff> This happens when building agains VTK and ITK, but with ITK I have VTKGlue turned off. It has been very hard to track down. I don?t understand where the ?CXX_DEFINES? are being set. Additonally, a related error message shows up during configuration: WARNING: Function-style preprocessor definitions may not be passed on the compiler command line because many compilers do not support it. CMake is dropping a preprocessor definiton: ( Consider defining the macro in a (configured) header file. I have been trying to figure out what is going on for almost a day now. ======================================================================== Hans J. Johnson, Ph.D., Associate Professor Electrical and Computer Engineering (Primary), Biomedical Engineering, Psychiatry hans-johnson at uiowa.edu (319) 621 7185 (cell) (319) 384 3538 ECE Phone (Primary) (319) 353 8587 Psychiatry Phone (Secondary) 4613 Seamans Center Iowa City, IA 52242 > On Jan 30, 2015, at 12:50 PM, Kevin H. Hobbs wrote: > > On 01/30/2015 01:18 PM, Dzenan Zukic wrote: >> /bin/sh: -c: line 0: syntax error near unexpected token `)' >>> /bin/sh: -c: line 0: `/usr/lib64/ccache/c++ -D) > > I think it's the -D) that's causing the problem. > > _______________________________________________ > 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://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://public.kitware.com/mailman/listinfo/insight-developers ________________________________ Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. ________________________________ _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matt.mccormick at kitware.com Fri Jan 30 15:00:31 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 30 Jan 2015 15:00:31 -0500 Subject: [ITK] [ITK-dev] [ANNOUNCE] ITK Software Guide hardcopies are available on Amazon! In-Reply-To: References: Message-ID: On Fri, Jan 30, 2015 at 3:51 AM, Mathieu Malaterre wrote: > On Thu, Jan 29, 2015 at 8:04 PM, Matt McCormick > wrote: >> Hardcopies of The ITK Software Guide are available on Amazon! >> >> >> Book 1: http://www.amazon.com/ITK-Software-Guide-Book-Introduction/dp/1930934270/ >> >> Book 2: http://www.amazon.com/ITK-Software-Guide-Book-Functionality/dp/1930934289/ >> >> >> Thanks to everyone who helped make this happen! > > If you do so, don't forget to set a charity at smile.amazon.com. > > For example some people can pick: Software In The Public Interest Inc > [*] among the possible charities. > > https://en.wikipedia.org/wiki/Software_in_the_Public_Interest +1! PS. For community members in Europe, the books are also available on Amazon's sites for Spain, the United Kingdom, Germany, France, and Italy. Please see the website for the links: http://www.kitware.com/products/books.php From brad.king at kitware.com Fri Jan 30 16:06:57 2015 From: brad.king at kitware.com (Brad King) Date: Fri, 30 Jan 2015 16:06:57 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> Message-ID: <54CBF271.5030707@kitware.com> On 1/30/2015 2:53 PM, Johnson, Hans J wrote: > CXX_DEFINES = -D) -DITK_IOFACTORY_REGISTERMANGER ?.< other stuff> > > This happens when building agains VTK and ITK, but with ITK I have > VTKGlue turned off. I cannot reproduce this with a basic setup of the case described. What versions (Git commit sha1s) of ITK and VTK did you build? What version of CMake are you using? What configuration options were given to each of ITK and VTK? Can you reproduce it with a simple CMakeLists.txt for the app code? Thanks, -Brad _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matt.mccormick at kitware.com Fri Jan 30 16:14:20 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Fri, 30 Jan 2015 16:14:20 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CBF271.5030707@kitware.com> References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> <54CBF271.5030707@kitware.com> Message-ID: On Fri, Jan 30, 2015 at 4:06 PM, Brad King wrote: > On 1/30/2015 2:53 PM, Johnson, Hans J wrote: >> CXX_DEFINES = -D) -DITK_IOFACTORY_REGISTERMANGER ?.< other stuff> >> >> This happens when building agains VTK and ITK, but with ITK I have >> VTKGlue turned off. > > I cannot reproduce this with a basic setup of the case described. > > What versions (Git commit sha1s) of ITK and VTK did you build? > What version of CMake are you using? > What configuration options were given to each of ITK and VTK? > Can you reproduce it with a simple CMakeLists.txt for the app code? I have been able to reproduce it. It seems to be related to this change: http://review.source.kitware.com/#/c/18944/1 I have ITKVtkGlue ON, ITK_WRAP_PYTHON ON (although I do not know if they are both required). It happens with both CMake master and CMake 3.1.0 (although I get two WARNINGS with CMake master and a single warning with CMake 3.1.0). Without the above change, errors occur on Windows, when ${ITKVtkGlue_VTK_DEFINITIONS} has content. On Unix, when it does not have content, it appears to cause issues with the above change. What is the best approach here? Thanks, Matt _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From brad.king at kitware.com Fri Jan 30 16:43:16 2015 From: brad.king at kitware.com (Brad King) Date: Fri, 30 Jan 2015 16:43:16 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> <54CBF271.5030707@kitware.com> Message-ID: <54CBFAF4.400@kitware.com> On 1/30/2015 4:14 PM, Matt McCormick wrote: > I have been able to reproduce it. It seems to be related to this change: > > http://review.source.kitware.com/#/c/18944/1 > > Without the above change, errors occur on Windows, when > ${ITKVtkGlue_VTK_DEFINITIONS} has content. On Unix, when it does not > have content, it appears to cause issues with the above change. The problem is that the variable should not be evaluated during generation. A literal reference to the variable should be generated. Here is a fix: http://review.source.kitware.com/19065 -Brad _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hobbsk at ohio.edu Fri Jan 30 17:43:54 2015 From: hobbsk at ohio.edu (Kevin H. Hobbs) Date: Fri, 30 Jan 2015 17:43:54 -0500 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CBFAF4.400@kitware.com> References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> <54CBF271.5030707@kitware.com> <54CBFAF4.400@kitware.com> Message-ID: <54CC092A.9030001@ohio.edu> On 01/30/2015 04:43 PM, Brad King wrote: > Here is a fix: > > http://review.source.kitware.com/19065 > Thank you Brad! I see this has been merged. I'll check in the morning if my code builds against nightly ITK. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From hans-johnson at uiowa.edu Fri Jan 30 17:46:22 2015 From: hans-johnson at uiowa.edu (Johnson, Hans J) Date: Fri, 30 Jan 2015 22:46:22 +0000 Subject: [ITK] [ITK-dev] Function-style preprocessor definitions In-Reply-To: <54CBFAF4.400@kitware.com> References: <54CABFB2.8080309@ohio.edu> <54CBC8A7.2030500@ohio.edu> <54CBD28B.8010603@ohio.edu> <5F91E259-B96D-42DE-A6EB-9A9B0661001C@uiowa.edu> <54CBF271.5030707@kitware.com> <54CBFAF4.400@kitware.com> Message-ID: THANK YOU ALL! I was looking all over VTK code to try to figure out what was wrong. It is GREAT that you found the real culprit. Hans ======================================================================== Hans J. Johnson, Ph.D., Associate Professor Electrical and Computer Engineering (Primary), Biomedical Engineering, Psychiatry hans-johnson at uiowa.edu (319) 621 7185 (cell) (319) 384 3538 ECE Phone (Primary) (319) 353 8587 Psychiatry Phone (Secondary) 4613 Seamans Center Iowa City, IA 52242 > On Jan 30, 2015, at 3:43 PM, Brad King wrote: > > On 1/30/2015 4:14 PM, Matt McCormick wrote: >> I have been able to reproduce it. It seems to be related to this change: >> >> http://review.source.kitware.com/#/c/18944/1 >> >> Without the above change, errors occur on Windows, when >> ${ITKVtkGlue_VTK_DEFINITIONS} has content. On Unix, when it does not >> have content, it appears to cause issues with the above change. > > The problem is that the variable should not be evaluated during > generation. A literal reference to the variable should be generated. > Here is a fix: > > http://review.source.kitware.com/19065 > > -Brad ________________________________ Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. ________________________________ _______________________________________________ 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://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://public.kitware.com/mailman/listinfo/insight-developers From matimontg at gmail.com Sat Jan 31 08:17:12 2015 From: matimontg at gmail.com (Matias Montroull) Date: Sat, 31 Jan 2015 10:17:12 -0300 Subject: [ITK] [ITK-users] uncompress failed Message-ID: Hi, I'm running the ImageSeriesWriter example: /*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #include "itkGDCMImageIO.h" #include "itkNumericSeriesFileNames.h" #include "itkImageFileReader.h" #include "itkImageSeriesWriter.h" #include "itkMetaDataObject.h" #include #include "itksys/SystemTools.hxx" // Software Guide : BeginLatex // // This example illustrates how to read a 3D image from a non DICOM file and write it as a series of DICOM slices. // with some changed header information. Header // // Please note that modifying the content of a DICOM header is a very risky // operation. The Header contains fundamental information about the patient // and therefore its consistency must be protected from any data corruption. // Before attempting to modify the DICOM headers of your files, you must make // sure that you have a very good reason for doing so, and that you can ensure // that this information change will not result in a lower quality of health // care to be delivered to the patient. // // \index{DICOM!Writing Series} // // Software Guide : EndLatex int main( int argc, char* argv[] ) { if( argc < 3 ) { std::cerr << "Usage: " << argv[0]; std::cerr << " InputImage OutputDicomDirectory" << std::endl; return EXIT_FAILURE; } typedef signed short PixelType; const unsigned int Dimension = 3; typedef itk::Image< PixelType, Dimension > ImageType; typedef itk::ImageFileReader< ImageType > ReaderType; ReaderType::Pointer reader = ReaderType::New(); reader->SetFileName( argv[1] ); try { reader->Update(); } catch (itk::ExceptionObject &excp) { std::cerr << "Exception thrown while writing the image" << std::endl; std::cerr << excp << std::endl; return EXIT_FAILURE; } typedef itk::GDCMImageIO ImageIOType; typedef itk::NumericSeriesFileNames NamesGeneratorType; ImageIOType::Pointer gdcmIO = ImageIOType::New(); const char * outputDirectory = argv[2]; itksys::SystemTools::MakeDirectory( outputDirectory ); typedef signed short OutputPixelType; const unsigned int OutputDimension = 2; typedef itk::Image< OutputPixelType, OutputDimension > Image2DType; typedef itk::ImageSeriesWriter< ImageType, Image2DType > SeriesWriterType; NamesGeneratorType::Pointer namesGenerator = NamesGeneratorType::New(); itk::MetaDataDictionary & dict = gdcmIO->GetMetaDataDictionary(); std::string tagkey, value; tagkey = "0008|0060"; // Modality value = "MR"; itk::EncapsulateMetaData(dict, tagkey, value ); tagkey = "0008|0008"; // Image Type value = "DERIVED\\SECONDARY"; itk::EncapsulateMetaData(dict, tagkey, value); tagkey = "0008|0064"; // Conversion Type value = "DV"; itk::EncapsulateMetaData(dict, tagkey, value); SeriesWriterType::Pointer seriesWriter = SeriesWriterType::New(); seriesWriter->SetInput( reader->GetOutput() ); seriesWriter->SetImageIO( gdcmIO ); ImageType::RegionType region = reader->GetOutput()->GetLargestPossibleRegion(); ImageType::IndexType start = region.GetIndex(); ImageType::SizeType size = region.GetSize(); std::string format = outputDirectory; format += "/image%03d.dcm"; namesGenerator->SetSeriesFormat( format.c_str() ); namesGenerator->SetStartIndex( start[2] ); namesGenerator->SetEndIndex( start[2] + size[2] - 1 ); namesGenerator->SetIncrementIndex( 1 ); seriesWriter->SetFileNames( namesGenerator->GetFileNames() ); seriesWriter->UseCompressionOn(); try { seriesWriter->Update(); } catch( itk::ExceptionObject & excp ) { std::cerr << "Exception thrown while writing the series " << std::endl; std::cerr << excp << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; } *And when reading images in .Z format (I believe it is Zraw), it returns an error indicating: "Uncompress Failed".* Any hint why this may be happening? Thank you, Matias. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Sat Jan 31 10:53:31 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Sat, 31 Jan 2015 10:53:31 -0500 Subject: [ITK] [ITK-users] uncompress failed In-Reply-To: References: Message-ID: Hi Matias, .Z is not a supported file extension as I can tell. If it is a "raw" image, the RawImageIO will need to be used explicitly with the correct metadata added. See [1]. HTH, Matt [1] http://itk.org/Insight/Doxygen/html/classitk_1_1RawImageIO.html On Sat, Jan 31, 2015 at 8:17 AM, Matias Montroull wrote: > Hi, > > I'm running the ImageSeriesWriter example: > > /*========================================================================= > * > * Copyright Insight Software Consortium > * > * Licensed under the Apache License, Version 2.0 (the "License"); > * you may not use this file except in compliance with the License. > * You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0.txt > * > * Unless required by applicable law or agreed to in writing, software > * distributed under the License is distributed on an "AS IS" BASIS, > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > * See the License for the specific language governing permissions and > * limitations under the License. > * > *=========================================================================*/ > #include "itkGDCMImageIO.h" > #include "itkNumericSeriesFileNames.h" > #include "itkImageFileReader.h" > #include "itkImageSeriesWriter.h" > #include "itkMetaDataObject.h" > #include > #include "itksys/SystemTools.hxx" > // Software Guide : BeginLatex > // > // This example illustrates how to read a 3D image from a non DICOM file and > write it as a series of DICOM slices. > // with some changed header information. Header > // > // Please note that modifying the content of a DICOM header is a very risky > // operation. The Header contains fundamental information about the patient > // and therefore its consistency must be protected from any data corruption. > // Before attempting to modify the DICOM headers of your files, you must > make > // sure that you have a very good reason for doing so, and that you can > ensure > // that this information change will not result in a lower quality of health > // care to be delivered to the patient. > // > // \index{DICOM!Writing Series} > // > // Software Guide : EndLatex > int main( int argc, char* argv[] ) > { > if( argc < 3 ) > { > std::cerr << "Usage: " << argv[0]; > std::cerr << " InputImage OutputDicomDirectory" << std::endl; > return EXIT_FAILURE; > } > typedef signed short PixelType; > const unsigned int Dimension = 3; > typedef itk::Image< PixelType, Dimension > ImageType; > typedef itk::ImageFileReader< ImageType > ReaderType; > ReaderType::Pointer reader = ReaderType::New(); > reader->SetFileName( argv[1] ); > try > { > reader->Update(); > } > catch (itk::ExceptionObject &excp) > { > std::cerr << "Exception thrown while writing the image" << std::endl; > std::cerr << excp << std::endl; > return EXIT_FAILURE; > } > typedef itk::GDCMImageIO ImageIOType; > typedef itk::NumericSeriesFileNames NamesGeneratorType; > ImageIOType::Pointer gdcmIO = ImageIOType::New(); > const char * outputDirectory = argv[2]; > itksys::SystemTools::MakeDirectory( outputDirectory ); > typedef signed short OutputPixelType; > const unsigned int OutputDimension = 2; > typedef itk::Image< OutputPixelType, OutputDimension > Image2DType; > typedef itk::ImageSeriesWriter< > ImageType, Image2DType > SeriesWriterType; > NamesGeneratorType::Pointer namesGenerator = NamesGeneratorType::New(); > itk::MetaDataDictionary & dict = gdcmIO->GetMetaDataDictionary(); > std::string tagkey, value; > tagkey = "0008|0060"; // Modality > value = "MR"; > itk::EncapsulateMetaData(dict, tagkey, value ); > tagkey = "0008|0008"; // Image Type > value = "DERIVED\\SECONDARY"; > itk::EncapsulateMetaData(dict, tagkey, value); > tagkey = "0008|0064"; // Conversion Type > value = "DV"; > itk::EncapsulateMetaData(dict, tagkey, value); > SeriesWriterType::Pointer seriesWriter = SeriesWriterType::New(); > seriesWriter->SetInput( reader->GetOutput() ); > seriesWriter->SetImageIO( gdcmIO ); > ImageType::RegionType region = > reader->GetOutput()->GetLargestPossibleRegion(); > ImageType::IndexType start = region.GetIndex(); > ImageType::SizeType size = region.GetSize(); > std::string format = outputDirectory; > format += "/image%03d.dcm"; > namesGenerator->SetSeriesFormat( format.c_str() ); > namesGenerator->SetStartIndex( start[2] ); > namesGenerator->SetEndIndex( start[2] + size[2] - 1 ); > namesGenerator->SetIncrementIndex( 1 ); > seriesWriter->SetFileNames( namesGenerator->GetFileNames() ); > seriesWriter->UseCompressionOn(); > try > { > seriesWriter->Update(); > } > catch( itk::ExceptionObject & excp ) > { > std::cerr << "Exception thrown while writing the series " << std::endl; > std::cerr << excp << std::endl; > return EXIT_FAILURE; > } > return EXIT_SUCCESS; > } > > > And when reading images in .Z format (I believe it is Zraw), it returns an > error indicating: "Uncompress Failed". > > Any hint why this may be happening? > > Thank you, > > Matias. > > > _____________________________________ > 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://public.kitware.com/mailman/listinfo/insight-users > _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users From matt.mccormick at kitware.com Sat Jan 31 11:25:10 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Sat, 31 Jan 2015 11:25:10 -0500 Subject: [ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview In-Reply-To: <54C8CFC2.4000305@mh-hannover.de> References: <54C0CF2E.3060106@mh-hannover.de> <54C2125D.7090801@mh-hannover.de> <54C6029C.4040600@mh-hannover.de> <54C8CFC2.4000305@mh-hannover.de> Message-ID: On Wed, Jan 28, 2015 at 7:02 AM, Dr. Roman Grothausmann wrote: > Hi Matt, > > On 26/01/15 17:54, Matt McCormick wrote: >> I do not think the Midas Journal will be able to build your plugin. > > OK, so I added a VTK test program. Is there a way to test if the automatic > testing environment would be able to build and run my VTK test program > BEFORE submitting the contribution to Midas? > (My last submission never got tested by the system so far, i.e. there is no > colde review reported: > http://www.vtkjournal.org/browse/publication/949) Unfortunately, the submission build system is currently opaque and limited. We have many thoughts on how to improve the journal infrastructure but lack the funding to implement it :-(. >> I would recommend creating build instructions to build against a >> ParaView build tree. I have just verified that ITK builds with the >> ITKVtkGlue module ON when pointing VTK_DIR to the /VTK >> directory. > > Did You use BUILD_SHARED_LIBS ON for both ITK and ParaView? ITK also > compiles fine without any errors for me if I use BUILD_SHARED_LIBS OFF, > however the problems then arise when compiling the plugin. > If You like, You can test the compilation of the plugin with the code from > the git repository: > https://github.com/romangrothausmann/FacetAnalyser Looks like a great project! I was using BUILD_SHARED_LIBS for both. What issue were you seeing? Again, I think the best approach is to build VTK separately, then build both ParaView and ITK against that version. HTH, Matt > > On 26/01/15 17:54, Matt McCormick wrote: >> >> Hi Roman, >> >> Thanks for the update. Great to hear about the Midas Journal article! >> >> I do not think the Midas Journal will be able to build your plugin. >> >> I would recommend creating build instructions to build against a >> ParaView build tree. I have just verified that ITK builds with the >> ITKVtkGlue module ON when pointing VTK_DIR to the /VTK >> directory. >> >> I don't see the install tree VTKTargets.cmake file in my ParaView >> build, either. In the long term, the ParaView CMake configuration >> should be corrected. >> >> HTH, >> Matt >> >> On Mon, Jan 26, 2015 at 4:02 AM, Dr. Roman Grothausmann >> wrote: >>> >>> Hi Matt, >>> >>> >>> Thank You very much for Your reply. >>> I can only find one VTKTargets.cmake in >>> /opt/compilation/paraview-git_build/VTK/ >>> It seems though that it is lacking the relevant entries for the libraries >>> that troubled me, e.g. vtkPVPythonCatalyst and >>> vtkUtilitiesPythonInitializer. >>> >>> I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what >>> installation instructions should I give there? >>> Will the testing environment be able to compile this plugin and its tests >>> or >>> should I disable automatic testing for this contribution? >>> >>> Many thanks for looking into this. >>> Roman >>> >>> >>> On 23/01/15 18:15, Matt McCormick wrote: >>>> >>>> >>>> Hi Roman, >>>> >>>> Thanks for looking into the issue and reporting it to the mailing list. >>>> >>>> Paraview should be installing VTKTargets.cmake, which tells the build >>>> system where to find the libraries. Note that there might be two >>>> VTKTargets.cmake files that are generated -- one for the build tree >>>> and one for the install tree. >>>> >>>> HTH, >>>> Matt >>>> >>>> On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann >>>> wrote: >>>>> >>>>> >>>>> >>>>> On 22/01/15 11:21, Dr. Roman Grothausmann wrote: >>>>>> >>>>>> >>>>>> >>>>>> Adding the abs. file locations to the build command does not help nor >>>>>> does >>>>>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/ >>>>> >>>>> >>>>> >>>>> >>>>> I figured that the vtk dynamic libraries of PV have the ending >>>>> *-pv4.3.so >>>>> which seems to be the reason why the linker does not find them. If I >>>>> create >>>>> symbolic links to these files without the extension: >>>>> >>>>> cd /opt/compilation/paraview-git_build/lib/ >>>>> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done >>>>> >>>>> and adding -L/opt/compilation/paraview-git_build/lib/ to >>>>> CMAKE_CXX_FLAGS >>>>> the compilation of ITK succeeds. >>>>> >>>>> I wonder, is that the way it's meant to be done? >>>>> >>>>> >>>>> >>>>>> What am I missing in my configuration of PV and ITK? >>>>>> >>>>>> When and where should I specify: >>>>>> CMAKE_CXX_FLAGS -fPIC >>>>>> BUILD_SHARED_LIBS ON/OFF >>>>>> >>>>>> Is this the right VTK_DIR specification for ITK: >>>>>> /opt/compilation/ParaView-v4.3.1/build/VTK >>>>>> or >>>>>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3 >>>>>> >>>>>> >>>>>> >>>>>> Many thanks for any help or hints. >>>>>> Roman >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Dr. Roman Grothausmann >>>>> >>>>> Tomographie und Digitale Bildverarbeitung >>>>> Tomography and Digital Image Analysis >>>>> >>>>> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >>>>> Medizinische Hochschule Hannover >>>>> Carl-Neuberg-Str. 1 >>>>> D-30625 Hannover >>>>> >>>>> Tel. +49 511 532-9574 >>>>> _____________________________________ >>>>> 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://public.kitware.com/mailman/listinfo/insight-users >>> >>> >>> >>> -- >>> Dr. Roman Grothausmann >>> >>> Tomographie und Digitale Bildverarbeitung >>> Tomography and Digital Image Analysis >>> >>> Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 >>> Medizinische Hochschule Hannover >>> Carl-Neuberg-Str. 1 >>> D-30625 Hannover >>> >>> Tel. +49 511 532-9574 > > > -- > Dr. Roman Grothausmann > > Tomographie und Digitale Bildverarbeitung > Tomography and Digital Image Analysis > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > Medizinische Hochschule Hannover > Carl-Neuberg-Str. 1 > D-30625 Hannover > > Tel. +49 511 532-9574 _____________________________________ 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://public.kitware.com/mailman/listinfo/insight-users