lynx_abraxas wrote:-spice is much better here of corse and using it on both images now results in one output image.
Experimenting a little with the paranthese (as discribed in basic usage) I'm wondering now why this command doesn't yield what I'd expect/want:
Code: Select all
convert \( az239b_a_075_0.0.tif -splice 10x0 \) \( az239b_a_085_10.0.tif -gravity east -splice 10x0 \) -channel RC -combine az239b_075_085_0-10.anaglyph.5.png
There is no red in the resulting image at all.
My images are from a microscope tilt series and are therefor taken at different angles one after another. With these I haven't noticed any edge effect.
I am not sure why you are using RC for red and cyan? But you are trying to combine 4 channels, 2 from each image. You need to get the red from the left image and the blue and green from the right image.
Try any one of these:
convert left.jpg -channel r -separate -splice 10x0 \
\( +channel right.jpg -gravity east -splice 10x0 -separate -delete -3 \) \
+channel -combine anaglyph.jpg
convert \( left.jpg -splice 10x0 -channel r -separate \) \
\( +channel right.jpg -gravity east -splice 10x0 -separate -delete -3 \) \
+channel -combine anaglyph2.jpg
convert \( left.jpg -splice 10x0 -channel r -separate \) \
\( +channel right.jpg -gravity east -splice 10x0 -channel gb -separate \) \
+channel -combine anaglyph3.jpg
The first two above separate the red from the left and delete the red from the right and combine the remaining 3 channels. The third separates the red from the left and separates the blue and green from the right and combines the remaining 3 channels. (The first one splices 10 pixels on the left of the red channel only. The second splices to all channels of the left and then separates the spliced red channel).