jpeg2000 parsing/repackaging examples margaret lepley [email protected] 15 may 2002 margaret lepley...

15
JPEG2000 Parsing/Repackaging Examples Margaret Lepley [email protected] 15 May 2002

Upload: houston-wootten

Post on 29-Mar-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

JPEG2000Parsing/Repackaging

Examples

Margaret Lepley

[email protected]

15 May 2002

Page 2: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Overview

Impact of NSGI preferred format on parsing / repackaging implementations

Processes examined

- Spatial restriction

- Rate control

- Resolution reduction

- Releasability

- Component restriction

- Layer restriction

- Partial tile expansion via codeblock parsing

J2K codestreams tested without NITF file format

Impact of NSGI preferred format on parsing / repackaging implementations

Processes examined

- Spatial restriction

- Rate control

- Resolution reduction

- Releasability

- Component restriction

- Layer restriction

- Partial tile expansion via codeblock parsing

J2K codestreams tested without NITF file format

Page 3: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Parsing and Repackaging(Life after Compression)

ParseParse DecodeAC

DecodeAC

[Dequant] +Inverse Wavelet

[Dequant] +Inverse Wavelet

PackageCodestream

PackageCodestream

EncodeAC

EncodeAC

Forward Wavelet

+ [Quantize]

Forward Wavelet

+ [Quantize]

1100101011

1001110110

JPEG 2000Codestream0010101100

1100101011

1001110110

JPEG 2000Codestream0010101100

Repackaging Path

Expand = Parse + Decompress Repackage = Parse + Package

Landsat

Page 4: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

NSGI Parsing

Standard J2K convention

Tile parsing Layer parsing Resolution parsing Component parsing

Codeblock parsing

- for partial region expand

Standard J2K convention

Tile parsing Layer parsing Resolution parsing Component parsing

Codeblock parsing

- for partial region expand

Non-standard

Rate control

Non-standard

Rate control

Page 5: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

NSGI Repackaging

Standard J2K convention

Tile parsing / renumbering Layer parsing Resolution parsing Component parsing

COD modification QCD modification SIZ modification for resolution

Standard J2K convention

Tile parsing / renumbering Layer parsing Resolution parsing Component parsing

COD modification QCD modification SIZ modification for resolution

Non-standard

SIZ modification for chipping

- Image/Tile offset = 0

(if tile correctly sized)

Rate control

Graying Out tile TLM inclusion PLT inclusion PLT formatting by layer

Non-standard

SIZ modification for chipping

- Image/Tile offset = 0

(if tile correctly sized)

Rate control

Graying Out tile TLM inclusion PLT inclusion PLT formatting by layer

Page 6: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Spatial Chipping

1100101011

1001110110

JPEG 2000Codestream0010101100

1100101011

1001110110

JPEG 2000Codestream0010101100

(0,0)

1024CNES / SPOT Image

Page 7: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

TileSize Impact on SIZ Update in Chipping

Image Size = 3000 x 3000

Tile = 1000 x 1000

(0,0)

(2000,3000)

1100101011

1001110110

JPEG 2000Codestream0010101100

Error: Illegal inclusion tag tree

CNES/SPOT Image

Page 8: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Rate Control: per Tile

<1 packet

1 packet

(3.9 bpp at R5)

2.x layers

3.x layers

R2

4 Layers total

1.5 bpp

Always include at least one packet!

CNES/SPOT Image

CNES/SPOT Image

Page 9: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

BitRate vs Resolution (varies by tile for R1-R5)

0

1

2

3

4

5

6

7

8

9

10

0 5 10 15 20

Layer number

Bit

s p

er p

ixel

R0

R1

R2

R3

R4

R5

0

1

2

3

4

5

6

7

8

9

10

0 5 10 15 20

Layer number

Bit

s p

er p

ixel

R0

R1

R2

R3

R4

R5

Page 10: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Quality Reduction

R0 to bitrate

- with J2K TRENo rate control; use layer mapping

- w/o J2K TRE Rate control

R1 - R5 to bitrate

- Rate control

Basic rules

- replace rate control by layer parsing whenever possible

- at least one packet must remain in every tile

- don’t include more than 4.3 bpps [Or possibly lower]

R0 to bitrate

- with J2K TRENo rate control; use layer mapping

- w/o J2K TRE Rate control

R1 - R5 to bitrate

- Rate control

Basic rules

- replace rate control by layer parsing whenever possible

- at least one packet must remain in every tile

- don’t include more than 4.3 bpps [Or possibly lower]

Page 11: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Releasability

Find non-releasable tiles

1100101011

1001110110

JPEG 2000Codestream0010101100

1100101011

1001110110

JPEG 2000Codestream0010101100

Remove all packets in chosen tiles

Space Imaging

Page 12: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Component Selection1100101011

1001110110

JPEG 2000Codestream0010101100 1100101011

1001110110

JPEG 2000Codestream0010101100

1100101011

1001110110

JPEG 2000Codestream0010101100

TM Bands 3,2,1 TM Bands 5,4,3

6 bands TM

Landsat TM

Page 13: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Layer Parsing

Bpp: 0.125 0.25 0.5 1.0

Layers: 3 4 5 10

CNES/SPOT Image

Page 14: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Varying Resolution / Spatial Extent via Codeblock Parsing

R39 full tiles

R24 partial tiles

R01 partial tile

Decode faster than full tiles

CNES/ SPOT Image CNES/ SPOT Image

Page 15: JPEG2000 Parsing/Repackaging Examples Margaret Lepley mlepley@mitre.org 15 May 2002 Margaret Lepley mlepley@mitre.org 15 May 2002

Areas not yet Examined

Chipping at non-tile boundaries

- Image offsets > 0

- Recompression at borders

Error resilience

- Format recommendations

Very low bandwidth

- Recommendations re TLM / PLT

Chipping at non-tile boundaries

- Image offsets > 0

- Recompression at borders

Error resilience

- Format recommendations

Very low bandwidth

- Recommendations re TLM / PLT