# dicom + Hessian filter

**URL:** https://discourse.itk.org/t/dicom-hessian-filter/1631
**Category:** Uncategorized
**Created:** [March 4, 2019, 10:48am UTC](https://discourse.itk.org/t/dicom-hessian-filter/1631 "2019-03-04T10:48:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zandarina](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zandarina](https://discourse.itk.org/u/zandarina)
#### Post date: [March 4, 2019, 10:48am UTC](https://discourse.itk.org/t/dicom-hessian-filter/1631/1 "2019-03-04T10:48:32Z")

</div>

Hi

i want to read series of dicom and apply the hessian filter but i get an error  
when i use hessianFilter-\>SetInput(reader-\>GetInput()); because  
it does not accept a reader of series of dicoms. I have read the dicoms in  
several ways but it does not accept the dicom reader as an input  
of the hessian filter

Is there any way to do it?

Thank you

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [March 4, 2019, 2:04pm UTC](https://discourse.itk.org/t/dicom-hessian-filter/1631/2 "2019-03-04T14:04:00Z")

</div>

Your code appears to be incorrect, `reader->GetInput()`, should be:  
`hessianFilter->SetInput(reader->GetOutput());`
