Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to apply VesselWallHoughTransformFilter and measurement2D slice by slice #9

Open
wuzhuobin opened this issue Apr 19, 2017 · 0 comments

Comments

@wuzhuobin
Copy link
Owner

i all,

Thank you very much for your help!
Using SliceBySliceImageFilter with the BinaryFillholeImageFilter did the 

job. And thanks for the explanation, Gaëtan.

Tiago

De: Gaëtan Lehmann [email protected]
Para: Tiago Brizolara da Rosa [email protected]
Cc: ITK Users [email protected]; Bill Lorensen [email protected]
Enviadas: Terça-feira, 26 de Abril de 2011 4:41:11
Assunto: Re: [Insight-users] Fast access to slices of 3D image + problem with
BinaryFillholeImageFilter

Hi,

This filter should work fine in N dimensions. Are you sure there is a real
problem with the filter?
The fill holes transform is very sensible to any open pixel. In 3D, it may be
difficult to see if a hole is open, but the algorithm won't miss it.

Using it in 2D in a 3D image is a perfectly valid usage, especially if the
spacing in your image is not uniform - I'm almost always using that filter that
way.
SliceBySliceImageFilter makes easy to apply a 2D filter in a 3D image.

Regards,

Gaëtan

Le 26 avr. 11 à 05:08, Bill Lorensen a écrit :

In the example, did you change:
const int dim = 2;
to
const int dim = 3;

On Mon, Apr 25, 2011 at 9:13 PM, Tiago Brizolara da Rosa [email protected]
wrote:
Hi all,

I would like to know if there is a fast way of manipulating a slice of a 3D
volume. Specifically, I want to apply a filter to individual slices of a volume.
The only way I know for doing that is by, for each desired slice: applying a
ExtractImageFilter and then applying the filter I want to use to the slice image
generated.
Is there a way for jumping this step (ExtractImageFilter)? For example, if I
wanted to manipulate the pixels of my desired slices, I should use the
ImageSliceIteratorWithIndex, so I wouldn´t need the ExtractImageFilter. But what
I want is to apply a filter to each slice. Is it posible to do this without
having to generate a new image for each one with ExtractImageFilter?

Now the problem with BinaryFillholeImageFilter. In fact, the reason for the
above question comes from a workaround to the problem with this filter.
I tried to use BinaryFillholeImageFilter in exactly the same way as in the
example file binary_fill_hole.cxx, but without success. Then I noticed that it
works fine if my image is two-dimensional (I was trying to use in a 3D image
read from a DICOM series). It was not supposed to work in a 3D image?
I am using ITK 3.8.0 in Windows 7 and downloaded the code for the morphology
filters and samples from the Insight Journal´s article
Label object representation and manipulation with ITK
(http://www.insight-journal.org/browse/publication/176).

Well, as a workaround, I want to apply BinaryFillholeImageFilter to all the
individual slices of the volume. I think that generating a 2D image for each one
would be very painfull. This is the reason for the first question of this
e-mail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant