jai

JAI on RedHat 5.2

Does anyone know if there's a version of JAI that is compatible with RH 5.2? We tried to have some new code deployed to our prod server last night, but the deployment team ran into a snag. The new code uses the Java Image I/O Tools library (javax.imageio.ImageIO). This is the first time we've used any JAI functionality, so the deploymen...

JAI ImageIO-core codecLib source

JAI ImageIO-core comes with a set of native codecs. The codecs come bundled in a set of .so and .dll files. Mainly clib_jiio.dll clib_jiio_sse2.dll clib_jiio_util.dll. I was able to find the source to mediaLib (mlib) but not the source for these codecs. Anyone know where the source resides? or if they are simply not open source? ...

JAI FileLoad/FileStore Operations vs JAI ImageRead/ImageWrite Operations. Differences?

What are the differences between JAI's FileLoad/FileStore operations and its ImageRead/ImageWrite operations? Is one set better than the other in any way? Which ones should be used as a default? ...

Sanselan vs Java-Image-io

Which better of these two libraries Sanselan or Java Advanced Imaging API? ...

Fast 24-bit RGB to Grayscale conversion with JMF, Java

I'm developing a simple (or at least thought so) desktop application in Java for real-time image processing. I've chosen to access video frames using the Java Media Framework (JMF). I have a PAL camera and use EasyCAP video converter for digitizing. The device is visible on my Windows machine as a VFW device, allowing for YUV and 24-Bit ...

Convert a bitmap image to an uncompressed tif image in Java

Hello I'm trying to convert a bitmap image into an uncompressed tif file for use with the Tesseract OCR engine. I can use this method to produce a compressed tif file... final BufferedImage bmp = ImageIO.read(new File("input.bmp")); ImageIO.write(bmp, "jpg", new File("output.tif")); This produces an empty tif file when the "jpg" i...

Converting a Jpeg into an uncompressed tiff image

Hello I found this code on StackOverflow import java.io.File; import java.io.FileOutputStream; import java.awt.image.RenderedImage; import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder; import javax.media.jai.NullOpImage; import javax.media.jai.OpImage; import com.sun.media.jai.codec.SeekableStre...

How to compare two .PGM images in Java?

Hi, i need to compare 2 .pgm images in java. I use this to display the image: PlanarImage pgmImage = JAI.create("fileload", "test.pgm"); ImageIcon icon = new ImageIcon(pgmImage.getAsBufferedImage()); The comparing type is: Image A, px 1 = 220; Image A, px2 =....; Image A pxN=...; Image B, px 1 = 180; Image B, px2=....; Image A pxN...

java.awt.image.BufferedImage 24-bit RGB to 8-bit Grayscale conversion using custom ColorSpace

I want to do a simple color to grayscale conversion using java.awt.image.BufferedImage. I'm a beginner in the field of image processing, so please forgive if I confused something. My input image is an RGB 24-bit image (no alpha), I'd like to obtain a 8-bit grayscale BufferedImage on the output, which means I have a class like this (deta...

Image bit depth conversions

Hi, How to convert color depth of an image from 24 bit to 16 bit in JAI. Could anybody post sample code? We tried many ways like PNGEncoderParam.RGB setBitDepth(). but not working.. Is this the right way to do? Please help.. ...