[Insight-users] removing rectangle from microgriding images
Richard Beare
richard.beare at gmail.com
Wed Nov 14 19:17:50 EST 2012
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.
On Thu, Nov 15, 2012 at 6:29 AM, Sebastian Ordas
<sebastian.ordas at gmail.com> wrote:
> Hi again,
>
> I think I found a work around for now ....
>
> The filters itkGrayscaleFillHoleImageFilter (for dark lines/spots) and
> itkGrayscaleGrindImageFilter (for bright lines/spots)
> did the trick:
>
> before:
> http://ScrnSht.com/xhnpgm
>
> after:
> http://ScrnSht.com/kdsykj
>
> The "Fully Connected" parameter was important
>
> let me know if someone has a better solution
>
> thank you,
> sebastian
>
> On 13/11/2012 09:51 a.m., Sebastian Ordas wrote:
>>
>> Hi All,
>>
>> A microgriding data set has a rectangular artifact in every slice coming
>> from zooming into the sample and pasting
>> Does anyone know of a filter or procedure to remove it?
>>
>> http://ScrnSht.com/bxhrpn
>>
>> Note that the same rectangle appears shifted and rotated in contiguous
>> slices
>>
>> thanks in advance
>> sebastian
>>
>>
>>
>>
>>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list