Questions tagged [jai]

The Java Advanced Imaging provides powerful collection of methods for image processing and image analysis for Java.

The Java Advanced Imaging API (JAI) provides a set of object-oriented interfaces that supports a simple, high-level programming model which allows images to be manipulated easily in Java applications and applets. JAI goes beyond the functionality of traditional imaging APIs to provide a high-performance, platform- independent, extensible image processing framework.

See Also - Java Advanced Imaging

310 questions
3
votes
2 answers

Problems importing JAI in Eclipse

I'm trying to use the following import in Eclipse running on Mac OS X 10.6: import javax.media.jai.JAI; Unfortunately, this doesn't work, instead I get the following message: "Access restriction: The type JAI is not accessible due to restriction on…
Ed Taylor
  • 277
  • 1
  • 6
  • 13
3
votes
2 answers

JAI Add Alpha Channel to RenderedImage

I have two RenderedImages. I want to do an Overlay Operation with these two images and therefore they need to match in data type and the number of bands. The problem I have is that one image has 3 bands (RGB) and the second image has 4 bands…
adryr
  • 140
  • 2
  • 14
3
votes
1 answer

Java JAI - Error: One factory fails for the operation "Mosaic"

i'm using Java Advanced Imaging. I already have the tiles and want to put all the tiles together in one PlanarImage. The code below returns the following error message: Error: One factory fails for the operation "Mosaic" Exception in thread "main"…
Cruik
  • 190
  • 1
  • 12
3
votes
1 answer

JAI vendorname == null (standard solution doesn't work)

While using ImageIO I get this java.util.ServiceConfigurationError: javax.imageio.spi.ImageInputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi could not be instantiated caused by: java.lang.IllegalArgumentException:…
3
votes
1 answer

Fast Perspective transform in Java Advanced Imaging API

For the needs of my program I have created a facility to distort an image and place it on a map (my program is a map based program). I wrote my own mechanism for placing and distorting the image using three points that are placed on the image,…
Savvas Dalkitsis
  • 11,476
  • 16
  • 65
  • 104
3
votes
1 answer

Java JPG codec won't work

I have problem with my tomcat application, after changing the server and installing the last version of tomcat7 my application won't read/load jpg files.. I installed imageio and jai on the server, try to change java version but every time I have…
elacheche
  • 71
  • 2
  • 10
3
votes
2 answers

Determine DPI of Image in Java

I have a TIFF image that has been read in to my application and is stored in a BufferedImage object. How can I determine the horizontal and vertical DPI of the image using the Java Advanced Imaging (JAI) APIs? I have been looking around and not been…
Michael
  • 2,460
  • 3
  • 27
  • 47
3
votes
1 answer

How to add GPS metadata to TIFF in Java?

I am attempting to add GPS data to a TIFF file I am creating in Java. I am using the JAI-ImageIO libraries, although if there is a better library for doing both GPS metadata and custom metadata, I am willing to look into it. I have attempted to add…
aperkins
  • 12,914
  • 4
  • 29
  • 34
3
votes
2 answers

JAI create seems to leave file descriptors open

I have some old code that was working until recently, but seems to barf now that it runs on a new server using OpenJDK 6 rather than Java SE 6. The problem seems to revolve around JAI.create. I have jpeg files which I scale and convert to png…
MrSilverSnorkel
  • 499
  • 1
  • 5
  • 17
3
votes
1 answer

How to control the pixel size of the color model of an ErrorDiffusionDescriptor?

I am trying to convert a direct color model image to a bitonal indexed image (1 bit per pixel) and save the indexed image as a BMP. As stated on the Java Advanced Imaging API Home Page: The bit depth of the encoded output is determined by that of…
Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
3
votes
2 answers

Saving JPG-Image with JAI's filestore under linux

I am trying to solve a homework, in which I should implement a Pipes&Filters-Architecture for a image processing task. But I have problems with the JAI-Framework under Linux (ArchLinux, to be specific). I am loading a Image with fileload: _image =…
Daniel Rotter
  • 1,998
  • 2
  • 16
  • 33
3
votes
0 answers

How to solve error java.lang.IllegalArgumentException: Unknown image type 0?

I'm making application in java swing with netbeans platform. In my app I rotate MyImage.tiff (16 bit, tiff, Gray-Scale Image) it rotate image but change the type of MyImage.tiff. Before rotate image myImage.tiff type is 11, but after rotate…
Jay
  • 1,235
  • 10
  • 28
  • 49
3
votes
2 answers

Tilt BufferedImage about the x-axis

My project: I'm creating a map/terrain from an int[] and the output is a BufferedImage. Problem: I want to tilt the BufferedImage backwards (about the x-axis) 25 degrees. That is to say, I want to convert this: _____ | | | | | | …
cklab
  • 3,761
  • 20
  • 29
3
votes
0 answers

How to make Histogram Normalize and Equalize in java using JAI library?

I m making App in java using Swing component and JAI library. I make histogram of black and white or gray scale image.Is this method of making histogram correct? iif it is correct then how can i do normalization and Equalization of histogram in my…
Jay
  • 1,235
  • 10
  • 28
  • 49
2
votes
0 answers

Serializing BufferedImage by Java Advanced Imaging API JAI

I have a BufferedImage object in my hands and I want to serialize this object faster than java imageio by using JAI. However, I could not find any example. Also, I have read the documentation and I have lost in it. After serialization, I want to…
Onur Demir
  • 708
  • 2
  • 13
  • 35