image-processing

How to pass a number of java.awt.image.BufferedImage's to Matlab

Hi, I'm writing a Java application for real-time image processing. I'd like to be able to validate the algorithms used or present data I acquire in the Java app with Matlab afterwards. In the Java app I'm using java.awt.image.BufferedImage's to process data internally. The program usually runs about 1-2 minutes and grabs data at 25Hz, 1...

Fast accessing pixel values of jpeg images.

CompVision once again, im working with jpeg images in my application. Just because i'm a bit familiar with MFC and ATL, i used CImage to access pixel values. For my needs i calculate brightness matrix for the image during initialization. Function goes like this(Image is the name of my own class, unimportant, bright is float[][]): voi...

How do I resize an image with Java?

I have a bunch of 48x48 images that I need 16x16 versions of, and instead of storing the 16x16 versions, I want to resize them on the fly. My current code looks like this (model.icon() returns the 48x48 image): Icon icon = model.icon(); Image image = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_RGB...

Converting image to byte array?

What is the need/purpose of converting an image to a byte array? Why do we need to do this? ...

Once I can save this string as image, other time I can'

Ok. Long story short. My camera has a method which takes a photo and this is what it returns: [160, 120, 3, 10, 1287848024, 96181, 'super long image string'] I am able to decode the string and save it as image right after I call the method like this: for i in range(0, 10): image = camProxy.getImageRemote(nameId) imageWidth = ima...

C# Using Emgu to crop an image by pixel color.

Hey i was wondering if anyone had any insight on how to crop an image by pixel color using the Emgu Wrapper. I have it already turn the image grayscale for processing and all the image that i don't need is black. Is there any way to crop these pixels out? Now I'm not talking about making them transparent, i physically want to make the o...

JPEG Images Turn all black when converting from a PNG with PHP

The problem: When converting any PNG image into a JPEG, the image turns all black. To start off, I've searched the internet and stackoverflow to find out how to do this. I've tried every method I could find in the PHP Manual and on Stack Overflow. The problem still exists. I'm using GD (don't have ImageMagick installed). My code is bel...

Image processing on Android - what libraries can I use?

I need it specifically for image distortion (filters, blurring, etc also welcomed ;) ). Do you know some libraries with appropriate license (Apache, MIT, LGPL also), that I can use? Propriety libraries with reasonable prices - open to them also. Can be in C also. thanks in advance, danail ...

getting bytes format in java of an image

hi, i have a requirement, i want to take URL of image from user and then convert it to bytes format, and send it my server, i am using tomcat as web-app server and hibernate as ORM tool, i am already written the server side code for saving the incoming bytes into a table using BLOB, but my problem is that how can i convert the image in...

Image processing resources on Mac with objective-c

Can anyone suggest good image processing tutorials/books to start, on Mac using objective-c? ...

Rounded Corners Optimization

Now that CSS3 includes styles to add rounded corners to images automatically, does this mean that adding rounded corners to images without CSS should be discarded? I would assume that shaving off some of the image would load the page faster then shaving off some of the CSS, but at the same time, that would all depend on how fast the bro...

I need to diff two images to see what color(s) are different. Any medium level algorithms?

If I have two images which are both the left side view of a the same shoe in different styles, how can I determine by which color(s) they differ? Perhaps it's a shoe in two styles, one style has pink laces and a white side, the other has white laces and a yellow side. I want: Image One Colors: C1=Pink, C2=White Image Two Colors: C1=W...

Compressing a run of 10 to 20 highly redundant images with which compression library?

I am going to be generating images once every minute or so from a low resolution camera. I would like to take runs of 10 to 20 images and compress them for transmission over a very bandwidth limited channel. I have looked at using x264 but it feels like over kill. Given that my images are 320x240, with high level of redundancy between ...

Can I use implementations of SIFT algorithm?

Hello, I'm interested in image recognition. From what I have found I can say that SIFT algorithm is one of the best of the available solutions. However, SIFT is protected with a US patent, so I wonder if I can use this algorithm in my code? I could found many implementation of SIFT, some of them are open source, what makes me think tha...

troubleshooting a PHP captcha script that fails to render the complete random string...

I'm using a captcha script for a form. Strangely the image will frequently fail to render the first character of the string of random characters. This pattern will last for about 8-12 refreshed pages, before the expected behavior is reestablished. I know the string contains the full set of four characters because I've debugged this wit...

Image Upload preview not working Chrome

This is code only Compatibility IE, FF but not working chrome and safari. please suggest me a way for that. <h3>Choose an image:</h3> <input type='file' onchange="document.images[0].src=getPath(this);" /> <h3>preview</h3> <img src="#" alt="your image" /> <script type='text/javascript'> function getPath...

C++: Resize an image

Hi guys, I have an image which is representative of an Array2D: template<class T = uint8_t> Array2D<T> mPixData[4]; ///< 3 component channels + alpha channel. The comment is in the library. I have no clues about the explanation. Could anybody please help me to? Explain what are the 3 component channels + alpha channel are about? ...

mirror image+iphone

Hi all, I want a functionality in my iPhone application which will convert the image to its mirror like way. Like if there is an image of man with his left hand up Then the converted image must have the same man with his right hand up. Any code or link will be really appreciated Thanks in advance for any help. ...

Image manipulation while on touch event is inefficient !

I have two images overlayed and i copy pixels from bottom image to top image while ACTION_MOVE. My goal is to give erasing feeling to the user but sometimes it doesn't copy(erase) some parts and it gets worse if touch event is fast( dragging finger fastly). This is the code i am using for copying pixels mutable.getPixels(pixels, 0, wi...

Problem using ImageIO.read

Ok I have an Image that I'm trying to read. Problem is that the Image.read(file) returns NULL. File file = new File("C:\\images\\image1.jpg"); if(file.exists()){ System.out.println("Image file exists."); BufferedImage originalImage = ImageIO.read(file); } So image exists but ImageIO.read(file) returns NULL. No thrown errors ...