Questions tagged [jpeg2000]

JPEG2000 is an image encoded format intended to supercede JPEG.

JPEG 2000 is an image compression standard and coding system. It was created by the Joint Photographic Experts Group committee in 2000 with the intention of superseding their original discrete cosine transform-based JPEG standard (created in 1992) with a newly designed, wavelet-based method.

JPEG2000 is supported by Webkit based browsers (Safari, Chrome) on Mac OS X.

More information at Wikipedia page of JPEG2000

201 questions
2
votes
2 answers

How to change the filter of an image in a PDF file

I'm building a tool to compress PDF files, and using pdfbox. I have some images with the DCTDecode + FlateDecode filter and I'd like to experiment with the JPXDecode filter to see if it occupies less space. I've seen some code using iText, but how…
david.perez
  • 6,090
  • 4
  • 34
  • 57
2
votes
1 answer

Ultimate JPEG-2000 compression

I have done a research comparing JPEG and JPEG-2000 and couldn't reach the same or better perceptual level of quality for JPEG-2000 compared to JPEG in extreme compressing levels (for web). Although, announced as ~20+% better perceptual quality with…
vptest
  • 246
  • 1
  • 17
2
votes
1 answer

Getting pixel data from a PythonMagick image?

Does anyone know a way get the pixel data from a PythonMagick.Image instance without having to write it to disk first? For instance, I can read in an image using: import PythonMagick im = PythonMagick.Image('image.jp2') I would now like to be able…
Keith Hughitt
  • 4,860
  • 5
  • 49
  • 54
2
votes
1 answer

Image type UNKNOWN with PDFBox and JPEG 2000 sample

I've taken a sample JPEG 2000 from the fnord examples page. However, when I try to add that image to the PDF: PDDocument document = new PDDocument(); PDImageXObject pdImage = pdImage = PDImageXObject.createFromFileByContent( "samples/relax.jp2",…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
2
votes
0 answers

cv::imread() won't work with .jp2 files after GetOpenFileName() dialog

I've encountered a weird issue that I seem to be unable to solve, involving OpenCV, Win32 API and jpeg2000 file format. I've made a C++ program that asks for an image and then, later on, uses it as a texture, manipulates it etc. But here's the…
Fornjotr
  • 21
  • 1
2
votes
0 answers

JPEG2000: Relation between number of components and channels in a jp2 image

According to jpeg2000 specification "if component mapping box is not present in jp2 header then ith component is mapped to ith channel". Index of the channel is obtained from channel definition box (if present). I have a jp2 image, which doesn't…
2
votes
1 answer

How to read JPEG2000 of Sentinel-2 data in R

I am trying to use the rgdal package to open multiple Sentinel-2 data of JPEG2000 format. The issue I am running into is: Error in .local(.Object, ...) : d:/data/T35SMD_20161227T091402_B01.jp2' not recognised as a supported file format. Although,…
Ursulka Siete
  • 143
  • 1
  • 10
2
votes
1 answer

writing Jpeg 2000 images in java

I am trying to encode (write) jpeg 2000 in Java. I am reading a '.bmp' image and try to write '.jp2' image. I am using: javax.imageio.ImageIO.write(img1, "jpeg 2000", file1); I do not receive any error, but the size of the produced image is zero.…
Shadi
  • 649
  • 3
  • 15
  • 30
2
votes
1 answer

extracting metadata from jpeg2000 images in python

I'd like to update the metadata in a series of jpeg2000 images. And I'd like to do it using python. I've looked at glymur and have been able to extract the xml etree: import glymur from lxml import etree jp2 = glymur.Jp2k(file) metaroot =…
2
votes
1 answer

Can two (or more) jpeg2000 be combined into one bigger one without decoding them to bitmap?

I have four .j2k files (loseless) of known identical size and I want to combine them into one bigger .j2k file. Now of course the simple and working way is to decompress them into bitmap and compress the larger bitmap to .j2k file - but that is…
Ondrej Svejdar
  • 21,349
  • 5
  • 54
  • 89
2
votes
0 answers

i want to write .j2c file

With FreeImage I want to create a j2c file for DCINEMA and test it, however, the result file is not compatible with j2c. IfanView (image software) says "result.j2c" is a jp2 file with an incorrect extension and renames it from result.j2c to…
n2v2rda2
  • 327
  • 2
  • 5
  • 15
2
votes
0 answers

How to truncate a JPEG 2000 filestream?

I am trying to extract quality layers from a JPEG 2000 filestream, which is contained in a .j2k file for testing. I am trying to do this in order to learn how to transmit the filestream, and eventually to perform Region of Interest (ROI) selection…
Kroque Ja
  • 29
  • 1
2
votes
0 answers

Implement progressively rendered layer in Cesium

I'm trying to implement a layer which displays raster data sent by a server. The data sent by the server protocol does not have a built-in support in the widely-used browser (this is a jpeg2000 data). Thus I'm decoding the data by myself and let it…
MaMazav
  • 1,773
  • 3
  • 19
  • 33
2
votes
1 answer

JPEG-2000: Can I dynamically resize an image without resampling?

One of the nice features of JPEG 2000 is that it's easy to downres an image -- just feed out fewer bytes. Is there a similar way to scale the image, such that I could send a thumbnail using bytes in the full-size file, without resampling?
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
2
votes
2 answers

How to Convert jpeg image into jpeg2000 lossless compression image?

I am compressing a image using java. I want to compress the image in jpeg2000 lossless. Please suggest solution. File imageFile = new File("C:\\Users\\Public\\Pictures\\Sample Pictures\\Chrysanthemum.jpg"); File compressedImageFile = new…
Sivam
  • 1,099
  • 3
  • 12
  • 25