image-processing

How to find Correlation of an image

There is an image A of fixed size 256*256*3 (RGB). The mathematical formula for covariance between two adjacent pixels values x,y in an image of is popularly known to be cov(x,y) =1/n summation _i =1 to N [ E(x_i-E(x))(y_i-E(y))] r_xy= cov(x,y) / ( sqrt(D(x)* D(y) )) where r_xy is the correlation coefficients between two horizontal...

Code not working for image processing in matlab

I wish to compute this formula in matlab [m,n,d]=size(img1); matrix1=sum(abs(img1-img2)); a= matrix1/ m*n ; b=a*100; where img1,img2 are two images of dimension 512*512*3 The objective is to obtain a single numeral value, but i am getting a matrix. The actaul formula in case of a matrix A,B with i rows and j columns is = (summation [...

mean absolute difference method for video stabilisation project in C++/CLI

Hello, I try to implement video stabilization project in C++/cli.First of all I have bmp image sequences,and I found motion vectors that show how much specific pixel region move between each image frame . For example I have 256*256 image, I selected 200*200 region in first image frame and secong image frame.And I found how much pixel m...

Android - How can I load an image to a ImageView?

Hello, I want to make a simple image viewing program, that just takes the images from a certain folder, and loads them from it. I did some coding with less thinking, so I did stumble upon this: Button btn = (Button) this.findViewById(R.id.buttonNext); btn.setOnClickListener(new OnClickListener() { public void onClick(View v...

Reading a CR2 (Raw Canon Image) header using Python

Hello: I'm trying to extract the date/time when a picture was taken from the CR2 (Canon format for raw pictures). I know the CR2 specification, and I know I can use Python struct module to extract pieces from a binary buffer. Briefly, the specification says that in Tag 0x0132 / 306 I can find an string of length 20 - the date and tim...

Codeigniter not maintaining aspect ratio

I would expect that $config['maintain_ratio'] = TRUE; would cause the width to be calculated if I only specify a height. I guess I have to provide any large number for the height to make it work? $config['image_library'] = 'gd2'; $config['source_image'] = $image_filepath; $config['new_image'] = $thumbnail_fil...

Image process & recognition implementation on Linux. How to?

Hi guys. Usually I develop image process or recognition program on windows. But I got a custom who requires me to implement one on Linux platform. Because his platform is embedded system, I can not know for sure that OpenCV would be available. Could anyone give me some clue to get started? ...

Similar image search software (like TinEye)

Hi guys, In one of our community sites, we allow users to upload images. These images are approved or rejected by our moderators. To limit the work needed by our administrators, we want to 'log' each picture that is rejected to some kind of database, and do a lookup in this database prior to submitting an image for approval. If a simi...

Logical error in matlab(Edit)

EDIT:- a4 = 10*magic(4); a5 = magic(5); a4 a5 diag4 = sub2ind([4,4], 1:3,1:3); diag5 = sub2ind([5,5], 1:3,1:3); a5(diag5) = a4(diag4) #Display changed contents diag4 %# Display diagonal of magic4 diag5 %# Display diagonal of magic5 a4(diag4)=a5(diag5) %# recovering the original The output is a4 = ...

Aren't these functions the same?

I'm sure this is simple, but I'm not able to figure out why this is not working. If I use the first imagegif function, it works perfectly. However, when I comment that one out and try to use the second one, it fails. No error, it just does not write the image file. imagegif($img, "../wp-content/themes/mytheme/styles/test/sidebar.gi...

Quickest way to extract the bits of the colors in a .pgm image?

I've got a hundred 128 x 128 .pgm files with some shapes on them and I think their color scale is 255 (not sure on this one though, so it'd be nice if a solution could also take that in consideration) and I need to extract these colors to process the images. So what I'd like to end up with would be a 128 x 128 matrix with each element ha...

Use images form camera without taking a photo

Hi, Is it possible to analyze the images without taking a foto on the iPhone ? I want to analyze some matrix codes, without taking any foto. I saw this on some Nokia models and it's quite impressive: really fast! On the iPhone, I've seen analyzing codes after taking a snapshot (or photo), and it's slower. Also the iPhone camera is no...

How to determine if an image (java.awt.Image) is B&W, with no color

I'm trying to determine if an image is a simple black and white image, or if it has color (using Java). If it has color, I need to display a warning message to the user that the color will be lost. ...

fast threshold and bit packing algorithm ( possible improvements ? )

Hello, I am working on an algorithm that performs a global thresholding of an 8-bit grayscale image into a 1-bit ( bit packed, such that 1 byte contains 8 pixels ) monochrome image. Each pixel in the Grayscale image can have a luminance value of 0 - 255. My environment is Win32 in Microsoft Visual Studio C++. I am interested in optim...

Simple way to backup images from Dailybooth.com

I have taken over 250 photos with the site dailybooth over the course of 250 days. Worst case scenario the site closes down and I loose all of my photos. I want a way to back them up, any firefox plugin or simple script I can write up to download the image files in some sort of order? Ideally I'd love to have the dates and times the phot...

Crop non symmetric area of an image with Python/PIL

Is there a way to cut out non rectangular areas of an image with Python PIL? e.g. in this picture I want to exclude all black areas as well as towers, rooftops and poles. http://img153.imageshack.us/img153/5330/skybig.jpg I guess the ImagePath Module can do that, but furthermore, how can I read data of e.g. a svg file and convert it in...

facebook image manipulation

I'm looking to save some time in making a facebook app that adds a watermark to profile pictures of users, given the authority. Has anyone done something like this in using php? ...

How to draw an interactive image in PHP ?

Hi, I know how to draw rectangles in PHP (with GD), but how do we make them interactive ? I mean, is there a way to be notified when and where the user clicks ? Eventually, I would like to enable the user to select a rectangle among a set by clicking on it, and clicking anywhere else to move it. Thanks aforehand. Regards, Mister My...

WPF - 'Stride' Woes from a TransformedBitmap Object.

I have a 2208 x 3000 TransformedBitmap object with format {Indexed8} that I'm do .CopyPixels() on. I'm using (int)((formattedBitmap.PixelWidth * formattedBitmap.Format.BitsPerPixel + 7) / 8) (assuming 'formattedBitmap' is the name of the image from which I'm trying to copy the pixels) for the 'stride' value in my method call and an ...

Image Processing in C#

What is the right start in image processing using C# I need to know the tools and algorithms to start understanding Thanks ...