Tools for Manipulating JPEG-2000 Based Whole Slide Image Formats

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

Web Design Vocab 3 PNG, JPG, GIF, MP3, MPEG.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Physical, Logical, Conceptual DSA Lecture
Physical, Logical, Conceptual DSA Lecture
Hao Jiang Computer Science Department Sept. 27, 2007
2.01 Understand Digital Raster Graphics
Fast multiresolution image querying CS474/674 – Prof. Bebis.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Medical Imaging Lecture: Medical Image Formats.
Freeland, TDWG Oct 2008 Using the JPEG2000 image format for storage and access in biodiversity collections. Chris Freeland Missouri Botanical.
JPEG 2000 CS 525 Research Project Spring 2008 Presented By - Ankur Chattopadhyay University Of Colorado At Colorado Springs 1.
1 GFI Files Graphics Interchange Format. 2 GIF History  CompuServe developed 1987 Versions 87a, V89a Because there was no standard.
Still Image Conpression JPEG & JPEG2000 Yu-Wei Chang /18.
Prepared by George Holt Digital Photography BITMAP GRAPHIC ESSENTIALS.
FrIDA: An open source framework for image dataset analysis Toby Cornish, MD, PhD Department of Pathology Johns Hopkins Medical Institutions Baltimore,
© Tanner, KCL 2007 How do I decide if JPEG 2000 is for me? Choosing standards when there are so many… Simon Tanner Director.
File Formats About graphic file formats And image compression.
Digital Images Chapter 8, Exploring the Digital Domain.
1 Real-World File Structures by Tom Davis Asst. Professor, Computer Science St. Edward's University 3001 South Congress Avenue Austin, Texas 78704
S m a r t e r D o c u m e n t M a n a g e m e n t SM NLM Invitational Planning Meeting Bethesda, Maryland August 1, 2005 Robert Buckley Imaging & Services.
SOFTWARE TYPES Word processing Page layout Paint Draw.
OME-TIFF and Bio-Formats K. Eliceiri, E. Hathaway, M. Linkert, and C. Rueden
Data Management BIRN supports data intensive activities including: – Imaging, Microscopy, Genomics, Time Series, Analytics and more… BIRN utilities scale:
1 Image Formats. 2  To be able save image data for future manipulation and display we need to be able to store it in a consistent manner  Formats enable.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
JPEG CIS 658 Fall 2005.
Group No 5 1.Muhammad Talha Islam 2.Karim Akhter 3.Muhammad Arif 4.Muhammad Umer Khalid.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
Lev Weisfeiler Aware, Inc. SPIE Medical Imaging 2006 San Diego, CA, USA February 14, 2006 DICOM Supplement 106: JPEG 2000 Interactive Protocol.
Where museums, libraries, and archives intersect Unimpeded Discovery of Digital Content - Intro - Günter Waibel/RLG.
Vladimir Misic Web Services for Image Conversion and Document Database Search Dr. Vladimir Misic, James M. Kang, Jordan Sissel CS Department,
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Graphics & Images What File Format Do I Use?. Graphics & Images …..are visual images presented on some form of media (drawings, print, web, digital video)
Proposal for Storing Whole Slide Images for Pathology in DICOM
A radiologist analyzes an X-ray image, and writes his observations on papers  Image Tagging improves the quality, consistency.  Usefulness of the data.
File Analysis Dr. John P. Abraham Professor UTPA.
ITGS Application Software. ITGS Application software (productivity software) –Allows the user to perform tasks to solve problems, such as creating documents,
Files Chapter 4.
Performed by: Dor Kasif, Or Flisher Instructor: Rolf Hilgendorf Jpeg decompression algorithm implementation using HLS PDR presentation Winter Duration:
Chapter 8 Recovering Graphics Files
MULTIMEDIA Multimedia is the field concerned with the computer- controlled integration of text, graphics, drawings, still and moving images (Video), animation,
ADNET Systems, Inc. Jack Ireland & Helioviewer Team ADNET Systems, Inc. Helioviewer Discovery for Everyone Everywhere.
HTTP transaction with Graphics HTML file + two graphics files.
IMAGE/VIDEO COMPRESSION STANDARD JPEG-2000/JasPer/Motion JPEG/Wireless JPEG/Kakadu Jan T. Bialasiewicz.
Utilizing the Benefits of Native XML Database Technologies Alan Cornish Systems Librarian Washington State University Libraries.
JPEG 2000 CS 525 Research Project Spring 2008 Presented By - Ankur Chattopadhyay University Of Colorado At Colorado Springs.
Introduction to MPEG  Moving Pictures Experts Group,  Geneva based working group under the ISO/IEC standards.  In charge of developing standards for.
Getting it together! Automating Standardized Technical Metadata for Images and Audio Jody L. DeRidder University of Alabama Libraries DLF 2015 October.
Information Retrieval in Practice
2.01 Understand Digital Raster Graphics
Yingfang Zhang Department of Computer Science UCCS
2.01 Understand Digital Raster Graphics
JPEG Compression What is JPEG? Motivation
Sampling, Quantization, Color Models & Indexed Color
PASIG Bootcamp: Image Formats Robert Buckley NewMarket Imaging/
2.01 Understand Digital Raster Graphics
JPEG.
JPEG JPEG stands foe Joint Photographic Experts Group.
1.01 Investigate graphic types and file formats.
2.01 Understand Digital Raster Graphics
Scan to USB.
COMS 161 Introduction to Computing
2.01 Understand Digital Raster Graphics
Real-World File Structures
Presentation transcript:

Tools for Manipulating JPEG-2000 Based Whole Slide Image Formats Toby Cornish, M.D., Ph.D. Department of Pathology Johns Hopkins Medical Institutions Baltimore, MD

Overview JPEG-2000 is a highly-efficient compression standard well-suited to storage of whole slide images JP2 and Aperio SVS are two WSI file formats that employ JPEG2k compression Although the file formats are different, the data is essentially stored in the same format Few tools exist for manipulating these formats It should be possible to open, manipulate, and interconvert these formats using readily available, free and open libraries

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

JPEG-2000 A standard for wavelet-based image compression Joint Photographic Expert Group as a replacement for JPEG ISO/IEC 15444-1 and 15444-2 (parts 1 and 2) Part 1 defines a self-contained codestream (JPC) as well as a file format (JP2) that can wrap the codestream

JPEG-2000, cont. JPIP (ISO/IEC 15444-9) is a related standard for streaming of large JPEG2k codestreams Several encoders/decoders both free and proprietary for JPEG2k Vary widely in the implementation of the standard, but most support JPEG2k part 1 Mostly used for high capacity image storage in videogames, satellite imagery, and, more recently, medical imagery

JPEG-2000, cont. Features: Highly efficient compression Native tiling support for large images Native multiresolution decompression from a single codestream Support for an arbitrary number of image components (i.e. channels) JPEG2k codestreams are self-contained and can be embedded in other file formats

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

JPEG-2k codestreams The codestream are capable of indepently being decoded into an image All codestreams are tiled, but the simplest and most common form is the single tile codestream Single tile images are good for small images Multiple tile images better for handling large image data such as WSI

JPEG2k codestream, single tile 1 One codestream – One tile

JPEG2k codestream, single tile start of codestream SOC image and tile size SIZ coding style defaults COD quantization defaults QCD comments JPEG2k codestream COM Main header Tile header 1 start of tile SOT Tile data 1 start of data SOD Packet 1 EOC Packet n end of codestream EOC

JPEG2k codestream, multiple tiles 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 One codestream – Multiple tiles

JPEG2k codestream, multiple tiles start of codestream SOC SIZ image and tile size coding style defaults COD quantization defaults QCD Main header comments COM Tile header 1 JPEG2k codestream start of tile SOT Tile data 1 start of data SOD Packet 1 Tile header n Packet n Tile data n start of tile SOT start of data SOD Packet 1 EOC Packet n end of codestream EOC

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

JP2 Wrapped JPEG2k codestream Composed of mandatory and optional header boxes Extensible via UUIDs (Universal Unique Identifiers) and/or XML

Contiguous codestream box JP2 file format, cont. Main header Tile header 1 JPEG2k signature box Tile data 1 File type box JP2 header box Contiguous codestream box JPEG2k codestream Tile header n XML boxes Tile data n UIUD boxes EOC

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

Aperio SVS file format Developed by Aperio, Inc. (San Diego, CA) Essentially, a TIFF file with a tiled layout Tile data are JPEG2k codestreams Can consist of multiple images (pages) derived from slide scanning with one Image File Directory (IFD) per image Image metadata is stored in Tags The highest resolution data is always tiled

SVS/TIFF structure Image Pyramid Thumbnail Label Macro

SVS/TIFF structure, cont. Byte order Version number IFD 1 IFD offset Tag entry count Tag 1 IFD 2 Tag n IFD 3 Image data IFD 4 Tag entry count IFD 5 Tag 1 Tag n IFD 6 Image data

SVS/TIFF Tiling Multiple tiles – one codestream per tile 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 Multiple tiles – one codestream per tile

SVS/TIFF tiling, cont. JPEG2k codestream Tiff Tiles IFD 1 Tag entry count Tag 1 Tile 1 Main header Tile 2 Tile header 1 Tile 3 Tile data 1 IFD 1 Tag n Image data Tile n EOC

SVS/TIFF v JP2 Differences: Similarities: JP2 contains one JPEG2k codestream, which contains multiple tiles SVS/TIFF contains multiple tiles, each of which contains one codestream with exactly one tile Similarities: The tile data is essentially the exact same, but packaged Should permit direct copying of tile data between formats

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

Design Open source libraries (LibTiff, ImageMagick/Jasper) C programming language for portability First two goals: Read SVS/TIFF image data using custom software Convert SVS/TIFF files to JP2 without decompressing

Read SVS/TIFF Tiff Tiles TIFF Header IFD SVS Image data Tile 1 Tile 2 Main header Tile header Decode Tile data 1 EOC TIFF Header Tiff Tiles IFD Main header SVS Image data Tile 1 Tile header Tile data 2 Tile 2 Decode EOC Tile n Main header Tile header Tile data n Decode EOC

SVS/TIFF to JP2 conversion Merged codestream Main header Tile header Tile data 1 Main header Tile header EOC Tile data 1 TIFF Header Tiff Tiles JP2 Header IFD Main header Tile 1 Tile header Tile header JPEG2k Codestream SVS Image data Tile data 2 Tile data 2 Tile 2 EOC Tile header Tile n Tile data 2 Main header Tile header EOC Tile data n EOC

Issues SVS format “quirks” Somewhat unusual component subsampling Limits the number of decoders that will read the data without complaining SVS tiles are transformed into YCrCb color space Requires a transform to RGB color space before use A compliant JP2 reader should do this, but not all do

JPEG-2000 File Formats Design Results Compression Codestreams JP2 Aperio SVS Design Access SVS Data Convert SVS to JP2 Results

Results Several tools were created, allowing: Direct access to SVS tile data Manipulate, extract, and montage tiles See LOCI Bioformats project Direct conversion of SVS files to JP2 Requires the SVS tile dimensions to be multiples of 64 Embedded ICC profiles not propogated

Future work Implement software in Java Create a JP2  SVS/TIFF converter Investigate limitations: Why must tile dimensions be multiples of 64? Why do most decoders (notably the JAI decoders) fail to decode JPEG2k codestreams from SVS? Include ICC profiles Develop a generic LibTIFF plugin for encoding/decoding JPEG2k image data

Acknowledgements Johns Hopkins Kristen Lecksell University of Wisconsin-Madison, LOCI Melissa Linkert Curtis Rueden References Taubman and Marcellin, JPEG2000 Image Compression Fundamentals, Standards and Practice Aperio Technical Docs (http://www.aperio.com/documents/) Libraries LibTIFF (http://www.remotesensing.org/libtiff/) ImageMagick (http://www.imagemagick.org/script/index.php) Jasper (http://www.ece.uvic.ca/~mdadams/jasper/)