# Latest

**URL:** https://discourse.itk.org/latest.md?page=70

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

**Page:** 71

---

## [Reading DICOM-RT files](https://discourse.itk.org/t/reading-dicom-rt-files/960)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 13\
**Last updated:** [April 7, 2020, 5:11pm UTC](https://discourse.itk.org/t/reading-dicom-rt-files/960 "2020-04-07T17:11:54Z")

</div>

Hello, I’d like to read DICOM-RT Structure Set files in my application. Is the method described in the paper below the best way to do this using ITK? http://www.insight-journal.org/browse/publication/887 The paper use…

---

## [Is .PNG no longer supported?](https://discourse.itk.org/t/is-png-no-longer-supported/2893)

<div class="topic-metadata">

**Author:** [@Henco](https://discourse.itk.org/u/Henco)\
**Replies:** 15\
**Last updated:** [April 6, 2020, 5:10pm UTC](https://discourse.itk.org/t/is-png-no-longer-supported/2893 "2020-04-06T17:10:38Z")

</div>

Good Afternoon, I’m currently trying to create a program to read a given 3D image, perform one forward projection from a varying rotation (Only one slice is made), convert that to a 2D image and write it to a PNG file. …

---

## [Resampling PET, CT and binary mask images to resolution \[1,1,1\].](https://discourse.itk.org/t/resampling-pet-ct-and-binary-mask-images-to-resolution-1-1-1/2907)

<div class="topic-metadata">

**Author:** [@JakeKendrick](https://discourse.itk.org/u/JakeKendrick)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 6:44am UTC](https://discourse.itk.org/t/resampling-pet-ct-and-binary-mask-images-to-resolution-1-1-1/2907 "2020-04-06T06:44:15Z")

</div>

Hello SimpleITK community, I am new to this community and python image processing using SimpleITK in general, so i hope that i have asked the question in the correct way, and i apologise if my question is trivial. As p…

---

## [Bottom Boundary of the lungs](https://discourse.itk.org/t/bottom-boundary-of-the-lungs/2900)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 11\
**Last updated:** [April 6, 2020, 1:34am UTC](https://discourse.itk.org/t/bottom-boundary-of-the-lungs/2900 "2020-04-06T01:34:42Z")

</div>

Hi all, I segmented the lungs in ITK. Now, I need to get the boundary of the most inferior part of the lungs, the same as pink and blue lines shown in the attached image. I am a beginner in ITK and I really need to get …

---

## [Increase WL intensity](https://discourse.itk.org/t/increase-wl-intensity/2899)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 11:19am UTC](https://discourse.itk.org/t/increase-wl-intensity/2899 "2020-04-04T11:19:17Z")

</div>

I have a sitk::Image rendered into a VTK viewer, which is seen well at W/L 242/1195. I noticed that after I apply BinaryThreshold filter, the sitk::Image result is seen well on my VTK viewer. But, if I apply a sitk::SLI…

---

## [Insert a 2D slice in a 3D image](https://discourse.itk.org/t/insert-a-2d-slice-in-a-3d-image/2888)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 9\
**Last updated:** [April 3, 2020, 6:33pm UTC](https://discourse.itk.org/t/insert-a-2d-slice-in-a-3d-image/2888 "2020-04-03T18:33:43Z")

</div>

Hi all, I created a 3D image with desirable spacing and origin, now I want to insert a 2D slice in one of the slices of this 3D image. Does anyone know how I can do it? Below, I also sent a code written for creating 3D …

---

## [Transform Hounsfield unit to intensity values](https://discourse.itk.org/t/transform-hounsfield-unit-to-intensity-values/2818)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 2:23pm UTC](https://discourse.itk.org/t/transform-hounsfield-unit-to-intensity-values/2818 "2020-03-11T14:23:20Z")

</div>

Hello all of you. can you tell me how to convert Hounsfield unit to intensity window level values ? I far I understand, there is standard mathematical way called windowing … But how can apply it when I have, let say bon…

---

## [Negation after mask operation](https://discourse.itk.org/t/negation-after-mask-operation/2884)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 10:40am UTC](https://discourse.itk.org/t/negation-after-mask-operation/2884 "2020-04-02T10:40:03Z")

</div>

I have loaded a CBCT into sitk::Image. And I ran: sitk::Image imgTemp(imgOrg); sitk::Image threshold = sitk::BinaryThreshold(imgTemp, 2000, 3600); // let only teeth (tough bones) sitk::MaskImageFilter mask; and I see …

---

## [Does simple ITK (python) offers all the functionalities as the C++ ITK?](https://discourse.itk.org/t/does-simple-itk-python-offers-all-the-functionalities-as-the-c-itk/2890)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 6\
**Last updated:** [April 1, 2020, 9:10pm UTC](https://discourse.itk.org/t/does-simple-itk-python-offers-all-the-functionalities-as-the-c-itk/2890 "2020-04-01T21:10:12Z")

</div>

---

## [SimpleITK2.0 Updated Logo](https://discourse.itk.org/t/simpleitk2-0-updated-logo/2886)

<div class="topic-metadata">

**Author:** [@zivy](https://discourse.itk.org/u/zivy)\
**Replies:** 0\
**Last updated:** [April 1, 2020, 3:06pm UTC](https://discourse.itk.org/t/simpleitk2-0-updated-logo/2886 "2020-04-01T15:06:01Z")

</div>

As part of work towards the second major release of SimpleITK, the toolkit’s logo has been redesigned (thanks to Sam Ezeji): Full logo: Icon only version: If you haven’t had the opportunity to try our first releas…

---

## [Wrap Python CastXML compilation errors](https://discourse.itk.org/t/wrap-python-castxml-compilation-errors/2876)

<div class="topic-metadata">

**Author:** [@beastwood](https://discourse.itk.org/u/beastwood)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 1:09am UTC](https://discourse.itk.org/t/wrap-python-castxml-compilation-errors/2876 "2020-04-01T01:09:16Z")

</div>

I’m running into some ITK compilation errors when I try to build ITK with wrapped Python bindings that are I think related to CastXML. I’ve found a few threads referencing somewhat similar errors (e.g. this one), but tho…

---

## [Correlation of two images](https://discourse.itk.org/t/correlation-of-two-images/2815)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 5\
**Last updated:** [March 31, 2020, 5:12pm UTC](https://discourse.itk.org/t/correlation-of-two-images/2815 "2020-03-31T17:12:33Z")

</div>

How do I perform the correlation between two patches that I extracted from an image? I have extracted two patches and saved them into two different images. Now I just want to perform correlation between them. There is n…

---

## [How to change the information of image after padding? Is it required?](https://discourse.itk.org/t/how-to-change-the-information-of-image-after-padding-is-it-required/2882)

<div class="topic-metadata">

**Author:** [@Sara\_Caffe](https://discourse.itk.org/u/Sara_Caffe)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 2:25pm UTC](https://discourse.itk.org/t/how-to-change-the-information-of-image-after-padding-is-it-required/2882 "2020-03-31T14:25:26Z")

</div>

Hi, I need to create a mesh from a closed surface. What I did is that to pad the image with tolerance level of 3 pixels padSize, // pad the input intensity image PadFilterType::Pointer padFilter=PadFilterType::…

---

## [Command/Observer which accepts a lambda](https://discourse.itk.org/t/command-observer-which-accepts-a-lambda/2632)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 10:03pm UTC](https://discourse.itk.org/t/command-observer-which-accepts-a-lambda/2632 "2020-03-30T22:03:26Z")

</div>

Hello, I am wondering if anyone has already created a itk::Command class which accepts a C++ lambda function? Otherwise, I am wondering if a new itk::Object::AddObserver method should be overloaded to accept std::funct…

---

## [Wrap ITK image pointers with pybind11 and mix with the itk python package](https://discourse.itk.org/t/wrap-itk-image-pointers-with-pybind11-and-mix-with-the-itk-python-package/2880)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 6:44pm UTC](https://discourse.itk.org/t/wrap-itk-image-pointers-with-pybind11-and-mix-with-the-itk-python-package/2880 "2020-03-30T18:44:53Z")

</div>

Hi there, I am wrapping to python a library that I maintain SGEXT using pybind11. I have wrapped the algorithms in the library, but I also wanted to wrap high level functions which use ITK, not only internally, but in th…

---

## [SimpleITK registration: how to adjust the image by patient orientation?](https://discourse.itk.org/t/simpleitk-registration-how-to-adjust-the-image-by-patient-orientation/2828)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 9\
**Last updated:** [March 29, 2020, 2:22pm UTC](https://discourse.itk.org/t/simpleitk-registration-how-to-adjust-the-image-by-patient-orientation/2828 "2020-03-29T14:22:38Z")

</div>

I want to registration two images by SimpleITK. The image1 is axially acquired, while the image2 is coronary acquired. I find the result is poor. I wonder if it is possible to adjust the image1 and image2 by the patient …

---

## [THEORY FOR MEDICAL IMAGES REGISTRATION](https://discourse.itk.org/t/theory-for-medical-images-registration/2879)

<div class="topic-metadata">

**Author:** [@Dodox](https://discourse.itk.org/u/Dodox)\
**Replies:** 1\
**Last updated:** [March 28, 2020, 9:22pm UTC](https://discourse.itk.org/t/theory-for-medical-images-registration/2879 "2020-03-28T21:22:07Z")

</div>

Hello everyone, I am a student in the last year in medical imaging,for my internship I have to register medical images using simple ITK library, I have theoretical notions on this kind of problem but apparently on this …

---

## [Python wrapped itk.Image - What type to use for int](https://discourse.itk.org/t/python-wrapped-itk-image-what-type-to-use-for-int/617)

<div class="topic-metadata">

**Author:** [@Besler](https://discourse.itk.org/u/Besler)\
**Replies:** 11\
**Last updated:** [March 27, 2020, 8:17pm UTC](https://discourse.itk.org/t/python-wrapped-itk-image-what-type-to-use-for-int/617 "2020-03-27T20:17:03Z")

</div>

I was trying to convert a DICOM stack to a NifTI in Python when I realized itk.Image is not wrapped for pixel type int. I installed itk through Anaconda. It is my understanding that if I defined a variable of type int i…

---

## [Calculation of spatial frequency](https://discourse.itk.org/t/calculation-of-spatial-frequency/2874)

<div class="topic-metadata">

**Author:** [@drcjaudet](https://discourse.itk.org/u/drcjaudet)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 4:43pm UTC](https://discourse.itk.org/t/calculation-of-spatial-frequency/2874 "2020-03-27T16:43:18Z")

</div>

Hello ITK, i want to compute “spatial frequency” for wavelet. In these publication (DOI: 10.17694/bajece.24838,H. Boztoprak ) they define it as: with M, N the voxel indice and F his value. So i create a code like th…

---

## [Registration on CT and phantom](https://discourse.itk.org/t/registration-on-ct-and-phantom/2875)

<div class="topic-metadata">

**Author:** [@moeez](https://discourse.itk.org/u/moeez)\
**Replies:** 3\
**Last updated:** [March 26, 2020, 3:53pm UTC](https://discourse.itk.org/t/registration-on-ct-and-phantom/2875 "2020-03-26T15:53:48Z")

</div>

Hello itk community, My goals is to create a code in simple itk to perform registration on an whole body phantom and on a CT of a patient (from head to chest) CT: 1x1x3.3mm^3 phantom: 1x1x5mm^3 At first, I write a co…

---

## [Extract bone](https://discourse.itk.org/t/extract-bone/2869)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 8\
**Last updated:** [March 25, 2020, 8:37pm UTC](https://discourse.itk.org/t/extract-bone/2869 "2020-03-25T20:37:32Z")

</div>

I have few pieces of ideas/code, but I cannot connect them to achieve extraction / removing of a bone from a volume (vtkVolume), with SimpleITK. I know that I need to make a segmentation on the initial image. And I have…

---

## [Remove small component](https://discourse.itk.org/t/remove-small-component/2858)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 8\
**Last updated:** [March 26, 2020, 3:43pm UTC](https://discourse.itk.org/t/remove-small-component/2858 "2020-03-26T15:43:34Z")

</div>

I intend to remove from sitk::Image the smallest component from it (in the first stage). For that, I wrote: BOOL CMyDoc::Segement(sitk::Image& img) { sitk::Image imgTemp(img); int64\_t nMaxLabel = 0, nMaxSize = 0; …

---

## [Reading image series](https://discourse.itk.org/t/reading-image-series/2867)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 16\
**Last updated:** [March 26, 2020, 12:51pm UTC](https://discourse.itk.org/t/reading-image-series/2867 "2020-03-26T12:51:52Z")

</div>

Hi all, How can I read images series in ITK which are in NRRD format ?

---

## [Reset index of an image after Crop](https://discourse.itk.org/t/reset-index-of-an-image-after-crop/2870)

<div class="topic-metadata">

**Author:** [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)\
**Replies:** 8\
**Last updated:** [March 25, 2020, 11:32am UTC](https://discourse.itk.org/t/reset-index-of-an-image-after-crop/2870 "2020-03-25T11:32:50Z")

</div>

Dear All, This is a very specific question so I will give some context: I’m registering two Images with very different sizes, but the assumption (verified in script) is that the moving image is far smaller and complete…

---

## [ITK Community Survey 2019 Summary](https://discourse.itk.org/t/itk-community-survey-2019-summary/2873)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [March 24, 2020, 10:12pm UTC](https://discourse.itk.org/t/itk-community-survey-2019-summary/2873 "2020-03-24T22:12:52Z")

</div>

Since 1999, the Insight Toolkit (ITK) has been revolutionizing the way medical images are explored and analyzed. In addition to providing a robust infrastructure for the dissemination of complex algorithms across differe…

---

## [Ellipse shapr detection in hough transform](https://discourse.itk.org/t/ellipse-shapr-detection-in-hough-transform/2865)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 0\
**Last updated:** [March 21, 2020, 1:42am UTC](https://discourse.itk.org/t/ellipse-shapr-detection-in-hough-transform/2865 "2020-03-21T01:42:35Z")

</div>

Hi all, Does anyone know how I can detect ellipse shape and edit Hough transform code in ITK for this purpose? since the written code is for detecting circles. Can anyone help me? I want to segment descending aorta in 3…

---

## [Hough Transform 2D Circles Image Filter GetCircles patch.](https://discourse.itk.org/t/hough-transform-2d-circles-image-filter-getcircles-patch/350)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 86\
**Last updated:** [March 21, 2020, 1:40am UTC](https://discourse.itk.org/t/hough-transform-2d-circles-image-filter-getcircles-patch/350 "2020-03-21T01:40:03Z")

</div>

I’m currently trying out itk::HoughTransform2DCirclesImageFilter::GetCircles(n), and while I get quite promising results, there still appears room for improvement of the code. Here’s my first patch for this function: "…

---

## [How to change the size of a sitk::Image object](https://discourse.itk.org/t/how-to-change-the-size-of-a-sitk-image-object/2833)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 1\
**Last updated:** [March 16, 2020, 9:36pm UTC](https://discourse.itk.org/t/how-to-change-the-size-of-a-sitk-image-object/2833 "2020-03-16T21:36:47Z")

</div>

Hi, I create a class that contains a sitk::Image as one of its attributes but in the moment of the creation of the class I do not know what should be its size. So, how do I change the size of that object? Thanks.

---

## [Advice on registering noisy head CT on template](https://discourse.itk.org/t/advice-on-registering-noisy-head-ct-on-template/2849)

<div class="topic-metadata">

**Author:** [@trypag](https://discourse.itk.org/u/trypag)\
**Replies:** 12\
**Last updated:** [March 20, 2020, 7:02pm UTC](https://discourse.itk.org/t/advice-on-registering-noisy-head-ct-on-template/2849 "2020-03-20T19:02:48Z")

</div>

Hello, I am trying to register a head CT (with headset) on a head CT template. The presence of a headset is challenging the whole registration step (I think). It can eventually succeed if I wait long enough. I am looki…

---

## [Cast/Create DisplacementField Python](https://discourse.itk.org/t/cast-create-displacementfield-python/2610)

<div class="topic-metadata">

**Author:** [@SiPyWiFi](https://discourse.itk.org/u/SiPyWiFi)\
**Replies:** 2\
**Last updated:** [March 20, 2020, 1:41pm UTC](https://discourse.itk.org/t/cast-create-displacementfield-python/2610 "2020-03-20T13:41:40Z")

</div>

Dear All! I have only been using ITK for a short time. In my project the goal is to transform an input image with a displacement field. For this I want to use the Python version. My problems is/are (They are linked): …

[Previous page](https://discourse.itk.org/latest.md?page=69)

[Next page](https://discourse.itk.org/latest.md?page=71)
