Hi Anthony,

Thanks, I will try to do that what you wrote. (and hopefully figure out the
right parameter/values)

Greetings

On Thu, Aug 21, 2008 at 8:22 AM, Anthony Thyssen <[EMAIL PROTECTED]>wrote:

> Kyrill on  wrote...
> | Hi all,
> |
> | I'm working on a script that removes the background from pictures.
> | The problem is on pictures with shadow, it doesn't remove the shadow.
> |
> | Any idea how I can remove the shadow too?
> |
> | Here the steps that I use for removing the background:
> |
> | Original File
> | http://img179.imageshack.us/img179/255/origke7.jpg
> |
> | Difference
> | http://img170.imageshack.us/img170/3316/diffih5.png
> |
> | Threshold
> | http://img170.imageshack.us/img170/7930/thresholdhi5.png
> |
> | Image without background but with shadow
> | http://img186.imageshack.us/img186/5355/outhb7.png
> |
> | If you need more information, let me know.
> |
> Your shadow will make it very very tricky to do background
> removal, but not imposible.
>
> You may be better to split your image into two sections.  The first to
> handle the unshadowed background, the cecond to remove the shadowed
> background.
>
> That is a two color background removal.
>
>
> Note however that a simple 'theshold' background removal will produce
> some horible aliased edging effects, especially in the hair.
>
> I suggest you look at the double 'fuzz' method given in IM examples
> Masking with Anti-Aliased Edges
>   http://www.imagemagick.org/Usage/channels/#mask_antialised
>
> This should let you remove the background as retain or remove the
> shadow as you wish!
>
> You still may need to remove the two backgrounds separatally for better
> results.
>
>  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
>
>  -----------------------------------------------------------------------------
>    `` WARNING: Keyboard device not present. Press <F1> to continue... ''
>                                        --- "American Megatrends" PC Bios
>
>  -----------------------------------------------------------------------------
>     Anthony's Home is his Castle     
> http://www.cit.gu.edu.au/~anthony/<http://www.cit.gu.edu.au/%7Eanthony/>
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to