<HTML><BODY>Hi,<br><br>I build the libraries agian. the examples works now. <br><br>But i get the same error again in my programm. <br><br><br>Here is my pro-file, maybe here is something wrong:<br><br>#-------------------------------------------------<br>#<br># Project created by QtCreator 2014-05-07T17:08:03<br>#<br>#-------------------------------------------------<br><br>QT       += core gui<br><br>greaterThan(QT_MAJOR_VERSION, 4): QT += widgets<br><br>TARGET = test<br>TEMPLATE = app<br><br>INCLUDEPATH+= /usr/local/include/ITK-4.5\<br>/usr/local/include/vtk-6.1<br>DEPENDPATH+=/usr/local/include/ITK-4.5\<br>/usr/local/include/vtk-6.1<br>LIBS += -L/usr/local/lib/\<br>#-lITKBiasCorrection-4.5\<br>-lITKBioCell-4.5\<br>-lITKCommon-4.5\<br>-lITKDICOMParser-4.5\<br>-litkdouble-conversion-4.5\<br>-lITKEXPAT-4.5\<br>-ITKFEM-4.5\<br>-litkgdcmCommon-4.5\<br>-litkgdcmDICT-4.5\<br>-litkgdcmDSED-4.5\<br>-litkgdcmIOD-4.5\<br>-litkgdcmjpeg8-4.5\<br>-litkgdcmjpeg12-4.5\<br>-litkgdcmjpeg16-4.5\<br>-litkgdcmMSFF-4.5\<br>-litkgdcmuuid-4.5\<br>-lITKgiftiio-4.5\<br>-litkhdf5_cpp-4.5\<br>-litkhdf5-4.5\<br>-lITKIOBioRad-4.5\<br>-lITKIOBMP-4.5\<br>-lITKIOCSV-4.5\<br>-lITKIOGDCM-4.5\<br>-lITKIOGE-4.5\<br>-lITKIOGIPL-4.5\<br>-lITKIOHDF5-4.5\<br>-lITKIOImageBase-4.5\<br>-lITKIOIPL-4.5\<br>-lITKIOJPEG-4.5\<br>-lITKIOLSM-4.5\<br>-lITKIOMesh-4.5\<br>-lITKIOMeta-4.5\<br>-lITKIONIFTI-4.5\<br>-lITKIONRRD-4.5\<br>-lITKIOPNG-4.5\<br>-lITKIOSiemens-4.5\<br>-lITKIOSpatialObjects-4.5\<br>-lITKIOStimulate-4.5\<br>-lITKIOTIFF-4.5\<br>-lITKIOTransformBase-4.5\<br>-lITKIOTransformHDF5-4.5\<br>-lITKIOTransformInsightLegacy-4.5\<br>-lITKIOTransformMatlab-4.5\<br>-lITKIOVTK-4.5\<br>-lITKIOXML-4.5\<br>-litkjpeg-4.5\<br>-lITKKLMRegionGrowing-4.5\<br>-lITKLabelMap-4.5\<br>-lITKMesh-4.5\<br>-lITKMetaIO-4.5\<br>-litkNetlibSlatec-4.5\<br>-lITKniftiio-4.5\<br>-lITKNrrdIO-4.5\<br>-litkopenjpeg-4.5\<br>-lITKOptimizers-4.5\<br>#-lITKOptimizersv4-4.5\<br>-lITKPath-4.5\<br>-litkpng-4.5\<br>-lITKPolynomials-4.5\<br>-lITKQuadEdgeMesh-4.5\<br>#-lITKReview-4.5\<br>-lITKSpatialObjects-4.5\<br>-lITKStatistics-4.5\<br>-litksys-4.5\<br>-litktiff-4.5\<br>-litkv3p_lsqr-4.5\<br>-litkv3p_netlib-4.5\<br>-litkvcl-4.5\<br>-lITKVideoCore-4.5\<br>-lITKVideoIO-4.5\<br>-litkvnl_algo-4.5\<br>-litkvnl-4.5\<br>-lITKVNLInstantiation-4.5\<br>-lITKVTK-4.5\<br>-lITKWatersheds-4.5\<br>-litkzlib-4.5\<br>-lITKznz-4.5\<br>#-lvtkIOLSDyna<br> <br>LIBS += -L/usr/local/lib/vtk-6.1/\<br>#-lMapReduceMPI\<br>#-lmpistubs-6.1\<br>-lQVTK\<br>-lvtkalglib\<br>-lvtkCharts\<br>-lvtkCommon\<br>-lvtkDICOMParser\<br>-lvtkexoIIc\<br>-lvtkexpat-6.1\<br>-lvtkFiltering\<br>-lvtkfreetype-6.1\<br>-lvtkftgl\<br>-lvtkGenericFiltering\<br>-lvtkGeovis\<br>-lvtkGraphics\<br>-lvtkhdf5_hl-6.1\<br>-lvtkhdf5-6.1\<br>-lvtkHybrid\<br>-lvtkImaging\<br>-lvtkInfovis\<br>-lvtkIO\<br>-lvtkjpeg-6.1\<br>-lvtklibxml2-6.1\<br>-lvtkmetaio\<br>-lvtkNetCDF_cxx-6.1\<br>-lvtkNetCDF-6.1\<br>-lvtkpng-6.1\<br>-lvtkproj4\<br>-lvtkRendering\<br>-lvtksqlite-6.1\<br>-lvtksys\<br>-lvtktiff-6.1\<br>-lvtkverdict\<br>-lvtkViews\<br>-lvtkVolumeRendering\<br>-lvtkWidgets\<br>-lvtkzlib-6.1<br><br>SOURCES += main.cpp\<br>        mainwindow.cpp<br><br>HEADERS  += mainwindow.h<br><br>FORMS    += mainwindow.ui.<br><br><br><br>Tue, 29 Apr 2014 13:48:33 +0200 от Dženan Zukić <dzenanz@gmail.com>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        <div id="">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
                        <div id="style_13987721360000000754_BODY"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">You could try that, definitely. Using static libraries instead of dynamic can save you some headaches.</div></div><div>

<br><br><div>On Tue, Apr 29, 2014 at 1:45 PM, Роман Глуховский <span dir="ltr"><<a href="/compose/?mailto=mailto%3aroman_glu@mail.ru" target="_blank">roman_glu@mail.ru</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>it could be that i have some problems with the libraries.<br><br>should i compile and build ITK and VTK again?<br><br><br><br>Tue, 29 Apr 2014 13:14:29 +0200 от Dženan Zukić <<a href="/compose/?mailto=mailto%3adzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>>:<div>

<div><br>
<blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px">
        <div>
        



    









        
        


        
        
        
        
        

        
        

        
        



<div>
        
        <div>
                
                
                        <div><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">Then you most likely have some problems with how libraries are compiled/built. Can you successfully run examples that come with ITK and VTK libraries? If not, you first need to take care of those issues.</div>



</div><div><br><br><div>On Tue, Apr 29, 2014 at 1:01 PM, Роман Глуховский <span dir="ltr"><<a href="https://e.mail.ru/compose/?mailto=mailto%3aroman_glu@mail.ru" target="_blank">roman_glu@mail.ru</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I try this example, but i get also a segmentation fault<br><br><br>Tue, 29 Apr 2014 12:04:45 +0200 от Dženan Zukić <<a href="https://e.mail.ru/compose/?mailto=mailto%3adzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>>:<div>

<div>

<br>
<blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px">
        <div>
        



    









        
        


        
        
        
        
        

        
        

        
        



<div>
        
        <div>
                
                
                        <div><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">Have you seen this example?</div><div><font face="verdana, sans-serif"><a href="http://vtk.org/Wiki/VTK/ExamplesBoneYard/Cxx/VolumeRendering/itkVtkImageConvert" target="_blank">http://vtk.org/Wiki/VTK/ExamplesBoneYard/Cxx/VolumeRendering/itkVtkImageConvert</a></font><br>





</div></div><div><br><br><div>On Tue, Apr 29, 2014 at 10:45 AM, Роман Глуховский <span dir="ltr"><<a href="https://e.mail.ru/compose/?mailto=mailto%3aroman_glu@mail.ru" target="_blank">roman_glu@mail.ru</a>></span> wrote:<br>





<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>

<div>
        
        <div>
                
                
                        <div><div><div>
I change the part of my programm to load the ImageSeries,<br></div></div><div><div><div><div><div><br>    typedef itk::Image<unsigned char, 3> ImageType;<br>    typedef itk::ImageSeriesReader< ImageType >  ReaderType;<br>





    ReaderType::Pointer reader = ReaderType::New();<br>    typedef itk::GDCMImageIO ImageIOType;<br>    ImageIOType::Pointer dicomIO = ImageIOType::New();<br>    reader->SetImageIO(dicomIO);<br><br>    typedef itk::GDCMSeriesFileNames NamesGeneratorType;<br>





    NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();<br>    nameGenerator->SetDirectory("Folder");<br><br><br>    // get series IDs<br>    typedef std::vector<std::string> SeriesIdContainer;<br>





    const SeriesIdContainer &seriesUID = nameGenerator->GetSeriesUIDs();<br><br>    // get dicom series<br>    typedef std::vector<std::string> FileNamesContainer;<br>    FileNamesContainer fileName;<br>    fileName=nameGenerator->GetFileNames(seriesUID.begin()->c_str());<br>





    reader->SetFileNames(fileName);<br><br>    // pull reader<br>    reader->Update();<br><br>But my programm crash again at the same position, when i try to convert to vtk.<br><br><br>Sat, 26 Apr 2014 07:12:55 +0800 (CST) от 关红彦 <<a href="https://e.mail.ru/compose/?mailto=mailto%3aghy@tellyes.com" target="_blank">ghy@tellyes.com</a>>:<br>






<blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px">
        <div>
        



    









        
        


        
        
        
        
        

        
        

        
        



<div>
        
        <div>
                
                
                        <div><div style="line-height:1.7;font-size:14px;font-family:arial"><br><br>I just wonder if your 3D medical images save as a file or a series of images.<div>If you save  them to a series of files,  you shouldn't  do this: </div>





<div style="color:rgb(255,0,0)"><span style="color:rgb(255,0,0)"> </span><span style="font-family:monospace;font-size:12px;line-height:22px;color:rgb(255,0,0)">#include <</span><a href="http://www.itk.org/Doxygen45/html/itkImageFileReader_8h_source.html" style="color:rgb(255,0,0);font-weight:bold;text-decoration:none;font-family:monospace;font-size:12px;line-height:22px" target="_blank">itkImageFileReader.h</a><span style="font-family:monospace;font-size:12px;line-height:22px;color:rgb(255,0,0)">></span></div>





<div><span style="color:rgb(255,0,0)">reader->SetFileName( "DICOM-File" );</span> <span style="color:rgb(255,0,0)"></span></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000">but this:</font></div>





<div><span style="font-family:monospace;font-size:12px;line-height:22px"></span><span style="color:rgb(0,0,255)"><span style="font-family:monospace;font-size:12px;line-height:22px;color:rgb(0,0,255)">#include <</span><a href="http://www.itk.org/Doxygen45/html/itkImageSeriesReader_8h_source.html" style="color:rgb(0,0,255);font-weight:bold;text-decoration:none;font-family:monospace;font-size:12px;line-height:22px" target="_blank">itkImageSeriesReader.h</a><span style="font-family:monospace;font-size:12px;line-height:22px;color:rgb(0,0,255)">></span><span style="color:rgb(0,0,255)"> </span><font color="#ff0000"><br>





</font><table class="mceItemTable" style="font-size:12px;line-height:22px;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;border-spacing:0px;padding:0px;color:rgb(0,0,0);text-align:start"><tbody><tr><td style="background-color:rgb(249,250,252);border:none;margin:4px;padding:1px 0px 0px 8px;white-space:nowrap;color:rgb(0,0,255)" align="right" valign="top">





void </td><td style="background-color:rgb(249,250,252);border:none;margin:4px;padding:1px 0px 0px 8px;width:1607px" valign="bottom"><a href="http://www.itk.org/Doxygen45/html/classitk_1_1ImageSeriesReader.html#aedb3ea58c4bb4975f46ef9c85a855aa6" style="color:rgb(0,0,255);font-weight:bold;text-decoration:none" target="_blank">SetFileNames</a><span style="color:rgb(0,0,255)"> (const </span><a href="http://www.itk.org/Doxygen45/html/classitk_1_1ImageSeriesReader.html#a2efd0b86373c161229f7984b9ea4af56" style="color:rgb(0,0,255);font-weight:bold;text-decoration:none" target="_blank">FileNamesContainer</a><span style="color:rgb(0,0,255)"> &name)</span></td>





</tr></tbody></table></span><table class="mceItemTable" style="border-spacing:0px;line-height:22px;text-align:start;font-size:12px;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;padding:0px"><tbody><tr><td style="background-color:rgb(249,250,252);border:none;margin:4px;padding:1px 0px 0px 8px;width:1607px" valign="bottom">





</td></tr></tbody></table>This class can read a series of *.DCM files that are using a lot in the hospital.<br><div><br></div><br>At 2014-04-25 20:52:20,"Роман Глуховский" <<a href="https://e.mail.ru/compose/?mailto=mailto%3aroman_glu@mail.ru" target="_blank">roman_glu@mail.ru</a>> wrote:<br>





 <blockquote style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">Hi vtkusers,<br><br>i load a DICOM-file with itk and after that i would like to display the file with vtk. <br><br>If I compile the programm I have no error. When i start the programm, its crashed and <br>





i get a return value "0".<br><br>In the debug-mode i get a "segmentation fault" and the programm stops at this position<br><br>----------> m_Importer->SetPropagateUpdateExtentCallback(m_Exporter->GetPropagateUpdateExtentCallback());<br>





<br>in the "itkImageToVTKImageFilter_hxx". <br><br>Here is my code:<br><br>        typedef itk::Image<unsigned char, 3> VisualizingImageType;<br>        typedef itk::ImageFileReader< VisualizingImageType >  ReaderType;<br>





        ReaderType::Pointer reader = ReaderType::New();<br>        reader->SetFileName( "DICOM-File" );<br>        typedef itk::GDCMImageIO ImageIOType;<br><br>        ImageIOType::Pointer gdcmImageIO = ImageIOType::New();<br>





<br>        reader->SetImageIO( gdcmImageIO );<br>        reader->Update();<br>        reader->GetOutput()->Print(std::cout);<br><br>        vtkSmartPointer<vtkRenderWindow> renWin = vtkSmartPointer<vtkRenderWindow>::New();<br>





        vtkSmartPointer<vtkRenderer> ren1 = vtkSmartPointer<vtkRenderer>::New();<br>        ren1->SetBackground(0.5f,0.5f,1.0f);<br><br>        renWin->AddRenderer(ren1);<br>        renWin->SetSize(1280,1024);<br>





        vtkSmartPointer<vtkRenderWindowInteractor> iren =<br>            vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>        iren->SetRenderWindow(renWin);<br>        renWin->Render(); // make sure we have an OpenGL context.<br>





<br>        typedef itk::ImageToVTKImageFilter<VisualizingImageType> itkVtkConverter;<br>        itkVtkConverter::Pointer conv=itkVtkConverter::New();<br>        conv->GetExporter()->SetInput(reader->GetOutput());<br>





        conv->GetImporter()->Update();<br>        conv->GetImporter()->GetOutput()->Print(std::cout);<br><br>        vtkImageViewer * viewer =vtkImageViewer::New();<br>        vtkRenderWindowInteractor * renderWindowInteractor =<br>





        vtkRenderWindowInteractor::New();<br>        viewer->SetupInteractor( renderWindowInteractor );<br>        viewer->SetInputData( conv->GetImporter()->GetOutput() );<br>        viewer->SetZSlice( 0 ); // <-- Slice selection<br>





        viewer->Render();<br>        renderWindowInteractor->Start();<br><br>        viewer->Delete();<br>        renderWindowInteractor->Delete();<br>        conv->GetImporter()->Delete();<br><br><br>Thank you for your help<br>





<br>Roman<br>
</blockquote></div></div>
</div>
                        
                
                
        </div>

        
</div>


</div>
</blockquote>
<br>

</div>
                        </div></div><div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</div>
                
                
        </div>

        
</div>



<br><hr>
</div>
                        
                
                
        </div>

        
</div>



<br><hr><span><font color="#888888">
<br>-- <br>Роман Глуховский<br></font></span></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>

</div>
                        
                
                
        </div>

        
</div>


</div>
</blockquote>
<br></div></div></div>
</blockquote></div><br></div>

</div>
                        
                
                
        </div>

        
</div>


</div>
</blockquote>
<br></div></div></div>
</blockquote></div><br></div>

</div>
                        
                
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>