image-processing

Library for writing XMP to a multipage TIFF

Hi guys, Can you recommend a library that lets me add XMP data to a TIFF file? Preferably a library that can be used with Java Cheers Nik ...

Octave Errors in attempting to study Image Compression

Hey Folks, Let me start by saying I LOVE YOU. Thank you. Next order of business: octave-3.2.3:8> xin = imread('3Phone.png'); octave-3.2.3:9> colormap(gray(256)); octave-3.2.3:10> image(xin); error: invalid value for array property "cdata" error: set: expecting argument 2 to be a property name error: set: expecting argument 4 to be a p...

Color Detection using YCrCb color space?

This code I have found attempt to track red color in RGB color space, // red color detection, turn the detected one into white if (((red > (0.85 * (green + blue))) && (red > 105)) && ((red - green > 73)) && (((green < 150) || ((green >= 150) && (blue > 140))))) { // set the pixel to white red = 255; gree...

How can I programatically convert SVG files containing text to PDF files (specifically on CentOS 5.3 x86_64)?

I would like to programatically convert SVG files to PDF files. However, the SVG files contain text that must be searchable in the generated PDF files. Also, it has to work on Red Hat Enterprise Linux 5.3 or CentOS 5.3 for the x86_64 architecture. It would be nice if it were Open Source or at least not very expensive. Here is what I've ...

what is the idea behind scaling an image using lanczos?

Hi, I'm interested in image scaling algorithms and have implemented the bilinear and bicubic methods. However, I have heard of the lanczos and other more sophisticated methods for even higher quality image scaling and I am very curious how they work. Could someone here explain the basic idea behind scaling an image using lanczos (both...

How can I find local maxima in an image in MATLAB?

I have an image in MATLAB: y = rgb2gray(imread('some_image_file.jpg')); and I want to do some processing on it: pic = some_processing(y); and find the local maxima of the output. That is, all the points in y that are greater than all of their neighbors. I can't seem to find a MATLAB function to do that nicely. The best I can come ...

Eigenvector computation using OpenCV

Hi I have this matrix A, representing similarities of pixel intensities of an image. For example: Consider a 10 x 10 image. Matrix A in this case would be of dimension 100 x 100, and element A(i,j) would have a value in the range 0 to 1, representing the similarity of pixel i to j in terms of intensity. I am using OpenCV for image proc...

how can I make a rectangle on a cluster of tiny edges after opencv's canny detection?

I am new on OpenCV and DIP, currently I need find a rectangle region from a low-quality picture which has only rectangle areas beyond the background. I used canny detector to get out many many tiny edges, which composes several rectangle regions, and some other separate noise-alike edges. So, experts, how can I process on this middle-...

Extracting IPTC/EXIF data from tif files in using Java

The system I'm working on has a feature to extract metadata from JPEG files using the com.drew.metadata package. http://www.drewnoakes.com/code/exif/javadoc/ However that is limited to JPEG files, and now a customer has asked about extracting IPTC from TIF, and possibly other image formats. Does anyone know about similar APIs to Drew No...

Is this image segmentation?

I've been writing a Java program that aides in cutting and working with sprites, such as CSS sprites. The main idea is that the image is segmented into subregions, so the software understands the "spritesheet" is composed of multiple sprites. The algorithm I developed works by scanning horizontal (x) and vertical (y) axes for breaks, ba...

Speed up Matrix Addition in C#

Hi, I'd like to optimize this piece of code : public void PopulatePixelValueMatrices(GenericImage image,int Width, int Height) { for (int x = 0; x < Width; x++) { for (int y = 0; y < Height; y++) { Byte pixelValue = image.GetPixel(x, y).B; this.sumOfPix...

Best threshold for converting grayscale to black and white

What's the best way to automatically figure out the best threshold for converting a grayscale image to black and white? I can figure out pretty good threshold values by hand, but I would like to automate choosing the threshold value. Edit: I've been reading a bit about this problem, and by looking at the histogram for the image can hel...

Image orientation and validation with Paperclip?

Hi, I'm looking for a way to determine image orientation preferably with Paperclip, but is it even possible or do I need to user RMagick or another image library for this? Case scenario: When a user uploads an image i want to check the orientation/size/dimensions to determine if the image is in portrait/landscape or square and save this...

How can I create bitmaps (in C)?

I am wondering how I can both import and export bitmaps to and from C. I'm basically lost on where to begin. ...

Detecting grayscale images with .Net

I am scanning documents to JPG images. The scanner must scan all pages as color or all pages as black and white. Since many of my pages are color, I must scan all pages as color. After the scanning is complete, I would like to examine the images with .Net and try to detect what images are black and white so that I can convert those im...

Splitting a multipage TIFF image - With .NET and IronPython

I had a scanned multipage TIFF image and needed to split each page out into individual files. This is easy to do in by leveraging the .NET framework and C#, but since I did not have all the development tools installed on the machine I was using, I instead opted to use IronPython (via ipy.exe) to quickly script the processing logic. Usi...

Is There a Algorithm or Library that can Detect Motion Blur in Images?

Anyone know of an algorithm that can return fuzzy true/false to if a image has motion blur / camera shake in a image? Ideally it would be particular to motion blur, as lots of the images in the set might have blurred (Bokeh) backgrounds. A language preference would be C, Perl, Shell Utility, or Python, but I'm open to anything really....

How to Apply Aritstic effect to images and methods used to achieve it ?

I am a newbie and i would like to give artistic effects to the images such as photocopy , blur ,glow edge, mosaic bubble ,pencil sketch ,marker , glass effect,paint brush,glow diffused effect programatically? I want to implement it and any input is appreciated. The following link depicts what i want to do exactly... http://picasaweb.go...

How does the icewing tracking plugin work?

I'm trying to develop a tracking software with icewing. Icewing has its own tracking plugin that somehow sends tracking information after initialized. How is this plugin working? How can i initialize it and how do I get the data? ...

Image Comparison in VB.Net

Hey folks, After reading many related posts on this site on the subject of image comparison I'm thinking I'll try implementing a PCA on each image in order to see if an image is 'similar' or not, but I'm not sure how to get the data from my images - is there a VB function that I can use to convert the image into an array of bytes or som...