"Simon Tam" on  wrote...
| I have a complex hi-def tv image (included). I'm trying hard to figure out
| what ImageMagick processing I need in order to convert this image to a
| grayscale/monochrome image but with the scoreboard text/graphics pop out a
| lot more than the main image. It is likely that the scoreboard text and
| graphics surrounding it are likely the highest intensity pixels on the
| screen (but not always). Not sure if that helps.
|
| I tried the 2 color quantization method (convert  image.png  -colorspace
| gray  +dither  -colors 2  -normalize) and that seemed ok but not the ideal.
| Looking for other suggestions you might have. I'm trying to avoid having to
| write a custom filter (not even sure exactly what I would do there but it
| would be complex, like dropping pixels within a banded threshold and of
| certain clustered densities, ex. portions of gray). The ideal result would
| be that only the scoreboard text/graphics are the only thing left and in
| monochrome but I don't think that can be achieved without some custom image
| processing.
| 
| Hope this file makes it through. Since it's a high def image (1920x270
| cropped) it's still quite large.
| 
| I appreciate any advice you can give me.
| 
| Regards,
| Simon
|

Hmm tricky,  sounds like what you want is something that maps
any primary color to that color, but anything else to black.

One solution I can think if is take a copy of the image
and make specific colors transparent, the use that to mask out
all the other non-matching colors.

See the second example of
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/color/#transparent

For example

   convert hd-tv.png  \( +clone -matte -fuzz %2 \
               -transparent blue \
               -transparent green \
               -transparent red \
               -fill black  -colorize 100% \) \
           -composite    primary_colors.png

This would return an image only showing colors close to just the
specific colors specified, and replace all other colors with black.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  "Got orders to let no-one through," (a guard)
  "We're not anyone," said Bane, "and that's an order."
                               --- Terry Pratchett   ``The Carpet People''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to