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
1 answer

How do i apply a PerspectiveTransform to graphics object or image?

I'm trying to draw a square image into a trapezoid using the Java Advanced Imaging API; However after creating a PerspectiveTransform I am unsure how I would go about applying it to a graphics object or image.
Jeremy
  • 31
  • 2
3
votes
1 answer

export images to JPEG-XR with java?

Curious to try out exporting BufferedImages to JPEG-XR, but cannot find an export tool to add to a java workflow. Preferably there is a a JAI plugin out there somewhere... I googled about to no avail. Hopefully someone here can point us in the…
jedierikb
  • 12,752
  • 22
  • 95
  • 166
3
votes
2 answers

Write swing component to large TIFF image using JAI

I have a large swing component to write to TIFF. The component is too large to load the TIFF in memory, so I either need to make a big BufferedImage which is backed by a disk-based WritableRaster (as mentioned here) or use JAI. JAI seems like the…
Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
3
votes
1 answer

Convert Binary Text To Tiff Image/PDF in JAVA using JAI

I've a different requirement. I'm receiving TIFF images as a binary text. I don't know if I can call that Binary Text. The text contains non-ascii characters like shown below 0ÎÀi7°®èý¯Â£ôîÀk1 ü"»£ð‚£Ê£ðü»£ö¿ ŒGÓº?¬hÄr€kðŠî ŒG*Àkð ¸z…
Vibin Guevara
  • 778
  • 10
  • 27
3
votes
2 answers

ImageIO : cannot read image with CMYK color space

I have a problem to read a specific jpeg image (CMYK color space) which have been created with ImageMagick : inputStream = new ByteArrayInputStream(bytesImage); bufferedImage = ImageIO.read(inputStream); //IIOException : unsupported image type I…
FranckJS
  • 53
  • 1
  • 2
  • 6
3
votes
1 answer

How do I extract the latitude and longitude values from GeoTIFF image using java?

I have a satellite image on which I have to work. I have read the file so far using ImageIO and JAI. I now wish to find the latitude and longitude values corresponding to each pixel that is stored in the TIFF file. Thanks in advance.
3
votes
3 answers

Resizing a RenderedImage

I'm using a RenderedImage to display tiffs in a DisplayJAI in my app. Somebody know how to resize an instance of RenderedImage??
VictorSB
  • 128
  • 1
  • 6
3
votes
0 answers

Unable to render RenderedOp for this operation

I am trying to get rendering for an image which comes from an InputStream and is created by Java Advanced Imaging. This is the snippet: FileCacheSeekableStream fSeek = new FileCacheSeekableStream(is); sourceImage = JAI.create("stream",…
aleksandar
  • 183
  • 3
  • 11
3
votes
1 answer

JAI: How do I extract a single page input stream from a multipaged TIFF image container?

I have a component that converts PDF documents to images, one image per page. Since the component uses converters producing in-memory images, it hits the JVM heap heavily and takes some time to finish conversions. I'm trying to improve the overall…
Lyubomyr Shaydariv
  • 20,327
  • 12
  • 64
  • 105
3
votes
2 answers

How do you resolve several-levels-indirect missing dependency hell in Maven/Gradle?

We have a project which depends on Aspose Words' com.aspose:aspose-words:16.10.0:jdk16. The POM for aspose-words declares no dependencies, but this turns out to be a lie. It actually uses jai-core, latest version of which is at…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
3
votes
0 answers

How to set image resolution when using TIFFImageReader from jai-imageio

I'm reading a multiple tiff image with a resolution of 1728*2164 using the jai-imageio library 1.3.1. code is : ImageInputStream is = ImageIO.createImageInputStream(new File(path)); Iterator iterator =…
Assi
  • 43
  • 3
3
votes
1 answer

performance concerns in using Java Advanced Imaging APIs

In our project we use JAI for showing parts of an image, rotating an image and basic zooming in an applet. We now observe that the applet takes a lot of time to load - around 20 seconds for the first time. But subsequently, it takes only 3 seconds…
Sathya
  • 2,371
  • 5
  • 19
  • 27
3
votes
1 answer

Java Advanced Imaging: How to get the ImageLayout from a huge image?

I have a couple of huge images which can't be loaded into the memory in whole. I know that the images are tiled and all the methods in the class ImageReader give me plausible non zero return values for getTileGridXOffset(int),…
3
votes
1 answer

How to set icc color profile in Java and change colorspace

First, I would like to say I'm not an image processing specialist. I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way…
Patriarch24
  • 281
  • 1
  • 4
  • 7
3
votes
2 answers

JAI: Reading in 12 bit JPEG files

I'm brand new to Java Advanced Imaging, and the first stumbling block I've reached is the ability to read in a 12 bit, single band, greyscale JPEG file. I've seen references to it being possible with JAI, but no code or even suggestions about how it…
Desert ed
  • 155
  • 1
  • 8