RealmeIP / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

issue236 revisited #339

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
pdfimages -jp2 j2kp4-file2-eycc-8bpc.pdf image

creates image-000.jp2.

The relevant data of image-000.jp2 are:
-----------------------------------
    name(ftyp)
   brand(jp2 ) minv(0)
   CL[0]()
   CL[1](jp2 )

read_ihdr
    w(480) h(640) nc(3) bpc(7)
    signed(0) depth(8)
    compress(7) unknown_c(0) ipr(0)

read_colr
    meth(1) prec(0) approx(1) enumcs[24]e-sYCC
--- start cdef
[0]c(0) typ(0) asoc(3)
[1]c(1) typ(0) asoc(2)
[2]c(2) typ(0) asoc(1)
--- end cdef
-----------------------------------

With kdu_render I get a TIF. Reduced by 50% I get image-000-kdu-50.png.

With UNCHANGED opj_decompress and a reduction of 2 I get image-000-r2.png.

I have now added a function 'color_esycc_to_rgb()' to color.c.

With CHANGED opj_decompress and a reduction of 2 I get
image-000-e-sYCC-r2.png. This image has a failure: the persons
in the foreground seem to be surrounded by mist.

winfried

Original issue reported on code.google.com by szukw...@arcor.de on 11 Apr 2014 at 8:14

Attachments:

GoogleCodeExporter commented 8 years ago
The 'image-000-e-sYCC-r2.png' does not have sRGB values but e-sRGB values.

With e-sRGB to sRGB values and a reduction of 1 I get 'esycc-to-srgb-r1.png'.

But when I use the computation of issue236 - which is the computation in GS -
then I get 'srgb-r1.png'. This image is shown when I use GV. 

winfried

Original comment by szukw...@arcor.de on 12 Apr 2014 at 6:25

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by mathieu.malaterre on 28 Apr 2014 at 7:35