File Exchange

image thumbnail

MatHTJ2K

version 1.0.3 (239 KB) by Osamu Watanabe
MatHTJ2K is an implementation of JPEG 2000 Part 1 and Part 15 (High-Throughput JPEG 2000)

3 Downloads

Updated 30 Oct 2020

From GitHub

View Version History

View license on GitHub

# Summary

High Throughput JPEG 2000 (HTJ2K) is a new part of JPEG 2000 standard. The purpose of MatHTJ2K is to help a person who wants to develop an HTJ2K-based image compression system to understand the algorithms defined in HTJ2K. You can find more detailed information about HTJ2K on https://htj2k.com.

What you can do with MatHTJ2K are:

- to compress an image into a codestream which is compliant with JPEG 2000 Part 1 or Part 15.
- to decompress a codestream which is compliant with JPEG 2000 Part 1 or Part 15 into an image.
- to read/to write .jp2 and .jph file.

# Prerequisites

- MATLAB 2018b or higher with Image processing toolbox (older version may be fine, but not tested.)
- to use MEX version of block-coder, MATLAB Coder is required.

# Install

Type the following command in the command window:

`addpath(genpath('source'))`

If you want to save path settings for future session, use `savepath` command.

# Usage

## MEX functions (optional)

To generate MEX functions, type `generate_MEX_files` in the command window.

## Encoding

To compress an image stored in array "IMG", type the following command in the command window:

`encode_HTJ2K(filename, IMG, MEXflag)`

`MEXflag` should be `true` if you want to use MEX version of block-coder.

### available options to encoder

please see help (type `help encode_HTJ2K` in the command window)

## Decoding

To decompress a codestream, jp2 or jph, type the following command in the command window:

`[output composited_output] = decode_HTJ2K(filename, MEXflag, reduce_NL)`

`MEXflag` should be `true` if you want to use MEX version of block-coder.

`reduce_NL` is number of DWT resolution to be reduced from that of the original codestream/file.

For further details, please see help encode_HTJ2K/decode_HTJ2K.

Cite As

Osamu Watanabe (2021). MatHTJ2K (https://github.com/osamu620/MatHTJ2K/releases/tag/v1.0.3), GitHub. Retrieved .

Watanabe, Osamu, and David Taubman. “A Matlab Implementation of the Emerging HTJ2K Standard.” 2019 IEEE 8th Global Conference on Consumer Electronics (GCCE), IEEE, 2019, doi:10.1109/gcce46687.2019.9015602.

View more styles

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

source

source/HTcodec/common

source/HTcodec/decoder

source/HTcodec/encoder

source/MEX

source/Tier1

source/Tier2

source/box

source/coding_units

source/color_conv

source/dwt

source/main

source/marker_rw

source/rate_control

source/utils