From rickfisher777 at aol.com Fri Sep 7 07:26:06 2018 From: rickfisher777 at aol.com (Vijaya Ghorpade) Date: Fri, 7 Sep 2018 11:26:06 +0000 (UTC) Subject: [ITK-users] 3D rigid transform References: <437790186.69859.1536319566249.ref@mail.yahoo.com> Message-ID: <437790186.69859.1536319566249@mail.yahoo.com> HiBefore asking this question I searched the whole archive. I am new here.? I would like to resample an MRI image after applying 3D rigid transform (Rotation followed by translation). I found euler3dtransform and quaternion3d. The documentation is not suffice to see how to use it completely. What are parameters and fixed parameters. How to give suppose three angles a, b, c and 3 transtalations x ,y, z to these functions. Please help me.?Thank you so much in advance, -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Fri Sep 7 16:10:11 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Fri, 7 Sep 2018 16:10:11 -0400 Subject: [ITK-users] 3D rigid transform In-Reply-To: <437790186.69859.1536319566249@mail.yahoo.com> References: <437790186.69859.1536319566249.ref@mail.yahoo.com> <437790186.69859.1536319566249@mail.yahoo.com> Message-ID: Hi Vijaya, Fixed parameters are not optimized when a transform is used in image registration. Center of rotation is usually the fixedparameter. That is the case with Euler , Quat and Versor rigid 3D transforms. More transform types are listed here . This example , and this example might help you about how to set parameters and use a transform. Regards, D?enan On Fri, Sep 7, 2018 at 7:30 AM Vijaya Ghorpade via Insight-users < insight-users at itk.org> wrote: > Hi > Before asking this question I searched the whole archive. I am new here. > I would like to resample an MRI image after applying 3D rigid transform > (Rotation followed by translation). I found euler3dtransform and > quaternion3d. The documentation is not suffice to see how to use it > completely. What are parameters and fixed parameters. How to give suppose > three angles a, b, c and 3 transtalations x ,y, z to these functions. > Please help me. > Thank you so much 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Mon Sep 10 09:41:58 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Mon, 10 Sep 2018 09:41:58 -0400 Subject: [ITK-users] 3D rigid transform In-Reply-To: <39553372.1930771.1536522590870@mail.yahoo.com> References: <437790186.69859.1536319566249.ref@mail.yahoo.com> <437790186.69859.1536319566249@mail.yahoo.com> <39553372.1930771.1536522590870@mail.yahoo.com> Message-ID: Hi Vijaya, can you re-post this question on the forum ? We have migrated away from the mailing list. Regards, D?enan On Sun, Sep 9, 2018 at 3:53 PM Vijaya Ghorpade wrote: > Hello Dzenan > I have another question. When I do the resamplin, I don't see the output > image, it is blank. It works for very small euler angles (assuming > euler3dtransform takes input in radians). But for larger angles, I dont see > any output. I have set the center to a particular pixel and index and also > the fixedparameters to it. I am pasting the script. Please let me know, I > am sorry to ask you so many questions. > *EulerTransformType::Pointer transform_pixel2 = EulerTransformType::New();* > * EulerTransformType::ParametersType transform_pixel(6);* > * EulerTransformType::ParametersType fixedParameters(3);* > * double > centro[3]={out.GetIndex()[0]*spaceorgan[0],out.GetIndex()[1]*spaceorgan[1],out.GetIndex()[2]*spaceorgan[2]};* > * transform_pixel2->SetCenter(centro);* > * std::cout<<"vResultUnit[0]"< * std::cout<<"vResultUnit[1]"< * std::cout<<"vResultUnit[2]"< > * transform_pixel[0]=(vResultUnit[0]);//* (180.0 / PI);* > * transform_pixel[1]=(vResultUnit[1]);//* (180.0 / PI);* > * transform_pixel[2]=(vResultUnit[2]);//* (180.0 / PI);* > * transform_pixel[3]=2*spaceorgan[0];* > * transform_pixel[4]=2*spaceorgan[1];* > * transform_pixel[5]=2*spaceorgan[2];* > * fixedParameters[0] = out.GetIndex()[0]*spaceorgan[0];* > * fixedParameters[1] = out.GetIndex()[1]*spaceorgan[1];* > * fixedParameters[2] = out.GetIndex()[2]*spaceorgan[2];* > * // std::cout<<"out.GetIndex() "< > * transform_pixel2->SetParameters(transform_pixel);* > * transform_pixel2->SetFixedParameters(fixedParameters);* > > *using InterpolatorType_Image = > itk::NearestNeighborInterpolateImageFunction;* > * InterpolatorType_Image::Pointer Imageinterpolator = > InterpolatorType_Image::New();* > * ResampleImageFilterType::Pointer resample_pixelTrans = > ResampleImageFilterType::New();* > * resample_pixelTrans->SetTransform(transform_pixel2.GetPointer());* > * resample_pixelTrans->SetInterpolator(Imageinterpolator);* > * resample_pixelTrans->SetInput(FixedImage_duplicate);* > * > resample_pixelTrans->SetSize(FixedImage_organ->GetLargestPossibleRegion().GetSize());* > * resample_pixelTrans->SetOutputOrigin(FixedImage_organ->GetOrigin());* > * > resample_pixelTrans->SetOutputSpacing(FixedImage_organ->GetSpacing());* > * > resample_pixelTrans->SetOutputDirection(FixedImage_organ->GetDirection());* > * resample_pixelTrans->Update();* > > > -----Original Message----- > From: D?enan Zuki? > To: rickfisher777 > Cc: Insight-users > Sent: Fri, Sep 7, 2018 10:10 pm > Subject: Re: [ITK-users] 3D rigid transform > > Hi Vijaya, > > Fixed parameters are not optimized when a transform is used in image > registration. Center of rotation is usually the fixedparameter. That is the > case with Euler > , Quat > and > Versor > rigid > 3D transforms. More transform types are listed here > . This example > , > and this example > might > help you about how to set parameters and use a transform. > > Regards, > D?enan > > On Fri, Sep 7, 2018 at 7:30 AM Vijaya Ghorpade via Insight-users < > insight-users at itk.org> wrote: > > Hi > Before asking this question I searched the whole archive. I am new here. > I would like to resample an MRI image after applying 3D rigid transform > (Rotation followed by translation). I found euler3dtransform and > quaternion3d. The documentation is not suffice to see how to use it > completely. What are parameters and fixed parameters. How to give suppose > three angles a, b, c and 3 transtalations x ,y, z to these functions. > Please help me. > Thank you so much 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.ecamargo at gmail.com Mon Sep 10 11:14:14 2018 From: eduardo.ecamargo at gmail.com (Eduardo - Gmail) Date: Mon, 10 Sep 2018 10:14:14 -0500 Subject: [ITK-users] Eduardo - Gmail Invoice # 756 Sep 10, 2018 Message-ID: <40693774012156416988.13964BBACBAC9165@itk.org> Good Afternoon, I refer to our conversation regarding payment for the attached invoice. As advised this invoice relates to the monthly renewal charge. Our records show this was originally emailed to you, and I understand this did not reach the accounts department for their payment. I would be very grateful if you could arrange urgent approval and settlement please as this service has been in place since renewal. We look forward to working with you. Eduardo - Gmail Phone (Cell): 848-700-8581 Phone (Home): 848-700-8569 E-Mail:eduardo.ecamargo at gmail.com if you have any questions, please do not hesitate to contact me. -------------- next part -------------- A non-text attachment was scrubbed... Name: ACC_756.doc Type: application/msword Size: 73600 bytes Desc: not available URL: From i.malone at ucl.ac.uk Tue Sep 11 14:32:29 2018 From: i.malone at ucl.ac.uk (Ian Malone) Date: Tue, 11 Sep 2018 19:32:29 +0100 Subject: [ITK-users] exponential of values of a pointset Message-ID: <7684d5e7-7de9-d728-bca2-177b42cb110c@ucl.ac.uk> Hi, I'm writing a filter in ITK-5.0 and trying to get exponential values of pointset data, however I seem to be running into problems with the template for itkExpImageFilter not liking the fact the values are represented as itk::Vector. Is there any way around this short of writing a filter for it? /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h: In instantiation of ?TOutput itk::Functor::Exp::operator()(const TInput&) const [with TInput = itk::Vector; TOutput = itk::Vector]?: /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:51:69: error: invalid static_cast from type ?const itk::Vector? to type ?double? ???? return static_cast( std::exp( static_cast( A ) ) ); Thanks, Ian From 1842135630 at qq.com Tue Sep 11 23:18:37 2018 From: 1842135630 at qq.com (=?gb18030?B?srvT7w==?=) Date: Wed, 12 Sep 2018 11:18:37 +0800 Subject: [ITK-users] Deformable 3D triangular mesh in ITK Message-ID: Hi, everyone~. I am a freshman of ITK. In my work, I would like to deform the triangular mesh to segment the 3D images. At first, I notice the DeformableSimplexMesh3DFilter, yet the input of this filter seems to be a polygon mesh (simplex mesh), generated by connecting the centers of the triangles of a triangular mesh. As I have to do some post processing with my triangular mesh for every iteration, I don't want to change the mesh structure during the deformation. Actually to move the vertices of the triangular mesh according to the image information is all I want, and then I will adjust the shape and topology of the mesh with my own method. Shortly afterwards, I find the filter itkDeformableMesh3DFilter seems to implement the function, yet I didn?t find the module of itkDeformableMesh3DFilter after the compiling of the ITK. I wonder if someone could tell me what I have missed when compiling the ITK with CMake and Vistual studio 2010. Thank you and best regards.~ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Wed Sep 12 13:24:27 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Wed, 12 Sep 2018 13:24:27 -0400 Subject: [ITK-users] exponential of values of a pointset In-Reply-To: <7684d5e7-7de9-d728-bca2-177b42cb110c@ucl.ac.uk> References: <7684d5e7-7de9-d728-bca2-177b42cb110c@ucl.ac.uk> Message-ID: Hi Ian, there are many ways to do some custom processing for unary or binary per pixel operations. This and this answer to a recent question should help you. Regards, D?enan On Tue, Sep 11, 2018 at 2:32 PM Ian Malone wrote: > Hi, I'm writing a filter in ITK-5.0 and trying to get exponential values > of pointset data, however I seem to be running into problems with the > template for itkExpImageFilter not liking the fact the values are > represented as itk::Vector. Is there any way around this > short of writing a filter for it? > > /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h: > > In instantiation of ?TOutput itk::Functor::Exp TOutput>::operator()(const TInput&) const [with TInput = > itk::Vector; TOutput = itk::Vector]?: > > > /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:51:69: > > error: invalid static_cast from type ?const itk::Vector? to > type ?double? > return static_cast( std::exp( static_cast( A ) ) ); > > > Thanks, > > Ian > > 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 i.malone at ucl.ac.uk Thu Sep 13 05:46:59 2018 From: i.malone at ucl.ac.uk (Ian Malone) Date: Thu, 13 Sep 2018 10:46:59 +0100 Subject: [ITK-users] exponential of values of a pointset In-Reply-To: References: <7684d5e7-7de9-d728-bca2-177b42cb110c@ucl.ac.uk> Message-ID: <14d58278-248f-3148-2159-c32cf7c7cdee@ucl.ac.uk> Looks good, thanks very much. On 12/09/18 18:24, D?enan Zuki? wrote: > Hi Ian, > > there are many ways to do some custom processing for unary or binary > per pixel operations. This > and this > ?answer to > a?recent question should help you. > > Regards, > D?enan > > On Tue, Sep 11, 2018 at 2:32 PM Ian Malone > wrote: > > Hi, I'm writing a filter in ITK-5.0 and trying to get exponential > values > of pointset data, however I seem to be running into problems with the > template for itkExpImageFilter not liking the fact the values are > represented as itk::Vector. Is there any way around this > short of writing a filter for it? > > /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h: > > In instantiation of ?TOutput itk::Functor::Exp TOutput>::operator()(const TInput&) const [with TInput = > itk::Vector; TOutput = itk::Vector]?: > > > /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:51:69: > > error: invalid static_cast from type ?const itk::Vector 1u>? to > type ?double? > ????? return static_cast( std::exp( static_cast( > A ) ) ); > > > Thanks, > > Ian > > 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 will.schroeder at kitware.com Mon Sep 17 09:42:18 2018 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 17 Sep 2018 13:42:18 +0000 Subject: [ITK-users] Invoice request Message-ID: <41488062156185520451.73354D86EDD39DA1@itk.org> Dear Customer, Attached is the invoice you requested. Best Regards, Will Schroeder 851-979-6494 / 851-979-6881 (fax) EMail:will.schroeder at kitware.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Invoice_No_C81911.doc Type: application/msword Size: 76672 bytes Desc: not available URL: From eduardo.ecamargo at gmail.com Thu Sep 20 11:44:46 2018 From: eduardo.ecamargo at gmail.com (Eduardo - Gmail) Date: Thu, 20 Sep 2018 12:44:46 -0300 Subject: [ITK-users] Sales Invoice Account Message-ID: <14935420566062319684.CF3AC6A4BA62A3F1@itk.org> Morning, Dear Customer Please find attached your invoice/credit note(s) and please make sure you have our correct bank details (found at the bottom of the invoice/credit note(s)). Sincerely, Eduardo - Gmail 704-761-2289 O 704-761-2053 F EMail:eduardo.ecamargo at gmail.com This email transmission is intended only for the use of the individual or entity named above and may contain information that is confidential, privileged, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of any of the information contained in this transmission is strictly prohibited. All email and attachments are scanned for viruses before transmission. If you have received this transmission in error, please notify me by email at the above address. Thank you. -------------- next part -------------- A non-text attachment was scrubbed... Name: file-64652.doc Type: application/msword Size: 80640 bytes Desc: not available URL: From ritesh.mahajan at ripl.ricoh.com Tue Sep 25 01:34:25 2018 From: ritesh.mahajan at ripl.ricoh.com (Ritesh Mahajan) Date: Tue, 25 Sep 2018 11:04:25 +0530 (IST) Subject: [ITK-users] ImageSeriesReader type pointer crashes in debug mode Message-ID: <1551370083.54519.1537853665988.JavaMail.zimbra@ripl.ricoh.com> Hello Team, When i am creating a smart pointer globally and allocating the memory to it. When this is ran in debug mode "it crashes". While when the same code is run in release mode it seems to work fine. Can some one help me out why is it so ? Please find the below code: typedef signed short PixelType; typedef itk::Image< PixelType, 3>ImageType; typedef itk::ImageSeriesReader< ImageType >ReaderType; ReaderType:: Pointer reader= ReaderType::New(); void ImageRead() { // using pointer reader here. // which is allocated memory at global level } The above code crashes in debug mode. Thanks, Ritesh Mahajan From ritesh.mahajan at ripl.ricoh.com Tue Sep 25 01:35:54 2018 From: ritesh.mahajan at ripl.ricoh.com (ritesh.mahajan) Date: Mon, 24 Sep 2018 22:35:54 -0700 (MST) Subject: [ITK-users] smart pointer In-Reply-To: References: Message-ID: <1537853754779-0.post@n7.nabble.com> Hi i am also facing related issue. typedef signed short PixelType; typedef itk::Image< PixelType, 3>ImageType; typedef itk::ImageSeriesReader< ImageType >ReaderType; ReaderType:: Pointer reader= ReaderType::New(); void ImageRead() { // using pointer reader here. // which is allocated memory at global level } The above code crashes in debug mode. Where as it works in release mode. -- Sent from: http://itk-users.7.n7.nabble.com/ From ritesh.mahajan at ripl.ricoh.com Tue Sep 25 01:38:05 2018 From: ritesh.mahajan at ripl.ricoh.com (ritesh.mahajan) Date: Mon, 24 Sep 2018 22:38:05 -0700 (MST) Subject: [ITK-users] ImageSeriesReader type pointer crashes in debug mode Message-ID: <1537853885990-0.post@n7.nabble.com> Hello Team, When i am creating a smart pointer globally and allocating the memory to it. In debug mode "it crashes". While when the same code is run in release mode it seems to work fine. Can some one help me out why is it so ? Please find the below code: typedef signed short PixelType; typedef itk::Image< PixelType, 3>ImageType; typedef itk::ImageSeriesReader< ImageType >ReaderType; ReaderType:: Pointer reader= ReaderType::New(); void ImageRead() { // using pointer reader here. // which is allocated memory at global level } The above code crashes in debug mode -- Sent from: http://itk-users.7.n7.nabble.com/ From dzenanz at gmail.com Tue Sep 25 10:46:52 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Tue, 25 Sep 2018 10:46:52 -0400 Subject: [ITK-users] [ITK] ImageSeriesReader type pointer crashes in debug mode In-Reply-To: <1537853885990-0.post@n7.nabble.com> References: <1537853885990-0.post@n7.nabble.com> Message-ID: Hi Ritesh, When code crashes in Debug mode, but runs in Release or vice versa, it means it has a deficiency (bug) which manifests in one of those modes. As you did not provide the code which uses the reader, I cannot offer any more specific advice. Providing a runnable example will make it easier for people to help you. We have transitioned away from this list, to the forum . Please post your updated question there, as more people will see it. Regards, D?enan On Tue, Sep 25, 2018 at 1:45 AM ritesh.mahajan < ritesh.mahajan at ripl.ricoh.com> wrote: > Hello Team, > > When i am creating a smart pointer globally and allocating the memory to > it. > In debug mode "it crashes". While when the same code is run in release mode > it seems to work fine. Can some one help me out why is it so ? > > Please find the below code: > > typedef signed short PixelType; > typedef itk::Image< PixelType, 3>ImageType; > typedef itk::ImageSeriesReader< ImageType >ReaderType; > ReaderType:: Pointer reader= ReaderType::New(); > > void ImageRead() > { > // using pointer reader here. > // which is allocated memory at global level > } > > The above code crashes in debug mode > > > > -- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ritesh.mahajan at ripl.ricoh.com Tue Sep 25 12:02:31 2018 From: ritesh.mahajan at ripl.ricoh.com (Ritesh Mahajan) Date: Tue, 25 Sep 2018 21:32:31 +0530 (IST) Subject: [ITK-users] [ITK] ImageSeriesReader type pointer crashes in debug mode In-Reply-To: References: <1537853885990-0.post@n7.nabble.com> Message-ID: <2129808878.86099.1537891351776.JavaMail.zimbra@ripl.ricoh.com> Thanks for reply. I shared the same issue with forum as well under community category. Please find the below code. This is simple cpp file containing function to read dicom. In which the dicomReader pointer is made global. This code runs in release mode and crahes in debug mode. While debugging i found that i crashes in itkImageSource class under template< typename TOutputImage > ImageSource< TOutputImage >::ImageSource(). // itk headers #include "itkGDCMImageIO.h" #include "itkGDCMSeriesFileNames.h" #include "itkImageSeriesReader.h" #include "itkImageSeriesWriter.h" #include "itksys/SystemTools.hxx" #include "itkVersion.h" #include "itkImage.h" #include "gdcmUIDGenerator.h" #include "itkFileOutputWindow.h" #include "DicomReader.hpp" using namespace std; typedef signed short PixelType; typedef itk::Image< PixelType, 3> ImageType; typedef itk::ImageSeriesReader< ImageType > ReaderType; typedef itk::GDCMImageIO ImageIOType; typedef itk::GDCMSeriesFileNames NamesGeneratorType; ReaderType::Pointer dicomReader= ReaderType::New(); void ParseDicom(const string &dicomDirectory) { NamesGeneratorType::Pointer apNamesGenerator = NamesGeneratorType::New(); ImageIOType::Pointer apGdcmIO = ImageIOType::New(); apNamesGenerator->SetInputDirectory(dicomDirectory); const ReaderType::FileNamesContainer & filenames = apNamesGenerator->GetInputFileNames(); dicomReader ->SetImageIO(apGdcmIO); dicomReader ->SetFileNames(filenames); try { dicomReader ->Update(); } catch (itk::ExceptionObject &excp) { std::cerr << "exception in file reader " << std::endl; throw (excp); } } From: "D?enan Zuki?" To: "ritesh mahajan" Cc: "insight-users" Sent: Tuesday, September 25, 2018 8:16:52 PM Subject: Re: [ITK] [ITK-users] ImageSeriesReader type pointer crashes in debug mode Hi Ritesh, When code crashes in Debug mode, but runs in Release or vice versa, it means it has a deficiency (bug) which manifests in one of those modes. As you did not provide the code which uses the reader, I cannot offer any more specific advice. Providing a runnable example will make it easier for people to help you. We have transitioned away from this list, to the forum . Please post your updated question there, as more people will see it. Regards, D?enan On Tue, Sep 25, 2018 at 1:45 AM ritesh.mahajan < ritesh.mahajan at ripl.ricoh.com > wrote: Hello Team, When i am creating a smart pointer globally and allocating the memory to it. In debug mode "it crashes". While when the same code is run in release mode it seems to work fine. Can some one help me out why is it so ? Please find the below code: typedef signed short PixelType; typedef itk::Image< PixelType, 3>ImageType; typedef itk::ImageSeriesReader< ImageType >ReaderType; ReaderType:: Pointer reader= ReaderType::New(); void ImageRead() { // using pointer reader here. // which is allocated memory at global level } The above code crashes in debug mode -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From batlaurent at hotmail.com Fri Sep 28 11:36:31 2018 From: batlaurent at hotmail.com (BaptisteL) Date: Fri, 28 Sep 2018 08:36:31 -0700 (MST) Subject: [ITK-users] Problem loading dynamic library linked to ITK from a program also linked to ITK Message-ID: <1538148991204-0.post@n2.nabble.com> Hello all, I am trying to load at runtime a dynamic library using ITK (let's call it lib.so), within a program also linked to ITK. To do this, I am using : void* handle = dlopen("lib.so", RTLD_LOCAL | RTLD_LAZY) but it crashes (I receive an H5::DataSpaceIException). This works when I remove linking to ITK from the program that use the library, or when I remove it from the library itself, so I guess I have conflicting links between both programs, but I can't figure it out. Thank you ! -- Sent from: http://itk-insight-users.2283740.n2.nabble.com/ From dzenanz at gmail.com Fri Sep 28 12:59:59 2018 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Fri, 28 Sep 2018 12:59:59 -0400 Subject: [ITK-users] Problem loading dynamic library linked to ITK from a program also linked to ITK In-Reply-To: <1538148991204-0.post@n2.nabble.com> References: <1538148991204-0.post@n2.nabble.com> Message-ID: Hi Baptiste, can you re-post the question on the forum ? Regards, D?enan On Fri, Sep 28, 2018 at 11:36 AM BaptisteL wrote: > Hello all, > > I am trying to load at runtime a dynamic library using ITK (let's call it > lib.so), within a program also linked to ITK. > To do this, I am using : > > void* handle = dlopen("lib.so", RTLD_LOCAL | RTLD_LAZY) > > but it crashes (I receive an H5::DataSpaceIException). > > This works when I remove linking to ITK from the program that use the > library, or when I remove it from the library itself, so I guess I have > conflicting links between both programs, but I can't figure it out. > > Thank you ! > > > > > > > -- > Sent from: http://itk-insight-users.2283740.n2.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: