I have created the morphing animation using image magick. i am using this reference page Imagemagick transitions between multiple images -- need idea
I have used this code to do the above
convert -delay 20 *.jpg -morph 14 g2b.gif
And now i am getting perfect animation for one way. means it is animated from start point to end point. but i want the reverse way also.
There are 2 images and i want to create a morphing animation from both side.
I have got one way animation from the two images.
convert -delay 20 *.jpg -morph 14 g2b.gif
I want the animation from both side. From the start point and the from the end to start point in the reverse order.
I got this image by using the above command.
I want to reverse animation also. Please help me in this.
I would try:
convert -delay 20 whitecar redcar whitecar -morph 14 g2b.gif
Related
The above pic (looks like zoomed one ) is from first level conversion from 1.Ai file 1_cropped.AI file what I get after cropping. I don't do resize during cropping it gets automatically resized.
I am trying crop an image, Seems without +repage imagemagick unable to crop. The problem is a simple crop created the jagged lines as you can see from the snapshot taken from a portion of image.
How to remove this. Some where in SOF post I found a recommendation to use "Gaussian blur" but didn't find a proper command to do the same. Many thanks! I am doing just the crop and no resizing.
Original : Due to copyright can't show the entire image. But below is one section:
Looking into : http://www.imagemagick.org/Usage/antialiasing/ now but unable to smoothe the 'stair case' or 'jaggies' so far.
UPDATE from the comments:
Yes the input is AI and output is almost all format AI/SVG/PNG/GIF/JPEG/BMP. So for smaller resolution files such as png/GIF I don't get that jagged shapes I I tried turning on anti-aliasing , blurring and guassian-bluring but no luck. I think the repaging zooms the image which I don't need, is it possible to set the canvas somehow so the original resolution is kept intact when converting from AI to AI? Yes initially I convert AI to AI after cropping and than feed the converted AI for further processing. The stair-stepping appears from first level AI to AI file conversion itself.
I'm looking for the most efficient way to offset the content of an image as if it was a torus surface. In other words, I want the parts that move outside the canvas to come back on the other side (e.g. left to right and up to down).
Is there a dedicated argument for that?
As Mark Setchell has pointed out, -roll +X+Y is the correct method in ImageMagick. In the following, I roll the image to the right by half of its width.
Input:
convert mandril3.jpg -roll +128+0 mandril3_roll.jpg
Result:
I've just started using spritesheets in corona so this might be a basic question but I can't find any info regarding it.
Anyway, is it possible to scale the images inside the spritesheet? For example, frame 1 image 1 would be 100x25, frame 2 image 2 would be set to 100x50, frame 3 image 3 150x50.
You can try sprite.newSpriteMultiSet() function
Here is the link:
http://docs.coronalabs.com/api/library/sprite/newSpriteMultiSet.html
I have this two images :
(source: free.fr)
(source: free.fr)
How can I use imagemagick to remove the background (second picture) from the first one ?
Cheers,
Rémy
Here I made you a final but simple example :
Transparent Overlay http://noosphere.ionyse.com/transparent_example/transparent_difference.png
Background http://noosphere.ionyse.com/transparent_example/background.png
Example 1 http://noosphere.ionyse.com/transparent_example/background-example.png
Example 2 http://noosphere.ionyse.com/transparent_example/background-example2.png
Here you see that anywhere I put the transparent overlay on the background I get the perfect match using the opacity of the overlay PNG.
I would like to be able to calculate this overlay image. Do you think it is possible using ImageMagick ?
This is explained over here How to save the DIFFERENCES between two images ?.
Another useful link: http://www.imagemagick.org/Usage/compare/#difference
I have two images that I want to display on top of each other. one image a single channel image and the second image is a RGB image but with most of the area being transparent.
How these two images are generated in different functions. I know to just display these on top of each other, i can use the same window name when calling cvShowImage() but this doesn't work when they are drawn from different functions. When trying this, I used cvCvtcolor() to convert he binary image from single channel to RGB and then displaying the second image from another function. But this didn't work. Both images are same dimension, depth and number of channels (after conversion).
I want to avoid passing in one image into the second function and then draw them. So I'm looking for a quick dirty trick to display these two images overlapped.
Thank you
EDIT:
I don't think that's possible. You'll have to create a new image or modify an existing one. Here's an article that shows how to do this: Transparent image overlays in OpenCV
There is no way to "overlay" images. cvShowImage() displays a single image from memory. You'll need to blend/combine them together. There are several ways to do this.
You can copy one into 1 or 2 channels of the other, you can use logical operations like AND, OR or XOR, you can use arithmetic operations like Add, Multiply and MultiplyScale (these operations will saturate values larger than 255). All these can also be done with an optional mask image like your blob image.
Naturally, you may want to do this into a third buffer so as not to overwrite your originals.
Apparently now it can be done using OpenCV 2.1 version
http://opencv.willowgarage.com/documentation/cpp/highgui_qt_new_functions.html#cv-displayoverlay