image-processing

help regarding image editing help

Hi, I have a requirement where I need to erase a particular area of an image, but the constraint is that i shouldn't see white color in the area where I applied my eraser tool. The area where I used my eraser tool shouldn't look different from the rest of the image's background color. For eg: http://www.hdwallpapers.net/gallery/thumbn...

Output dynamic image into the source of a asp.net control

I found out how to generate an image in code-behind based on some input from a webform, great. now i want to put that image back onto the form after the postback. All the samples i found use the Response to send the image back out to the browser with a stream. Is there anyway to specify that the image generated in the code behind, be t...

How to scale an image without occasionally inverting it (with the Python Imaging Library)

When resizing images along the lines shown in this question occasionally the resulting image is inverted. About 1% of the images I resize are inverted, the rest is fine. So far I was unable to find out what is different about these images. See resized example and original image for examples. Any suggestions on how to track down that pr...

How do I enlarge a picture so that it is 300 DPI?

The accepted answer to the question C++ Library for image recognition: images containing words to string recommended that you: Upsize/Downsize your input image to 300 DPI. How would I do this... I was under the impression that DPI was for monitors, not image formats. ...

numpy, PIL adding an image

I'm trying to add two images together using numpy and PIL. The way I would do this in matlab would be something like: >> M1 = imread('_1.jpg'); >> M2 = imread('_2.jpg'); >> resM = M1 + M2; >> imwrite(resM, 'res.jpg'); I get something like this: Using a compositing program and adding the images the matlab result seems to be right. ...

Any way to make this relatively simple (nested for memory copy) C++ code more effecient?

I realize this is kind of a goofy question, for lack of a better term. I'm just kind of looking for any outside idea on increasing the efficiency of this code, as it's bogging down the system very badly (it has to perform this function a lot) and I'm running low on ideas. What it's doing it loading two image containers (imgRGB for a fu...

How to find blank field on scanned document image

I want my application to fill in a single field in a form that exists as an black-and-white image file. The form always starts as the same paper version, but by the time my application gets it from my users, it may have been scanned or faxed more than once. Because of that, the field I need is not in the same place in every file. My u...

Displaying images using PHP not working

I'm trying to display an image using a PHP script. Basically so the php script is passed on the full path to the image, and it then displays that image in the browser. I've checked to make sure the image exists, it is being read correctly, etc, however in the browser i just see the broken image box (e.g the small red cross in IE) if I go...

Fast Java library for circle recognition

Hi! I'm looking for a Java library for circle recognition in a supplied bitmap. My Java knowledge is too basic to implement eg. Hough transform efficiently (Java newbie). Thanks! ...

How to detect subjective image quality

For a image-upload tool I want to detect the (subjective) quality of an image automatically, resulting in a rating of the quality. I have the following idea to realize this heuristically: Obviously incorporate the resolution into the rating. Compress it to JPG (75%), decompress it and compare jpg-size vs. decompressed size to gain a r...

How do you convert a color image to black/white using Javascript?

How do you convert a color image to black/white using only Javascript? AND, also make it cross compatible in most browsers because I hear Internet Explorer has a "filter" mechanism but no other browsers support it. ...

Fatal error: Call to undefined function imagefilter()

Hey All, What is causing this error? Fatal error: Call to undefined function imagefilter() in /var/www/polaroid.php on line 5 1 <?PHP 2 $img_addr = $_GET['image_address']; 3 $img = imagecreatefromjpeg($img_addr); 4 /* everything works as expected without this line */ 5 imagefilter($img, IMG_FILTER_GRAYSCALE); ...

How to read CGBitmapContextData? (on iPhone)

I'm working on obtaining bitmap data like ARGB from an image. a). I create a bitmapcontext for the image: context = CGBitmapContextCreate(void * data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorspace, CGBitmapInfo bitmapInfo) b). I draw the image to the context: CGContextDrawImage...

Java Applet - Image Export Performance Issues

I have a Java Applet that I'm making some edits to and am running into performance issues. More specifically, the applet generates an image which I need to export to the client's machine. This is really at the proof-of-concept stage so bear with me. For right now, the image is exported to the clients machine at a pre-defined location (T...

How to convert a 32bpp image to an indexed format?

So here are the details (I am using C# BTW): I receive a 32bpp image (JPEG compressed) from a server. At some point, I would like to use the Palette property of a bitmap to color over-saturated pixels (brightness > 240) red. To do so, I need to get the image into an indexed format. I have tried converting the image to a GIF, but I ...

Why do my images seem to be in the format of Bgra instead of Argb?

So, I am very confused over a quick test that I just ran. I am doing some image processing in C#. Get/SetPixel() have proven to be too slow, so I am using LockBits to get at the raw data. However, I seem to have hit a situation which I can't figure out. While scanning the image, it seems that each pixel is laid out as Bgra, that is...

Implementing ridge detection

I'm trying to write a ridge detection algorithm, and all of the sources I've found seem to conflate edge detection with ridge detection. Right now, I've implemented the Canny edge detection algorithm, but it's not what I want: for example, given a single line in the image, it will effectively translate it to a double line of edges (since...

How do I find images with a similar color using Python and PIL?

I have a lot of images in a folder, and I would like to find images with a similar color to a pre chosen image. I would like to be able to do something like: python find_similar.py sample.jpg and have that return something like: 234324.jpg 55.jpg 9945.jpg 345434.jpg 104.jpg Is this doable? ...

Image fingerprint to compare similarity of many images

I need to create fingerprints of many images (about 100.000 existing, 1000 new per day, RGB, JPEG, max size 800x800) to compare every image to every other image very fast. I can't use binary compare methods because also images which are nearly similar should be recognized. Best would be an existing library, but also some hints to existi...

Digital Image cropping in Python

Got this question from a professor, a physicist. I am a beginner in Python programming. I am not a computer professional I am a physicist. I was trying to write a code in python for my own research which involves a little image processing. All I need to do is to display an image and then select a region of interest using my mouse and f...