Re: Image processing Questions

• To: mathgroup at smc.vnet.net
• Subject: [mg110581] Re: Image processing Questions
• From: Matthias Odisio <matthias at wolfram.com>
• Date: Sat, 26 Jun 2010 03:12:01 -0400 (EDT)

```Oops... Corrigendum:

On 6/25/10 8:52 AM, Matthias Odisio wrote:
> Robert,
>
> On 6/25/10 6:26 AM, Robert Pigeon wrote:
>> Hello to all,
>>
>> I have two questions related to image processing.
>>
>> First question : I have some pictures taken with my digital camera and on
>> the pictures I have the date in red numbers on them. I would like to
>> erase
>> those numbers from the pictures. I tried the procedure described on
>> Wolfram
>> web site about image processing (Removing text from an image). But it is
>> not working and I don't know why. Maybe some of you are doing it and
>> could
>> share with me the procedure ?
>>
>
> What exactly did you try? If you could point to an example that would be
> easier to help.
>
>> Second question : I take a portion of an image using ImageTake. I do some
>> processing on that portion. Now I would like to put back that portion
>> in the
>> original image. How can I do that? It would be like the inverse of
>> ImageTake... Any idea?
>>
>
> Assuming the portion you take has its top left corner at {r1, c1}:
>
> sub = ImageTake[img, {r1, r2}, {c1, c2}]

We need some more gymnastics:

h = Last@ImageDimensions@img;

That was incorrect:
> new = ImageCompose[img, sub, {Left, Top}, {r1, c1}]

It should be:
new = ImageCompose[img, sub, {c1 - 1, h + 1 - r1}, {Left, Top}]

Matthias Odisio
Wolfram Research

```

• Prev by Date: Re: ContourStyle Question
• Next by Date: Re: precedence for ReplaceAll?
• Previous by thread: Re: Image processing Questions
• Next by thread: Re: Image processing Questions