[Insight-users] removing rectangle from microgriding images
David Doria
daviddoria at gmail.com
Wed Nov 14 19:50:30 EST 2012
On Wed, Nov 14, 2012 at 7:17 PM, Richard Beare <richard.beare at gmail.com>wrote:
> These will both modify other parts of the image as well, which you may
> not want. In the past I have use the following approach which is easy
> if the lines have a constant brightness or colour setting making it
> trivial to define a mask containing just the features you want to
> remove.
>
> The simple option then is to apply a median filter to the original
> image and replace the mask voxels with the values output by the median
> filter - all of which can be done with masking and arithmetic
> operations. Alternatively you could use a mask filling by
> interpolation approach (Poisson editing), which is more sophisticated.
> Dave Doria published some ITK/VTK methods for this, and Matlab has a
> function that does it.
Here is the code that Richard was referring to:
https://github.com/daviddoria/PoissonEditing
but as he mentioned, it may be overkill and you might get just as good of a
result with something like median filtering. In either case, you have to
know which pixel are corrupt before you can fix them (if you don't want to
modify the rest of the data).
Also, I don't see GrayscaleGrindImageFilter here
http://www.itk.org/Doxygen/html/classes.html ?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121114/9210df76/attachment.htm>
More information about the Insight-users
mailing list