Git Product home page Git Product logo

ijp-imageio's People

Contributors

jpsacha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

paprikamario

ijp-imageio's Issues

Use new ImageIO (with TIFF etc) in Java 9+

Java 9 and newer includes most of the JAI ImageIO support natively (except JPEG 2000). Most customization in ijp-imageio is around TIFF that is part of the new Java 9+ ImageIO. External ImageIO dependencies can be removed. They can be added by the user, if user needs them, without changes in the ijp-imageio code.

When saving TIFF do not translate calibration units to maintain compatibility with ImageJ Opener

Save spatial calibration units in a way that is comparable with ImageJ. For instance, if ImageJ is using 'mm' do not translate it to TIFF supported 'cm'. Save as ImageJ "unitless" and add "unit=mm" in ImageDescription

Metadata in image saved by ImageJ:

TIFF Directory ...
  Resolution: 31.25, 31.25 (unitless)
  ...
  ImageDescription: ImageJ=1.52v unit=mm

Metadata in image saved by ijp-imageio in a way that is incompatible with ImageJ

TIFF Directory ...)
  Resolution: 0.03125, 0.03125 pixels/cm
  ...
  ImageDescription: ImageJ=1.52v unit=mm

[Save as TIFF] 8-bit gray level should not add RGB color map

When an 8-bit gray level image is saved as compressed TIFF the Photometric Interpretation tag is set to palette color but it should be the min-is-black. When OpenCV reads that image it interprets it as an RGB image not an 8-bit gray level image.

Here is an info of an image saves by "Save as TIFF":

  Image Width: 186 Image Length: 226
  Resolution: 1, 1 (unitless)
  Bits/Sample: 8
  Compression Scheme: AdobeDeflate
  Photometric Interpretation: palette color (RGB from colormap)
  Samples/Pixel: 1
  Rows/Strip: 44
  Planar Configuration: single image plane
  Color Map: (present)
  ImageDescription: ImageJ=1.53o

  Software: ij-plugins/ijp-imageio

For comparison the same image saved by ImageJ build-in encoder:

  Subfile Type: (0 = 0x0)
  Image Width: 186 Image Length: 226
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: min-is-black
  Samples/Pixel: 1
  Rows/Strip: 226
  Planar Configuration: single image plane
  ImageDescription: ImageJ=1.53o

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.