Creating half-color anaglyph?

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?".
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: Creating half-color anaglyph?

Post by olegk »

User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating half-color anaglyph?

Post by fmw42 »

Sorry, I still cannot figure out what they might be doing. If you ever find out, please report back here.
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: Creating half-color anaglyph?

Post by olegk »

I'll try to contact the developer. Anyway, thanks for trying to help me.
Regards,
Oleg.
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: Creating half-color anaglyph?

Post by olegk »

The developer of Imagen3D shared his secret (see http://www.dpreview.com/forums/post/53733906):
...
When I load an anaglyph image, in the adjust mode, the program gets two images (left and right) equal to the original image. Therefore, when I use the Channel Mixer function, then program applies the selected multiplication factors for both images. For example, in the below image, the red chanel of the left image = (29% Red Channel + 58% Green Channel + 11% Blue Channel) of the left image.
...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating half-color anaglyph?

Post by fmw42 »

It would appear that all he is doing is replacing (via channel mixing) the red channel (only) of the color anaglyph with specified mix of the red, green and blue channels of the input anaglyph to create the half color anaglyph. No changes to the green or blue. The the following seems to work to reproduce your example half color anaglyph if I save as jpg. If I save as png the colors are slightly different.

Code: Select all

convert DSC03983_48-52_s050g092.JPG -separate +channel \
\( -clone 0 -clone 1 -clone 2 -poly "0.29,1 0.58,1 0.11,1" \) \
-swap 0,3 +delete -combine -colorspace sRGB DSC03983_48-52_s050g092_newhalf.JPG
http://www.fmwconcepts.com/misc_tests/a ... ewhalf.JPG
olegk
Posts: 37
Joined: 2013-08-16T11:31:10-07:00
Authentication code: 6789

Re: Creating half-color anaglyph?

Post by olegk »

I tried it with TIF-s; the colors seem to match those from JPEG-s.
So, thanks a lot!
Oleg.
Post Reply