From lp at 3dside.eu Tue Jan 2 03:13:36 2018 From: lp at 3dside.eu (lolo) Date: Tue, 2 Jan 2018 01:13:36 -0700 (MST) Subject: [ITK-users] add tag to nrrd header Message-ID: <1514880816260-0.post@n7.nabble.com> Hi all, Happy new year. It seems I'm the first post of the year. Very glad :-) I can't find any possibility to add a field (custom or not) into a nrrd header. The NrrdImageIO doesn't allow it (or I missed it). Is someone know how to do that? Thanks, Laurent -- Sent from: http://itk-users.7.n7.nabble.com/ From blowekamp at mail.nih.gov Tue Jan 2 09:21:46 2018 From: blowekamp at mail.nih.gov (Lowekamp, Bradley (NIH/NLM/LHC) [C]) Date: Tue, 2 Jan 2018 14:21:46 +0000 Subject: [ITK-users] [ITK] add tag to nrrd header In-Reply-To: <1514880816260-0.post@n7.nabble.com> References: <1514880816260-0.post@n7.nabble.com> Message-ID: <70B43C7E-153F-4D97-A7BD-B46B93834711@mail.nih.gov> Happy new year to you too! Please repost your questions to: discourse.itk.org Thanks, Brad p.s. I?m looking at the writer now to determine how the meta-data dictionary is handled. On 1/2/18, 3:14 AM, "lolo" wrote: Hi all, Happy new year. It seems I'm the first post of the year. Very glad :-) I can't find any possibility to add a field (custom or not) into a nrrd header. The NrrdImageIO doesn't allow it (or I missed it). Is someone know how to do that? Thanks, Laurent -- Sent from: http://itk-users.7.n7.nabble.com/ The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! ________________________________ 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: https://itk.org/mailman/listinfo/insight-users The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! ________________________________________ Community mailing list Community at itk.org https://itk.org/mailman/listinfo/community From francois.budin at kitware.com Tue Jan 2 16:48:50 2018 From: francois.budin at kitware.com (Francois Budin) Date: Tue, 2 Jan 2018 16:48:50 -0500 Subject: [ITK-users] [ITK] add tag to nrrd header In-Reply-To: <70B43C7E-153F-4D97-A7BD-B46B93834711@mail.nih.gov> References: <1514880816260-0.post@n7.nabble.com> <70B43C7E-153F-4D97-A7BD-B46B93834711@mail.nih.gov> Message-ID: Hello, As Brad said, we are now using the discourse.itk.org forum for questions and answers relative to ITK. I posted an answer to your question here: https://discourse.itk.org/t/how-to-write-a-custom-tag-to-an-image-nrrd-or-other-header/565 Hope this helps, Francois On Tue, Jan 2, 2018 at 9:21 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C] < blowekamp at mail.nih.gov> wrote: > Happy new year to you too! > > Please repost your questions to: discourse.itk.org > > > Thanks, > Brad > > p.s. I?m looking at the writer now to determine how the meta-data > dictionary is handled. > > On 1/2/18, 3:14 AM, "lolo" wrote: > > Hi all, > > Happy new year. It seems I'm the first post of the year. Very glad :-) > > I can't find any possibility to add a field (custom or not) into a nrrd > header. The NrrdImageIO doesn't allow it (or I missed it). > Is someone know how to do that? > > Thanks, > Laurent > > > > -- > Sent from: http://itk-users.7.n7.nabble.com/ > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________________ > Community mailing list > Community at itk.org > https://itk.org/mailman/listinfo/community > > > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.trobles at gmail.com Tue Jan 9 14:46:30 2018 From: fabian.trobles at gmail.com (Fabian Torres) Date: Tue, 9 Jan 2018 13:46:30 -0600 Subject: [ITK-users] Dynamic link library runtime error Message-ID: Hi all I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order to build an application using qt 4.8.7. I have already done this using visual studio 2008 and the libraries and my application works fine. The problem I have is that after some strugle I have already compiled the libraries (ITK and VTK) in visual studio 2013. Now I have compiled my application with the new libraries but when I run it I get a Runtime error I do not understand. The procedure entry point ?End at MetaDictionary@itk@@QAE?AV?$_Tree_iterator at V?... .... ...@@XZ could not be located in the dynamic link library ITKCommon-4.4.dll What does this mean? Thanks -- Fabi?n Torres Robles Maestr?a 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Tue Jan 9 16:21:19 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Tue, 9 Jan 2018 16:21:19 -0500 Subject: [ITK-users] Dynamic link library runtime error In-Reply-To: References: Message-ID: Hi Fabian, it most likely means there is a version mismatch between you application and the DLL. Your application was compiled using a different version from the one used to compile the DLLs. You can use dependency walker to see if your application is using the DLL you expect. You can also try compiling ITK as static libraries, and link your application to that - thus avoid a possibility of such an error. Regards, D?enan On Tue, Jan 9, 2018 at 2:46 PM, Fabian Torres wrote: > Hi all > > I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order > to build an application using qt 4.8.7. > I have already done this using visual studio 2008 and the libraries and my > application works fine. > > The problem I have is that after some strugle I have already compiled the > libraries (ITK and VTK) in visual studio 2013. > Now I have compiled my application with the new libraries but when I run > it I get a Runtime error I do not understand. > > The procedure entry point > ?End at MetaDictionary@itk@@QAE?AV?$_Tree_iterator at V?... > .... > ...@@XZ could not be located in the dynamic link library ITKCommon-4.4.dll > > What does this mean? > > Thanks > > > > -- > Fabi?n Torres Robles > Maestr?a 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 > > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.trobles at gmail.com Tue Jan 16 12:56:23 2018 From: fabian.trobles at gmail.com (Fabian Torres) Date: Tue, 16 Jan 2018 11:56:23 -0600 Subject: [ITK-users] Dynamic link library runtime error In-Reply-To: References: Message-ID: Dear Dzenan Thanks for the response. I do have other compiled versions of ITK so I did as you mentioned and ran dependency walker in my app. It showed me that my app was using the right library, compiled in VS2013. The next step I tried was compiling the libraries (VTK and ITK) without shared libraries option in CMake, and it was like magic, my application compiled and run without problems.. So many thanks for the information. Fabian. Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Tue, Jan 9, 2018 at 3:21 PM, D?enan Zuki? wrote: > Hi Fabian, > > it most likely means there is a version mismatch between you application > and the DLL. Your application was compiled using a different version from > the one used to compile the DLLs. You can use dependency walker > to see if your application is using > the DLL you expect. You can also try compiling ITK as static libraries, and > link your application to that - thus avoid a possibility of such an error. > > Regards, > D?enan > > On Tue, Jan 9, 2018 at 2:46 PM, Fabian Torres > wrote: > >> Hi all >> >> I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order >> to build an application using qt 4.8.7. >> I have already done this using visual studio 2008 and the libraries and >> my application works fine. >> >> The problem I have is that after some strugle I have already compiled the >> libraries (ITK and VTK) in visual studio 2013. >> Now I have compiled my application with the new libraries but when I run >> it I get a Runtime error I do not understand. >> >> The procedure entry point >> ?End at MetaDictionary@itk@@QAE?AV?$_Tree_iterator at V?... >> .... >> ...@@XZ could not be located in the dynamic link library ITKCommon-4.4.dll >> >> What does this mean? >> >> Thanks >> >> >> >> -- >> Fabi?n Torres Robles >> Maestr?a 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 >> >> The ITK community is transitioning from this mailing list to >> discourse.itk.org. Please join us there! >> ________________________________ >> 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: >> https://itk.org/mailman/listinfo/insight-users >> >> > -- Fabi?n Torres Robles Maestr?a 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bakkari.abdelkhalek at hotmail.fr Tue Jan 23 17:06:48 2018 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Tue, 23 Jan 2018 22:06:48 +0000 Subject: [ITK-users] Binary Contour with outliers Message-ID: Hi ! I applied the binary contour filter slice by slice to my binary mask. But the result for the Axial plane is not satisfied at all since it contains some outliers. Please, find attached my binary contour result. Is there any method to remove the outliers from the contour ? Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: binarycontour.PNG Type: image/png Size: 4219 bytes Desc: binarycontour.PNG URL: From matt.mccormick at kitware.com Tue Jan 23 17:18:44 2018 From: matt.mccormick at kitware.com (Matt McCormick) Date: Tue, 23 Jan 2018 17:18:44 -0500 Subject: [ITK-users] Binary Contour with outliers In-Reply-To: References: Message-ID: Hi, By running OpeningByReconstructionImageFilter: https://itk.org/Doxygen/html/classitk_1_1OpeningByReconstructionImageFilter.html before the binary contour, the smaller objects can be removed. HTH, Matt On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari wrote: > Hi ! > > I applied the binary contour filter slice by slice to my binary mask. But > the result for the Axial plane is not satisfied at all since it contains > some outliers. > Please, find attached my binary contour result. > Is there any method to remove the outliers from the contour ? > > Thank you in advance. > > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > From Jared.Becksfort at STJUDE.ORG Thu Jan 25 18:56:15 2018 From: Jared.Becksfort at STJUDE.ORG (Becksfort, Jared) Date: Thu, 25 Jan 2018 23:56:15 +0000 Subject: [ITK-users] Binary Contour with outliers In-Reply-To: References: Message-ID: Hello, I am having some difficulty overlaying boolean masks onto Nifti images. The code below is basically what is shown here (which does work for me when I use the images on the page):. https://itk.org/ITKExamples/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/Documentation.html The differences that I can see are that I am using 3 dimensions and Nifti float input rather than 2D images of the same pixel and file types (8-bit PNG) in the example. Can someone please tell me what I have done wrong? The output image is garbled beyond recognition. Thanks, Jared const unsigned int Dimension = 3; typedef float PixelType; typedef unsigned char LabelType; typedef itk::Image< PixelType, Dimension > ImageVolumeType; typedef itk::Image< LabelType, Dimension > ContourVolumeType; typedef itk::ImageFileReader ContourReaderType; typedef itk::ImageFileReader< ImageVolumeType > ReaderType; ReaderType::Pointer reader = ReaderType::New(); reader->SetFileName( infile1 ); ContourReaderType::Pointer labelReader = ContourReaderType::New(); labelReader->SetFileName(infile2); typedef itk::LabelObject< LabelType, Dimension > LabelObjectType; typedef itk::LabelMap< LabelObjectType > LabelMapType; typedef itk::LabelImageToLabelMapFilter< ContourVolumeType, LabelMapType > ConverterType; ConverterType::Pointer converter = ConverterType::New(); converter->SetInput( labelReader->GetOutput() ); typedef itk::LabelMapOverlayImageFilter< LabelMapType, ImageVolumeType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( converter->GetOutput() ); filter->SetFeatureImage( reader->GetOutput() ); filter->SetOpacity(0.5); typedef itk::ImageFileWriter< FilterType::OutputImageType > WriterType; WriterType::Pointer writer = WriterType::New(); writer->SetFileName(outfile); writer->SetInput( filter->GetOutput() ); writer->Update(); On 1/23/18, 4:19 PM, "Insight-users on behalf of Matt McCormick" wrote: Hi, By running OpeningByReconstructionImageFilter: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxygen%2Fhtml%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&reserved=0 before the binary contour, the smaller objects can be removed. HTH, Matt On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari wrote: > Hi ! > > I applied the binary contour filter slice by slice to my binary mask. But > the result for the Axial plane is not satisfied at all since it contains > some outliers. > Please, find attached my binary contour result. > Is there any method to remove the outliers from the contour ? > > Thank you in advance. > > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 > > Visit other Kitware open-source projects at > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 > > Kitware offers ITK Training Courses, for more information visit: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 > > Please keep messages on-topic and check the ITK FAQ at: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 > The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! ________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 Kitware offers ITK Training Courses, for more information visit: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 Please keep messages on-topic and check the ITK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 ________________________________ Email Disclaimer: www.stjude.org/emaildisclaimer Consultation Disclaimer: www.stjude.org/consultationdisclaimer From Jared.Becksfort at STJUDE.ORG Thu Jan 25 18:57:04 2018 From: Jared.Becksfort at STJUDE.ORG (Becksfort, Jared) Date: Thu, 25 Jan 2018 23:57:04 +0000 Subject: [ITK-users] Overlay Woes Message-ID: Hello, Sorry to send this again, but it had the wrong subject. I am having some difficulty overlaying boolean masks onto Nifti images. The code below is basically what is shown here (which does work for me when I use the images on the page):. https://itk.org/ITKExamples/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/Documentation.html The differences that I can see are that I am using 3 dimensions and Nifti float input rather than 2D images of the same pixel and file types (8-bit PNG) in the example. Can someone please tell me what I have done wrong? The output image is garbled beyond recognition. Thanks, Jared const unsigned int Dimension = 3; typedef float PixelType; typedef unsigned char LabelType; typedef itk::Image< PixelType, Dimension > ImageVolumeType; typedef itk::Image< LabelType, Dimension > ContourVolumeType; typedef itk::ImageFileReader ContourReaderType; typedef itk::ImageFileReader< ImageVolumeType > ReaderType; ReaderType::Pointer reader = ReaderType::New(); reader->SetFileName( infile1 ); ContourReaderType::Pointer labelReader = ContourReaderType::New(); labelReader->SetFileName(infile2); typedef itk::LabelObject< LabelType, Dimension > LabelObjectType; typedef itk::LabelMap< LabelObjectType > LabelMapType; typedef itk::LabelImageToLabelMapFilter< ContourVolumeType, LabelMapType > ConverterType; ConverterType::Pointer converter = ConverterType::New(); converter->SetInput( labelReader->GetOutput() ); typedef itk::LabelMapOverlayImageFilter< LabelMapType, ImageVolumeType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( converter->GetOutput() ); filter->SetFeatureImage( reader->GetOutput() ); filter->SetOpacity(0.5); typedef itk::ImageFileWriter< FilterType::OutputImageType > WriterType; WriterType::Pointer writer = WriterType::New(); writer->SetFileName(outfile); writer->SetInput( filter->GetOutput() ); writer->Update(); ________________________________ Email Disclaimer: www.stjude.org/emaildisclaimer Consultation Disclaimer: www.stjude.org/consultationdisclaimer From jhlegarreta at vicomtech.org Fri Jan 26 03:04:09 2018 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Fri, 26 Jan 2018 09:04:09 +0100 Subject: [ITK-users] Binary Contour with outliers In-Reply-To: References: Message-ID: Dear Jared, thanks for your question ! Your question seems to drift apart from the one that started this thread or the subject of this thread. In order to increase the chances of it getting answered, could please post your question on a different thread? Please, read our community discussion guidelines, especially the "Keep tidy" section: https://discourse.itk.org/guidelines Also, providing a minimal, compilable code snippet (either through a GitHub gist) or by attaching your own files reproducing the issue (.cxx files, CMakeLists.txt, your own input data, etc.) would help. Note that we are transitioning from this mailing list to discourse: https://discourse.itk.org So we'd be grateful if you could post your question there taking into account the above. Cheers, JON HAITZ -- On 26 January 2018 at 00:56, Becksfort, Jared wrote: > Hello, > > I am having some difficulty overlaying boolean masks onto Nifti images. The code below is basically what is shown here (which does work for me when I use the images on the page):. https://itk.org/ITKExamples/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/Documentation.html > > The differences that I can see are that I am using 3 dimensions and Nifti float input rather than 2D images of the same pixel and file types (8-bit PNG) in the example. > > Can someone please tell me what I have done wrong? The output image is garbled beyond recognition. > > Thanks, > Jared > > const unsigned int Dimension = 3; > > typedef float PixelType; > typedef unsigned char LabelType; > > typedef itk::Image< PixelType, Dimension > ImageVolumeType; > typedef itk::Image< LabelType, Dimension > ContourVolumeType; > > typedef itk::ImageFileReader ContourReaderType; > typedef itk::ImageFileReader< ImageVolumeType > ReaderType; > > ReaderType::Pointer reader = ReaderType::New(); > reader->SetFileName( infile1 ); > > ContourReaderType::Pointer labelReader = ContourReaderType::New(); > labelReader->SetFileName(infile2); > > typedef itk::LabelObject< LabelType, Dimension > LabelObjectType; > typedef itk::LabelMap< LabelObjectType > LabelMapType; > > typedef itk::LabelImageToLabelMapFilter< ContourVolumeType, LabelMapType > ConverterType; > ConverterType::Pointer converter = ConverterType::New(); > converter->SetInput( labelReader->GetOutput() ); > > typedef itk::LabelMapOverlayImageFilter< LabelMapType, ImageVolumeType > FilterType; > FilterType::Pointer filter = FilterType::New(); > filter->SetInput( converter->GetOutput() ); > filter->SetFeatureImage( reader->GetOutput() ); > filter->SetOpacity(0.5); > > > typedef itk::ImageFileWriter< FilterType::OutputImageType > WriterType; > WriterType::Pointer writer = WriterType::New(); > writer->SetFileName(outfile); > writer->SetInput( filter->GetOutput() ); > writer->Update(); > > On 1/23/18, 4:19 PM, "Insight-users on behalf of Matt McCormick" wrote: > > Hi, > > By running OpeningByReconstructionImageFilter: > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxygen%2Fhtml%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&reserved=0 > > before the binary contour, the smaller objects can be removed. > > HTH, > Matt > > On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari > wrote: > > Hi ! > > > > I applied the binary contour filter slice by slice to my binary mask. But > > the result for the Axial plane is not satisfied at all since it contains > > some outliers. > > Please, find attached my binary contour result. > > Is there any method to remove the outliers from the contour ? > > > > Thank you in advance. > > > > The ITK community is transitioning from this mailing list to > > discourse.itk.org. Please join us there! > > ________________________________ > > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 > > > > Visit other Kitware open-source projects at > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 > > > > Kitware offers ITK Training Courses, for more information visit: > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 > > > > Please keep messages on-topic and check the ITK FAQ at: > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 > > > > Follow this link to subscribe/unsubscribe: > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 > > > The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! > ________________________________ > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 > > Visit other Kitware open-source projects at > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 > > Kitware offers ITK Training Courses, for more information visit: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 > > Please keep messages on-topic and check the ITK FAQ at: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 > > > > ________________________________ > > Email Disclaimer: www.stjude.org/emaildisclaimer > Consultation Disclaimer: www.stjude.org/consultationdisclaimer > The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users From Jared.Becksfort at STJUDE.ORG Fri Jan 26 11:56:37 2018 From: Jared.Becksfort at STJUDE.ORG (Becksfort, Jared) Date: Fri, 26 Jan 2018 16:56:37 +0000 Subject: [ITK-users] Binary Contour with outliers In-Reply-To: References: , Message-ID: Yes, sorry. I sent another email with the proper format shortly thereafter. Sorry for the noise. Jared ________________________________ From: Jon Haitz Legarreta Sent: Friday, January 26, 2018 2:04:09 AM To: Becksfort, Jared Cc: ITK Users Subject: Re: [ITK-users] Binary Contour with outliers Dear Jared, thanks for your question ! Your question seems to drift apart from the one that started this thread or the subject of this thread. In order to increase the chances of it getting answered, could please post your question on a different thread? Please, read our community discussion guidelines, especially the "Keep tidy" section: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.itk.org%2Fguidelines&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=xPacI3N%2B2bxM6VjGt5o%2Be7JQjrd7fAtQS12nDxDmdWk%3D&reserved=0 Also, providing a minimal, compilable code snippet (either through a GitHub gist) or by attaching your own files reproducing the issue (.cxx files, CMakeLists.txt, your own input data, etc.) would help. Note that we are transitioning from this mailing list to discourse: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.itk.org&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=Ml2KzsOGytZ5ylV9khEWD0rs3QA89TRY2W8IWdCO8tw%3D&reserved=0 So we'd be grateful if you could post your question there taking into account the above. Cheers, JON HAITZ -- On 26 January 2018 at 00:56, Becksfort, Jared wrote: > Hello, > > I am having some difficulty overlaying boolean masks onto Nifti images. The code below is basically what is shown here (which does work for me when I use the images on the page):. https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FITKExamples%2Fsrc%2FFiltering%2FImageFusion%2FOverlayLabelMapOnTopOfAnImage%2FDocumentation.html&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=j7IB4JaPUdTP%2BnMM4ez7Hb4aiuOQ%2Fk41WI2RCh%2FvQJA%3D&reserved=0 > > The differences that I can see are that I am using 3 dimensions and Nifti float input rather than 2D images of the same pixel and file types (8-bit PNG) in the example. > > Can someone please tell me what I have done wrong? The output image is garbled beyond recognition. > > Thanks, > Jared > > const unsigned int Dimension = 3; > > typedef float PixelType; > typedef unsigned char LabelType; > > typedef itk::Image< PixelType, Dimension > ImageVolumeType; > typedef itk::Image< LabelType, Dimension > ContourVolumeType; > > typedef itk::ImageFileReader ContourReaderType; > typedef itk::ImageFileReader< ImageVolumeType > ReaderType; > > ReaderType::Pointer reader = ReaderType::New(); > reader->SetFileName( infile1 ); > > ContourReaderType::Pointer labelReader = ContourReaderType::New(); > labelReader->SetFileName(infile2); > > typedef itk::LabelObject< LabelType, Dimension > LabelObjectType; > typedef itk::LabelMap< LabelObjectType > LabelMapType; > > typedef itk::LabelImageToLabelMapFilter< ContourVolumeType, LabelMapType > ConverterType; > ConverterType::Pointer converter = ConverterType::New(); > converter->SetInput( labelReader->GetOutput() ); > > typedef itk::LabelMapOverlayImageFilter< LabelMapType, ImageVolumeType > FilterType; > FilterType::Pointer filter = FilterType::New(); > filter->SetInput( converter->GetOutput() ); > filter->SetFeatureImage( reader->GetOutput() ); > filter->SetOpacity(0.5); > > > typedef itk::ImageFileWriter< FilterType::OutputImageType > WriterType; > WriterType::Pointer writer = WriterType::New(); > writer->SetFileName(outfile); > writer->SetInput( filter->GetOutput() ); > writer->Update(); > > On 1/23/18, 4:19 PM, "Insight-users on behalf of Matt McCormick" wrote: > > Hi, > > By running OpeningByReconstructionImageFilter: > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxygen%2Fhtml%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&reserved=0 > > before the binary contour, the smaller objects can be removed. > > HTH, > Matt > > On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari > wrote: > > Hi ! > > > > I applied the binary contour filter slice by slice to my binary mask. But > > the result for the Axial plane is not satisfied at all since it contains > > some outliers. > > Please, find attached my binary contour result. > > Is there any method to remove the outliers from the contour ? > > > > Thank you in advance. > > > > The ITK community is transitioning from this mailing list to > > discourse.itk.org. Please join us there! > > ________________________________ > > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 > > > > Visit other Kitware open-source projects at > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 > > > > Kitware offers ITK Training Courses, for more information visit: > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 > > > > Please keep messages on-topic and check the ITK FAQ at: > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 > > > > Follow this link to subscribe/unsubscribe: > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 > > > The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! > ________________________________ > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0 > > Visit other Kitware open-source projects at > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0 > > Kitware offers ITK Training Courses, for more information visit: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0 > > Please keep messages on-topic and check the ITK FAQ at: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0 > > > > ________________________________ > > Email Disclaimer: https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Femaildisclaimer&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=4Id6vNsMKmFkssxg1f%2F%2BVxhF4QMoRYlPx4SzRfNxH6o%3D&reserved=0 > Consultation Disclaimer: https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Fconsultationdisclaimer&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=8cUCE4yCncK6AQk9GCFmtMlVwrZYOPrpch%2FHH0Ukhts%3D&reserved=0 > The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there! > ________________________________ > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=yvhYZsACHrqPH8TCuJR6cvvIebX%2BAy2tZimD2D1mlfI%3D&reserved=0 > > Visit other Kitware open-source projects at > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=fvgazDqOOgDuIsS9dW%2F0b6m%2F0wQnmoCfg9ZdA3fI8OA%3D&reserved=0 > > Kitware offers ITK Training Courses, for more information visit: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=VbzvGi96UoRD%2Fg9W97KzXUL9eBbi4M7psSj5EFUvA9c%3D&reserved=0 > > Please keep messages on-topic and check the ITK FAQ at: > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=D%2FmtapoFXbMzmkB6NffisrNQEZ9Te3tqobv1kzx3I6Q%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=%2FxQDcVnEX3RIGbxcMYyzPg3Zz8m%2BERoDnjbfOFc85Vs%3D&reserved=0 ________________________________ Email Disclaimer: www.stjude.org/emaildisclaimer Consultation Disclaimer: www.stjude.org/consultationdisclaimer -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregthom992 at gmail.com Wed Jan 31 12:08:24 2018 From: gregthom992 at gmail.com (G Tom) Date: Wed, 31 Jan 2018 12:08:24 -0500 Subject: [ITK-users] Extract Line/Intensity profile from image given start and stop points Message-ID: HI all I am not sure if this is alread done before but I have 2D and 3D images and I would like to extract a line/intensity profile through the image given a start and and end point. The line need not be oriented parallel to any of the major axis. Any ideas ? I see the LineSpatialObject can define a line but how do I extract the line from an image. Oh and one more thing, suppose I want to vary the radius of the line , how can that be achieved. Please let me now approaches and I will try them out. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Wed Jan 31 12:38:14 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Wed, 31 Jan 2018 12:38:14 -0500 Subject: [ITK-users] Extract Line/Intensity profile from image given start and stop points In-Reply-To: References: Message-ID: Hi Tom, does this example do what you want? Regards, D?enan On Wed, Jan 31, 2018 at 12:08 PM, G Tom wrote: > HI all > > I am not sure if this is alread done before but I have 2D and 3D images > and I would like to extract a line/intensity profile through the image > given a start and and end point. The line need not be oriented parallel to > any of the major axis. Any ideas ? > > I see the LineSpatialObject can define a line but how do I extract the > line from an image. Oh and one more thing, suppose I want to vary the > radius of the line , how can that be achieved. > > Please let me now approaches and I will try them out. > > Thanks > > > > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregthom992 at gmail.com Wed Jan 31 16:23:52 2018 From: gregthom992 at gmail.com (gregthom992) Date: Wed, 31 Jan 2018 14:23:52 -0700 (MST) Subject: [ITK-users] Extract Line/Intensity profile from image given start and stop points In-Reply-To: References: Message-ID: <1517433832235-0.post@n7.nabble.com> Hi Dzenan, itk::BresenhamLine seems to be what I need. Thanks for pointing that out. I am going through the example, how do I give it a radius ? Thanks GT -- Sent from: http://itk-users.7.n7.nabble.com/ From dzenanz at gmail.com Wed Jan 31 18:01:41 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Wed, 31 Jan 2018 18:01:41 -0500 Subject: [ITK-users] Extract Line/Intensity profile from image given start and stop points In-Reply-To: <1517433832235-0.post@n7.nabble.com> References: <1517433832235-0.post@n7.nabble.com> Message-ID: Hi Tom, BresenhamLine does not have a radius, it is only one pixel wide. If you need some kind of averaging, you will probably need to resample the image. There was a similar question last year, that thread will probably be helpful. Regards, D?enan On Wed, Jan 31, 2018 at 4:23 PM, gregthom992 wrote: > Hi Dzenan, > > itk::BresenhamLine seems to be what I need. Thanks for pointing that out. I > am going through the example, how do I give it a radius ? > > Thanks > > GT > > > > -- > Sent from: http://itk-users.7.n7.nabble.com/ > The ITK community is transitioning from this mailing list to > discourse.itk.org. Please join us there! > ________________________________ > 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: > https://itk.org/mailman/listinfo/insight-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: