image-processing

Detecting change in two consecutive pictures

As a toy project i want to write an application that will take pictures from a web cam and then detect changes in them. I want to detect if someone walked in front of the webcam. Can you guys, show me some pointers on how can i detect a major change in two consecutive shots? ...

What's the relationship between WIC and GDI+?

I'm fuzzy on the relationship between Windows Imaging Component (WIC) and GDI+. I've done some work in the past that showed that, for example, WIC produces visually superior GIF encodings, but I'm surprised I don't see more people using it for image processing vs. GDI+. I know it doesn't have GDI+'s draw operations, but for encoding/de...

What is the best java image processing library/approach?

I am using both the JAI media apis and ImageMagick? ImageMagick has some scalability issues and the JNI based JMagick isn't attractive either. JAI has poor quality results when doing resizing operations compared to ImageMagick. Does anyone know of any excellent tools either open source or commercial that are native java and deliver hig...

UIImage: Resize, then Crop

I've been bashing my face into this one for literally days now, and even though I feel constantly that I am right on the edge of revelation, I simply cannot achieve my goal. I thought, ahead of time in the conceptual phases of my design, that it would be a trivial matter to grab a image from the iPhone's camera or library, scale it down...

How to read a bitmap in OCAML?

I want to read a bitmap file (from the file system) using OCAML and store the pixels (the colors) inside an array which have th dimension of the bitmap, each pixel will take one cell in the array. I found the function *Graphics.dump_image image -> color array array* but it doesn't read from a file. ...

Approximating a shape boundary using Fourier descriptors

I am trying to approximate shape boundaries by using Fourier descriptors. I know this can be done because I've learned about it in class and read about it in several sources. To obtain the Fourier descriptors of a boundary of (x,y) coordinates, I do the following: 1) Turn (x,y) coordinates into complex numbers of the form x + iy 2) Feed...

detecting an object on the image based on geometrical form

i have a basic understanding in image processing and now studying in-depth the "digital image processing" by Gonzales, but have an urgent task and will appreciate help from somebody experienced in this area when image given and object of interest approximated form is known (e.g. circle, triangle), what is the best algorithm / method to ...

How would you read image data in from a program like Image Magick In Java?

I am working with ImageMagick and am wondering what the best way to read image data in from StdOut of the ImageMagick process. I an invoking the command to the process like so: /opt/local/bin/convert -resize 8000@ - - and then piping a byte array to the process for processing. what is the best way to read data from a process like th...

Gdiplus 64bit colors

I am creating a 64bit bitmap and wrapping it using Graphics object to draw over it. Problem is Gdiplus Color class is only 32bit(each component is byte only i.e.max 255) so how can I draw over a 64bit image using gdiplus? e.g. Bitmap bmp(100, 100, PixelFormat64bppARGB); Graphics g(&bmp); //how do I draw a red line now, if i use Color(2...

How do I reduce a bitmap to a known set of RGB colours

For a hobby project I'm going to build a program that when given an image bitmap will create a cross-stitch pattern as a PDF. I'll be using Cocoa/Objective C on a Mac. The source bitmap will typically be a 24bpp image, but of the millions of colours available, only a few exist as cross-stitch threads. Threads come in various types. DMC...

Resizing an image with alpha channel

I am writing some code to generate images - essentially I have a source image that is large and includes transparent regions. I use GDI+ to open that image and add additional objects. What I want to do next is to save this new image much smaller, so I used the Bitmap constructor that takes a source Image object and a height and width, ...

Image distortions when processing on another thread

I wrote a small application to use as a sandbox for testing ideas that will end up in a production product. The idea is simple; use a TrackBar to change the overall brightness of an image. Because this process takes a fair amount of time, I need to do it in another thread (unless you have a better way). I cannot use the ColorMatrix cl...

How to use multiple threads to process an image in sections?

I am trying to quickly process large images (about 2000x2000). I am using a TrackBar to change the overall brightness of an image. The problem is that the TrackBar (as you all know) can be moved very quickly. This is ok as I do not need to process the image for every tick of the TrackBar, but it does need to be reasonably responsive. ...

Resize and Display image from server with ASP.NET

Hey all, Got a question. I have images hosted on my server. I already know of the method when an image is uploaded to resize it and save, but I have another thought in mind. I was wondering if there is a way to resize when the image is requested from the user. Not when it was uploaded by the user. So for example a user goes to upl...

How to get an InputStream from a BufferedImage?

How can I get an InputStream from a BufferedImage object? I tried this but ImageIO.createImageInputStream() always returns NULL BufferedImage bigImage = GraphicsUtilities.createThumbnail(ImageIO.read(file), 300); ImageInputStream bigInputStream = ImageIO.createImageInputStream(bigImage); The image thumbnail is being correctly generate...

What is a seam (Seam-carving)

I am reading the paper about seam carving for resizing an image. Down on page 3 where they define a seam mathematically, I need help clarifying it. The paper says that a seam is an 8-connected path of pixels. How can it be 8-connected if the pixel cannot be on the same row? Shouldn't it be 3-connected? http://www.seamcarving.com/arik/...

How to Alter Photographed Document to Look "Scanned"

How can I do this in Python/PIL? I.e., given the four points of an offset rectangle (a photographed document), make it look flat on as if it were scanned. Is there a simple algorithm for it? Also, are there any other manipulations I should do to make it look more "scan-like"? I want to make a simple version of this program for myself ...

How to Make an Image Uniform Brightness (using Python/PIL)

I want to take an image of a document that was photographed and make it look like it was scanned. Since a scanner will put a constant light source over the whole document, I want to achieve that effect on a photo of a document. The desired effect would be to remove any shadows or areas of low light (or at least make them less noticeabl...

Can someone point me to a good Canny edge detector implementation in Java ?

There is no JAI implementation of this. ...

unsubscriptable object

Hi I'm using PIL im = Image.open(teh_file) if im: colors = im.resize( (1,1), Image.ANTIALIAS).getpixel((0,0)) # simple way to get average color red = colors[0] # and so on, some operations on color data The problem is, on a few (very few, particulary don't know why those exactly, simple jpegs) I get 'unsubscri...