image-processing

Facebook-like resizing of images using ImageMagick

Hi. I would like to resize (downscale) some images the way that Facebook does it. ImageMagick, but hey, I'm open for suggestions :) I believe Facebook is doing this: Say you have a max width x height of 250x200, Facebook is optimizing the use of this. Tries to use as much of the 250x200 as possible. If for instance you scale down an i...

Javascript take screenshot of flash object

Hi all, basically what i want to do is this: I have a flash game on a page (pacman for example) I want to be able to take a print screen of that game using javascript Is it possible? I know i can include the game swf in a nother swf and capture the screenshot using flash but i need it to be done in javascript. is this possible? ...

Scaling an Image Based on Detail

I'm curious about whether there are approaches or algorithms one might use to downscale an image based on the amount of detail or entropy in the image such that the new size is determined to be a resolution at which most of the detail of the original image would be preserved. For example, if one takes an out-of-focus or shaky image with...

Captcha based on image rotation implemented somewhere?

Having read google's paper from 09 [1] about captchas based on image rotation I wonder if they are implemented somewhere. Did anybody see an actual system which uses them? (I haven't created a google account in a while, but I think they still use "normal" captchas) http://research.google.com/pubs/archive/35157.pdf ...

Images on websites

I need some advice on the pro and cons of certain image strategies. When creating websites which are very picture heavy I it important that all the images are the best possible quality with as little impact on performance. Lets take for example a page that mimics a review of a product. You may have a normal sized product shot and multipl...

Verify image sequence

Problem Problem shaping Image sequence position and size are fixed and known beforehand (it's not scaled). It will be quite short, maximum of 20 frames and in a closed loop. I want to verify (event driven by button click), that I have seen it before. Lets say I have some image sequence, like: If seen, I want to see the ID associat...

Matching two images

How can we match two images using Java. I want to make a face recognition application, that will store face of people at some location and then later will check whether a person is a member or not. If the persons face will match a pic already in database, then the person will be authenticated else not. Is there a way to do so. ...

Laplacian and Gaussian Filter

I am trying to do some image processing and I would like to apply the LoG kernel. I know the formula, which is : But I didn't understand how to obtain the kernel matrix with this formula. From what I have read, I have a matrix of n x n and I apply this formula to every cell in that matrix, but what should be the starting values within...

Multi camera calibration with CCV(tBeta)

Hi, For my project i want to calibrate two cameras with CCV. in CCV, as i have seen, the camera is placed under a surface and blobs are detected from the surface. but in my project i want to detect blobs from over the surface one camera is placed on top of the surface(wall) facing the floor so it can detect the X coordinate other camera ...

Insert text or Edit Image in iPhone

I am stuck with this problem and not getting any idea about this.? I do have some images in the application, and I want to insert some text in to that images which I take as input from the user? I don't have any idea how to accomplish this task? Is it possible or not. Basic Idea is : I do have images in to the application resources. I...

Load local image into browser using JavaScript?

Hi all, I'm currently developing a solution for a web-to-print, poster printing application. One of features I'd like to include is the ability to 'edit' (crop/scale/rotate) a given image, before proceeding to order a poster of said image. To avoid the requirement of the user uploading the image to a remote server before editing, I'd ...

Sizing image to text in the image with C# System.Drawing / Drawstring

I want to take a string, and a specified font, and create a graphic image that contains that text in box, where the box resizes to the text. I got the code below working, but it sizes the box before doing anything else. Is there some way to resize the image to fit the text (I probably need to add a small border of a few pixels). A...

Export Image with pixelformat 16bpp4444

Hi, I'm trying to let the user import an image in my windows application, in any pixelformat, but i need to save the image in 16bpp4444 format, and that is not an option for pixelformat in .Net imaging class. Any ideas on how to do this? Thanks! ...

how to change the color of an image but can still recognize the object?

The title maybe a little vague, let me give you an example: if we change a colorful image into black and white, we still can recognize the objects in it. My question is, can I change the color to RED or GREEN or other color rather than black and white in programs(I prefer Java). [Update] : what I want to do is just like this question: ...

Captured image convetred into heat, night, b&w Modes. How to save the converted image save in portrait mode in iphone?

Hi, I am begining to iphone. i am working on camera modes. like heat, night, black and white. after capturing the image it will convertd into selected mode, like heat,b&w,night, but the problem is after converting the image it shows in landscape mode. Help me ...

image processing in php and get PDFof processed image.

Hi All I am working on one script in which I have to create one image based on given text. Basically I have to place those texts on various places of the generating images. Up to this my work done. Below is the code for that. header ("Content-type: image/jpeg"); $handle = imagecreate(415, 588) or die ("Cannot Create image"); $inve...

Gradient direction computation

Hello everyone. I'm working on my task in computer vision course. One of sub-tasks is gradient direction computation based on image brightness. I've made a matrix bright[width][height] containing brightness values for every pixel of the image. And i have two such functions: double Image::grad_x(int x,int y){ if(x==width-1 || x==0) ...

Algorithm for a smudge tool?

I'm trying to implement a smudge tool like one you would find in Gimp or Photoshop. I've tried lots of variations but they all have problems. The basic method I've tried for smudging from position P1 to P2 on an image is: Copy a rectangle the size of the current brush from P1. Draw this rectangle at P2 with a low opacity. It looks fi...

Anyone could exlain width/height returned from iphone camera taken image on iPhone 4?

I am using - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo to take the image. Then use CGImageRef imgRef = image.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGFloat height = CGImageGetHeight(imgRef); For some reas...

Stitching Several Images Together Using Javascript

Hi! I'm currently coding a game that makes use of Google Maps' Static API - http://code.google.com/apis/maps/documentation/staticmaps/ However, a limitation of the API means that I can only get a maximum of 640x640 images from it and I need much larger images for my game. As such I'm just wondering if it's possible to stitch multiple s...