[Insight-users] Bresenham Line Iterator

Benjamin King king.benjamin at mh-hannover.de
Thu Jun 2 03:57:40 EDT 2005


Hello,

I needed to trace bresenham lines in an image and combined a 
PolyLineParametricPath and a PathIterator to do this. Worked, but was a 
little slow, so I took the PathIterator code and implemented a LineIterator 
based on it that only iterates ND bresenham lines. A test program is about 
4000 times faster on my machine, but your mileage may vary.
Feel free to use the code/integrate it in ITK or whatever.

Cheers,
	Benjamin

-- 
Benjamin King
Experimentelle Radiologie
Medizinische Hochschule Hannover
Tel.: +49  511  532-2663
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkLineConstIterator.h
Type: text/x-chdr
Size: 4671 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050602/a20f66ed/itkLineConstIterator.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestLineIterator.cpp
Type: text/x-c++src
Size: 4297 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050602/a20f66ed/TestLineIterator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkLineIterator.h
Type: text/x-chdr
Size: 2961 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050602/a20f66ed/itkLineIterator.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkLineIterator.txx
Type: text/x-c++src
Size: 509 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050602/a20f66ed/itkLineIterator.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkLineConstIterator.txx
Type: text/x-csrc
Size: 2790 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050602/a20f66ed/itkLineConstIterator.c


More information about the Insight-users mailing list