comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Image Inpainting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Image Inpainting [message #64864 is a reply to message #64859] Wed, 21 January 2009 04:42 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
erano wrote:
> Hello,
> I'm looking for a simple IDL code for Image Inpainting.
>
> Input is an image (2D) with small missing areas, and I wish to add
> values to the unknowm pixels, based on the known pixels.
>
> Thanks
> Eran

Hi Eran,

there are a lot of ways of filling missing pixels... one of them is to
have a 3*3 (or else) window that moves over your image. When the central
pixel is a "missing" one, get the value of the pixels in the window and
assign the majority value to the missing pixel... this works well for
classification, you might want to do an average instead if you have
continuous values.

The trick is not to assign the missing value to any pixel, even if it is
the majority value, so you would have to iterate it several times... And
of course, your window doesn't need to move over the whole image, just
select the missing pixels via Where().

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL-Java bridge problem
Next Topic: How to control the order of the objects to draw [using object graphics]

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Nov 29 19:59:40 PST 2025

Total time taken to generate the page: 0.95890 seconds