image-manipulation

Bend a vector image (text) with script language

We want to show a dynamic text (ttf font, or similar) in a generated vector image (svg, pdf) and it should be bended similar like the names on a football shirt. Is there any command line tool or other possibility to do that? It is important that it is a vector graphic since the output will be printed on cloths! Thanks a million. ...

Algorithm for "filling in" texture in a 2D image

I recall seeing a paper a while back for an algorithm that could automatically and seamlessly "graft" texture from parts of an image onto another part of an image. The approach was something along the lines of the following: You'd build up a databases of small squares of pixels (perhaps 8X8) from the parts of the picture that are prese...

what 2 & 3 mean in this and how can i change them CvMat* rot = cvCreateMat(2,3,CV_32FC1)

What do 2 & 3 mean in this and how can I change them? CvMat* rot = cvCreateMat(2,3,CV_32FC1) When I change these two values I get an openCV GUI error handler. size of input arguments do not match() in function cvConvertScale.\cxconvert.cpp(1601) I want to understand what that means Update: The code is: #include <cv.h> #include <...

Is there a best way to size an NSImage to a maximum filesize?

Here's what I've got so far: NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData: [file.image TIFFRepresentation]]; // Resize image to 200x200 CGFloat maxSize = 200.0; NSSize imageSize = imageRep.size; if (imageSize.height>maxSize || imageSize.width>maxSize) { // Find the aspect ratio CGFloat aspectRatio = imag...

Thumbnails and photo size over Windows Mobile

Considering the different sizes of the screen on Windows Mobile devices, which should be the ideal size of a photo that I'm going to show on my WinForm application? And what about thumbnail? Is there any kind of algorithm to make thumbnail of the images that I'm going to show? ...

Modify photo selected by UIImagePicker before it's used in the move-and-scale screen

Hello, as you probably know, the UIImagePickerController in the UIKit Framework allows the user to take a photo which is then handed over to my App for further processing. If the property allowsEditing is set to YES, the user is allowed to move and scale the photo after taking it. What I'd like to accomplish is to modify the photo in m...

Joomla Image Renedering extension with JFactory access

Is it possible to write an extension for joomla or use some existing plugin similar to jumi to be able to render for instance a png image but with full access to user data (with JFactory)? In other words today it's not a problem to create a php script that renders a public image based on parameters passed. But if I want to access user da...

changing rgb values

hi i am trying to change a part of an image with another image i couldn't find the merging function so i just occur that can i change the rgb values of the part i want to change with the other images rgb values is it possible thanks for suggestions ...

Warp image animations on iPhone

Hi, just working up to building another app and we'd like to include the ability to animate regions of the screen in response to device shakes/touches etc. For example you could tap the screen and the device would animate a 'poke' into the image at that point (think this would be a lens type effect, like a weight on a trampoline) or you ...

How to manipulate an image at pixel level in C?

How do I read an image in C so that I can have direct control over its pixels (like we do in MATLAB)? I tried the old way: FILE *fp; fp = fopen("C:\\a.tif","r"); that just gives me the ascii form of the image file (I think). How can I get pixel level control over the image and do some basic operations like say, inverting the image? ...

Watermarking images on upload

I'm creating a website which requires the images in the site's Gallery to be watermarked. I'd prefer the watermark to get added programatically when the image gets uploaded to the application (via it's web interface) than to manually add it before we do the upload. Are there any simple ways (perhaps an image library?) that will allow me...

OpenCV Grid Area

I want to find the non-white area of an image from a camera using OpenCV. I can already find circles using images from my web cam. I want to make a grid or something so I can determine the percent of the image is not white. Any ideas? ...

Programmatically obtaining the number of colors used in an image

Question: Given an image in PNG format, what is the simplest way to programmatically obtain the number of colors used in the image? Constraints: The solution will be integreted into a shell script running under Linux, so any solution that fits in such an environment will do. Please note that the "color capacity of the image file" ...

Image format question

Hey there, I'm using an image loader (DevIL) for image loading. Im just wondering if the image format (the uncompressed format in memory) loaded from files (.jpg, .png, .bmp etc) is determined by the image loading program itself, or is some way contingent upon the actual image file. All of the images I have looked at so far seem to be...

jquery how to preload then swap images in a expander function?

Hi i am using expander.js a jquery plugin for expanding text. Now here is the thing, whenever the expand and collapse are triggered i am supposed to swap an image. now usually that is not a problem. One more piece of information is that there is a list of items which comes with expandable description and image hence the id inside ...

Is there a simple image processing library for Java similar to ImageMagick?

I am aware that Java includes very advanced image processing API's but what I'm looking for is a pure Java API (uses Java2D) that is "phrased" in terms more appropriate to common tasks of web image processing i.e. I want to write: image.scale(0.2) instead of AffineTransform t = new AffineTransform(...) t.resize(...) t.translate(...) ...

AS3 Scale Multiple Image Holder Flickering

I have 5 item spirits (each has a bitmap within it) within a container sprite each 200px x 100px, I have the container sprite scaleX and scaleY set to .3 when I use TweenLite and animate the scales to 1 I get flickering between each item sprite until the animation is finished. any ideas on how I can reduce the flickering? ...

new Bitmap OutOfMemoryException in CF 2.0SP2

Hello. I have this code: if (archivoBinario != null) { MemoryStream ms = new MemoryStream(archivoBinario); Bitmap imagen = new Bitmap(ms); PicBoxImagen.Image = imagen; } It throws a System.OutOfMemoryException when a create a new Bitmap from MemoryStream ms. Note: archivoBinario is a byte array witch its size is 9778 byt...

Retreving an image stored on SQl Server CE 3.1

Hello! I'm developing a WinForm app for Windows Mobile 6.0 with C#, .NET Compact Framework 2.0 SP2 and SqlServer CE 3.1. I have this code that is not working: using (SqlCeDataReader reader = cmd.ExecuteReader()) { if (reader.Read()) { //read the signature from the database long imgSize = reader.GetBytes(0, 0, n...

Javascript image handling library

Hello, I need to some extra functionalities to a website regarding image handling. The user must be able to pane, zoom and rotate images on a image gallery. Is there any free javascript library/framework that handles this actions? ...