NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 977 - PNG wrong pixel values
PNG wrong pixel values
Status: CONFIRMED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Linux
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-12-18 04:04 CST by Pietro Incardona
Modified: 2014-12-18 10:25 CST
2 users (show)

See Also:


Attachments
image to reproduce the problem (550.76 KB, image/png)
2014-12-18 04:06 CST, Pietro Incardona

Description Pietro Incardona 2014-12-18 04:04:36 CST
It seem that opening an image with imageJ2/SCIFIO activated produce different pixel values in some positions, checking with other tools it seem that imageJ2/SCIFIO is wrong and imageJ1 is correct

uploaded an image x.png to reproduce the problem

Information about your version of Java:

  os.arch => amd64
  os.name => Linux
  os.version => 3.16.3-200.fc20.x86_64
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.X11GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => null
  file.separator => /

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: /home/i-bird/Desktop/MOSAIC/imageJ/Fiji.app_new/java/linux-amd64/jdk1.6.0_24//jre
  imagej.dir => /home/i-bird/Desktop/MOSAIC/imageJ/Fiji.app_new

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20141126221327)
Fiji: http://fiji.sc/update/ (last check:20141125171145)
3D ImageJ Suite: http://sites.imagej.net/Tboudier/ (last check:20141125024335)
MOSAIC ToolSuite: http://mosaic.mpi-cbg.de/Downloads/update/Fiji/MosaicToolsuite/ (last check:20141106011755)

Files not up-to-date:
  1f12fc21 (LOCAL_ONLY) 20141001090215 plugins/IntSeg_3D.jar
  cedffbe3 (MODIFIED) 20141217205450 plugins/Mosaic_ToolSuite/Mosaic_ToolSuite.jar
Comment 1 Pietro Incardona 2014-12-18 04:06:46 CST
Created attachment 224
image to reproduce the problem
Comment 2 Curtis Rueden 2014-12-18 10:25:12 CST
I can reproduce this issue on OS X with Apple Java 1.6.0_65 as well as with Oracle Java 1.7.0_45. So it is unlikely to be a platform-specific issue decoding PNG data.

In my brief investigation, some pixels are off by 1; e.g.:

  SCIFIO: x=374, y=331, value=193,133,012 (#c1850c)
 ImageJ1: x=374, y=331, value=192,132,012 (#c0840c)

The Bio-Formats plugin (from which the SCIFIO APNG code originated) also has values matching ImageJ1, meaning that either A) SCIFIO introduced a regression at some point; or B) Bio-Formats has since fixed this bug.

Will keep you posted on any progress.