itk

Qt Creator + MITK (Linux)

人盡茶涼 提交于 2019-12-23 04:17:31
问题 I'm trying to use MITK with Qt Creator . I've successfully compiled and used VTK and ITK with ccmake. I've compiled MITK in superbuild mode (it downloads CTK, VTK, ITK, etc). Then I've configured it. I've compiled with make (About two hours). I've tried make install , but MITK doesn't work that way. With GDCM, ITK, VTK, I could find header files in /usr/local/include and shared libs in /usr/local/lib , so I included those in my .pro file in the Qt Creator project and start working. I've been

Is there any way to convert an Eigen::Matrix back to itk::image?

陌路散爱 提交于 2019-12-23 02:26:51
问题 I used Eigen library to convert several itk::image images into matrices, and do some dense linear algebra computations on them. Finally, I have the output as a matrix, but I need it in itk::image form. Is there any way to do this? const unsigned int numberOfPixels = importSize[0] * importSize[1]; float* array1 = inverseU.data(); float* localBuffer = new float[numberOfPixels]; std::memcpy(localBuffer, array1, numberOfPixels); const bool importImageFilterWillOwnTheBuffer = true; importFilter-

Extracting a region of interest from an image file without reading the entire image

末鹿安然 提交于 2019-12-20 05:47:25
问题 I am searching for a library (in any language) that is capable of reading a region of an image file (any format) without having to initially read that entire image file. I have come across a few options such as vips, which does indeed not keep the entire image in memory, but still seems to need to read it entirely to begin with. I realize this may not be available for compressed formats such as jpegs, but in theory it sounds like bmps or tiffs should allow for this type of reading. 回答1:

How are the spacing value of the z dimension and thickness (0018, 0050) different in dicom series?

懵懂的女人 提交于 2019-12-19 10:20:18
问题 I've been studying some dicom series and find that the thickness attribute and the itkimage.GetSpacing()[2] value are not always consistent. For example the thickness (0018, 0050) value encoded in the dcm file is 1.5 mm but the corresponding spacing indicated simpleITK on z axis is 1.00 . Then what value should I use to indicate the physical distance between adjacent voxel center s on the z axis? If they are different things then What do spacings actually mean? I retrieve thickness and

Integrate ITK (Insight Toolkit) into own project

久未见 提交于 2019-12-14 03:42:35
问题 i am having problems integrating ITK - Insight Toolkit into another image processing pipeline. ITK itself is a medical image processing toolkit and uses cmake as build system. My image pipeline project uses cmake as well. According to the user manual of ITK it is favorable to use the "UseITK.cmake" file in the build (out of source) directory of ITK. You can do that by adding the following lines the CMakeList.txt of your own project. # 'SET(ITK_DIR ...)' if 'FIND_PACKAGE(ITK REQUIRED)' fails

How open Qt Creator project (itk-snap) using Cmake

[亡魂溺海] 提交于 2019-12-14 00:41:42
问题 I am interested to import Itk-snap source code in Qt5.4. Based on their help I could built the executable itksnap in my system using cmake(3.4.1). Then, I have imported the Cmakelist.txt in Qt creator and pressed "run camke". It is configured successfully, but I cannot see the project file ( no main.cpp or any file in left panel)! , cannot build it because it does not loaded in Qt creator. What do I do wrong? How can I have itksnap in my QT creator. I am using OSX, and unix generator for

ITK library on iOS - Loading DICOM

允我心安 提交于 2019-12-13 19:17:41
问题 I have built the ITK library for the ipad - and it works. Then I tried to make an ITK example - something like that: // Load DICOM files typedef itk::ImageSeriesReader< InputImageType > ReaderType; ReaderType::Pointer reader = ReaderType::New(); typedef itk::GDCMImageIO ImageIOType; typedef itk::GDCMSeriesFileNames NamesGeneratorType; ImageIOType::Pointer gdcmIO = ImageIOType::New(); NamesGeneratorType::Pointer namesGenerator = NamesGeneratorType::New(); namesGenerator->SetInputDirectory( "C:

c++ conflicting versions when loading package

好久不见. 提交于 2019-12-12 05:20:12
问题 I know nothing from c++ . I installed two versions of some package called ITK . For some reason, the 4.8 version has its .cmake file in /usr/local/lib/cmake/ITK-4.8/UseITK.cmake and the 3.16 file /usr/local/itk/lib/InsightToolkit/UseITK.cmake . So now, I am trying to build some project that requires 3.16 version that has in its CMakeLists.txt this : find_package(ITK) ... include( ${ITK_USE_FILE} ) but ${ITK_USE_FILE} is /usr/local/lib/cmake/ITK-4.8/UseITK.cmake . (what I understand is that

Image segmentation and registration using SimpleITK

谁说胖子不能爱 提交于 2019-12-12 04:28:58
问题 I have some doubts regarding 3D image registration and segmentation: Load dicom images: In DCE-MRI there are 4000 slices and total 100 stacks, so 40 in each stack. How can I load them to a 4D array using GDCM simpleITK function Registration: registration is pretty straight forward, we have to register all 100 stacks to the first stack. Registration accuracy : SimpleITK overlap ratio measure or hausdroff distance need segmentation and labelling. Now segmentation using region growing or

MultiScaleHessianBasedMeasureImageFilter missing (ITK module install problem)

假装没事ソ 提交于 2019-12-11 23:24:43
问题 I want to use an itk::MultiScaleHessianBasedMeasureImageFilter , but Visual Studio shows this filter is missing. Then I look it up on ITK page, saying that this filter is in the module ITKImageFeature . So I am about to install this module through CMake, only to find out that there is no ITKImageFeature module showing. Did anybody meet this or same problem before? Any suggestion or help is appreciated. 来源: https://stackoverflow.com/questions/54434167/multiscalehessianbasedmeasureimagefilter