iipimage and a performance analysis of jpeg2000 encoding

46
IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]> IIPImage & IIPImage & An Analysis of JPEG2000 Encoding An Analysis of JPEG2000 Encoding Parameters Parameters Ruven Pillay C2RMF Wellcome Trust, London, 10 th November 2014

Upload: others

Post on 22-Jul-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

IIPImage & IIPImage & An Analysis of JPEG2000 Encoding An Analysis of JPEG2000 Encoding

ParametersParametersRuven Pillay

C2RMF

Wellcome Trust, London, 10th November 2014

Page 2: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

1. IIPImage2. Museum Imaging4. Multispectral & Hyperspectral Imaging5. Scientific Applications6. JPEG2000 Encoding Parameters

Page 3: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

IIPImage

Page 4: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Imaging Challenge in Museums

Images getting larger and larger. New imaging technologies, new imaging techniques produce massivemassive quantities of data ...

Page 5: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Scientific Imaging in Museums

Scientific imaging techniques can produce quantitative data in 16, 32 bit formats

Xray Infra-red Raking Light UV Emmisography

Images Copyright ©C2RMF 2014Image Credits: Elsa Lambert, Elisabeth Ravaud

Page 6: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Spectral Imaging in Museums

Multi/Hyper spectral imaging can produce gigabytes of data and hundreds of channels per pixel

Multispectral Imaging Hyperspectral Imaging

Page 7: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Image Visualization Software: IIPImage

● Open source● Networked remote viewing● Single source → multiple uses● High resolution images – up to

terrapixel sizes● Region export / resizing● Gamma, contrast adjustments,

rotation etc.● Multi-platform● Images stored in standard

archive formats: TIFF or JPEG2000

http://iipimage.sf.net

Page 8: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Web Services API

● Basic Image Processing Parameters– Contrast: CNT=c– Gamma: GAM=g– Thresholding: MINMAX=c:min,max– Band recombination: CTW=[N:M]– Profile: PFL=r:x1,y1-x2,y2– Spectral reflectance: SPECTRA=r,x,y– Color map: CMP=JET– Inversion: INV

Page 9: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Protocol Support

IIPImage can handle multiple access protocols● IIP (Internet Imaging Protocol)● Zoomify● Deepzoom● IIIF (International Image Interoperability Framework)

Page 10: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Museum Imaging Examples

Page 11: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Extreme Resolutions

Image Copyright ©C2RMF 2014Image Credits: Elsa Lambert, Guy BazileThe Last Supper (1506), Marco D'Oggiono: Xray: 131,022 x 60,669 pixels (7 gigapixels)

Page 12: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Monitoring Change

Im ages du r ing resto ra t ion p rocess

Before Restoration During Restoration After Restoration

Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay, Jean-Louis Bellec

The Virgin and Child with Saint AnneLeonardo da VinciOil on Panel1.68 x 1.30 mMusée du Louvre

Page 13: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Comparing Imaging Modalities

Im ages o f sam e ob ject us ing d iffe ren t cam e ras o r techn iques

The Bedroom at Arles (1889)Vincent van GoghOil on Canvas57.5 x 74.0 cmMusée d'Orsay

Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay, Elsa Lambert, Elisabeth Ravaud

Page 14: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Image Blending

http://merovingio.c2rmf.cnrs.fr/iipimage/iipmooviewer-2.0/vangogh.html Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay

Page 15: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Linking Images and Data

● Make images a gateway through which to explore and understand

● Link additional scientific data directly into image

Portrait of a Woman with a Mirror (1515)TitianOil on Canvas93 x 76 cmMusée du Louvre Image Copyright ©C2RMF 2014

Image Credits: Ruven Pillay

Page 16: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

High Resolution Multispectral & Hyperspectral Imaging

Page 17: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Multispectral Imaging

Description independent of environment

– Acquisition of many colour channels (10's)

– Acquisition of reflectance spectrum

– Quantitative measurements

Page 18: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Spectral Reconstruction

Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay

Page 19: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Hyperspectral Imaging at the C2RMF

● Spectral Range– Visible – Near Infrared

(400-1000nm)– Up to 160 bands

● Spatial Resolution– 15 pixels / mm– 65 microns– 385 dpi

Page 20: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Hyperspectral Imaging of Marquetry

● Major study and restoration of Louvre's André-Charles Boulle collection

● Marquetry consisting of multiple types of painted wood

Images Copyright ©C2RMF 2014Image Credits: Thomas Clot

Page 21: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Wardrobe Doors (~1700)André Charles BoulleMarquetry (255.0 x 157.0 cm)Musée du Louvre

Inlaid Marquetry

Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay

Page 22: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Technical Imaging

Color UV Fluorescence X-ray

Images Copyright ©C2RMF 2014Image Credits: Thomas Clot, Jean Marsac

Page 23: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Comparing Wavelengths

Wardrobe Doors (~1700)André Charles BoulleMarquetry (255.0 x 157.0 cm)Musée du Louvre

20GB Data Cube● 7nm spectral

sampling● 8241 x 16177 pixels

spatiallyComparison of Color vs narrow spectral bands:● 412nm● 992nm

Images Copyright ©C2RMF 2014Image Credits: Ruven Pillay

Page 24: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Who Uses IIPImage

● Cultural heritage institutions:– Museums: National Gallery of Art, Washington,

National Gallery, London, C2RMF / Louvre– Libraries: The European Library, BNF, The National

Library of Wales, University Libraries– UNESCO, Wikimedia Commons, Wellcome Foundation,

Mellon Foundation● Science

– Micro-biology: Virtual nanoscopy applications, biomedical applications

– Astronomy: NASA, Institute of Astrophysics: sky surveys, astrophysics data

Page 25: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Biomedical Applications

Page 26: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Biomedical Applications

● Virtual nanoscopy - Creation of large virtual slides– Regions up to 1 mm2 at nm

resolution– Transmission electron

microscopy– Resulting slide:

● 1,461 × 604 µm2 in size● 921,600 × 380,928 pixels● Each pixel 1.6 nm square● Total of 281 gigapixels

[1] F. G. A. Faas, M. C. Avramut, B. M. van den Berg, A. M. Mommaas, A. J. Koster, and R. B. G. Ravelli, “Virtual nanoscopy: Generation of ultra-large high resolution electron microscopy maps,” J Cell Biol, vol. 198, no. 3, pp. 457–469, Aug. 2012.

Page 27: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Biomedical Applications

[1] Z. Husz, N. Burton, B. Hill, N. Milyaev, and R. Baldock, “Web tools for large-scale 3D biological images and atlases,” BMC Bioinformatics, vol. 13, no. 1, p. 122, Jun. 2012.

● MRC Human Genetics Unit, Institute of Genetics and Molecular Medicine, UK

● Woolz 3D data● IIP3D - extension to IIP

protocol for 3D cross-sections

● Atlas of mouse embryo development

● 3D Volumetric Data● Annotations● Anatomy ontology

http://www.emouseatlas.org/

Page 28: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Astrophysics Applications

Page 29: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Astronomy

● Sky Surveys:– VISTA Variables in the Via Lactea

(VVV)– Galactic Plane Survey (GPS)

● VISTA (Visible and Infrared Survey Telescope for Astronomy), Chile– 3 tonne camera– 16 IR detectors– 67 million pixels

● Data:– 100-200 TB of raw data– 3 IR wavelengths combined to

create false color image– Image containing 1 billion stars– 100GB TIFF of entire galactic plane– 1,267,500 x 120,000 pixels

http://djer.roe.ac.uk/vsa/vvv/iipmooviewer-2.0-beta/lb.html

Page 30: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Terabyte Scientific Data

● Calibrated sky survey data– Full 32 bit per

channel floating point data

– 1.3TB TIFF file● Access to line

profiles● Star catalogue

integration

Institute of Astrophysics (IAP)http://visiomatic.iap.fr/demo/large.html

Page 31: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Digital Elevation Maps

Dynamically color-mapped DEM data / hill-shading, Mars: HiRISE Project (NASA/JPL/University of Arizona)

Page 32: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Getting and Installing IIPImage

Page 33: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Build & Package Support

● Debian / Ubuntu– apt-get install iipimage-server

● Fedora / CentOS / RHEL– yum install iipsrv

● Compilation from source– Github:

https://github.com/ruven/iipsrv– Linux, Solaris, Mac OSX, Windows– GCC, Clang, VC++

● Web Server Environments– Apache, Lighttpd, NginX, Stand-

alone

Page 34: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Analysis of JPEG2000 Encoding Parameters

Page 35: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

JPEG2000

Encoding parameters can make a big difference to image

– Encoding time– File size– Decoding speed for streaming applications

● Can make large difference to IIPImage performance● JPEG2000 parameter choice a dark art

Page 36: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Parameter Analysis

● Parameters– Tile sizes (0 → 4096x4096)– Precincts (0 → 1024x1024)– Codeblocks (0 → 64x64)– Software (Kakadu & OpenJPEG)– → 864 combinations

● Test image (505MB)– 15016x11741 pixels– 3 channel RGB– 8 bits per channel

Page 37: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Encoding: File Size

TIFF Deflate: 0.566TIFF LZW: 0.624

Page 38: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Encoding: File Size

Page 39: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Encoding: Speed

Page 40: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Encoding: Speed

Page 41: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Decoding Time vs Precinct Size for Various Code Block Sizes

Page 42: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Tile Decoding Time vs JPEG2000 Tile Size Using Ideal Precinct/Code Block Sizes at

Different Resolutions

Page 43: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Access Analytics: Tile Index vs Number of Hits for Demo Image on IIPImage Website

Page 44: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Averaged Tile Decoding Time Across All Resolutions vs JPEG2000 Tile Encoding Sizes

Using Ideal Precinct / Code Block Sizes

Page 45: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

http://iipimage.sourceforge.net

Page 46: IIPImage and a Performance Analysis of JPEG2000 Encoding

IIPImage & An Analysis of JPEG2000 Encoding Parameters Ruven Pillay, [email protected]>

Thank You

Website: http://iipimage.sourceforge.netGithub: https://github.com/ruven/iipsrv

Facebook: http://www.facebook.com/IIPImageTwitter: http://twitter.com/iipimage

Email: [email protected]