Impossible for IM ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Daniel_in_the_sky
Posts: 13
Joined: 2009-07-27T05:04:53-07:00
Authentication code: 8675309

Impossible for IM ?

Post by Daniel_in_the_sky »

Hi,
I have been looking for a real long time how to do this, but I couldt succed, im starting to wonder if IM can do it ?
Better than a explaination, here is a picture
Thank you a lot for you help on this, I have try to find my way with color Basic, compose images Tiles, draw, etc... but nothing solid enouth to start with
Notice the yellow transformation :) the matching colors between SRC1 and SRC2 don't need to be extreamly precise
Image

thank you again
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Impossible for IM ?

Post by snibgo »

If you don't provide the actual source and result images, we are limited in our experiments.

The result seems to be SRC1 masked by SRC2. The mask seems to have two effects:

(a) There is some kind of colour distortion.

(b) Four circles in the mask image become one larger circle for the actual masking.

That's as far as I can get.
snibgo's IM pages: im.snibgo.com
Daniel_in_the_sky
Posts: 13
Joined: 2009-07-27T05:04:53-07:00
Authentication code: 8675309

Re: Impossible for IM ?

Post by Daniel_in_the_sky »

My mistake you are right this deserve more explaination
SRC2 is not the mask of Result

I want IM to analyse SRC2 colors, and create a new picture using samples (circle shapes) from SRC1
If SR2 have a big zone of similar colors, then IM consider as 1 group (one circle)

feel free to ask if you need more details
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Impossible for IM ?

Post by snibgo »

You could use ImageMagick to:

1. Identify patches of non-black in SRC2, finding the location and colour of each patch.

2. For patches that have "similar" colours, create a circumscribing circle. For other patches, treat each one as a circle.

3. Combine the resulting circles, in some way, with SRC1.
snibgo's IM pages: im.snibgo.com
Daniel_in_the_sky
Posts: 13
Joined: 2009-07-27T05:04:53-07:00
Authentication code: 8675309

Re: Impossible for IM ?

Post by Daniel_in_the_sky »

I dont know if you have been notified, I posted you a private message :)
Post Reply