Values to specify the size of JPEG 2000 compressed packets, provides a mean of random access into a JPEG 2000 compressed stream.
public enum CodecsJpeg2000PrecinctSize
Public Enum CodecsJpeg2000PrecinctSize
public enum CodecsJpeg2000PrecinctSize
typedef NS_ENUM(NSInteger, LTCodecsJpeg2000PrecinctSize)
public enum CodecsJpeg2000PrecinctSize
Leadtools.Codecs.CodecsJpeg2000PrecinctSize = function() { };
Leadtools.Codecs.CodecsJpeg2000PrecinctSize.prototype = {
Full = 0,
Uniform64 = 1,
Uniform128 = 2,
Uniform256 = 3,
Uniform512 = 4,
Uniform1024 = 5,
Uniform2048 = 6,
HierarchicalOne64 = 7,
HierarchicalOne128 = 8,
HierarchicalOne256 = 9,
HierarchicalOne512 = 10,
HierarchicalTwo64 = 11,
HierarchicalTwo128 = 12,
HierarchicalTwo256 = 13,
HierarchicalTwo512 = 14,
};
public enum class CodecsJpeg2000PrecinctSize
Members
Value | Member | Description |
---|---|---|
0 | Full | No precinct is used, size is infinite. |
1 | Uniform64 | For all resolution levels, a precinct dimension of [64x64] will be applied. |
2 | Uniform128 | For all resolution levels, a precinct dimension of [128x128] will be applied. |
3 | Uniform256 | For all resolution levels, a precinct dimension of [256x256] will be applied. |
4 | Uniform512 | For all resolution levels, a precinct dimension of [512x512] will be applied. |
5 | Uniform1024 | For all resolution levels, a precinct dimension of [1024x1024] will be applied. |
6 | Uniform2048 | For all resolution levels, a precinct dimension of [2048x2048] will be applied. |
7 | HierarchicalOne64 | A precinct size of [X by X] will be applied to the first(smallest) resolution of the image. The second resolution precinct dimension would be [2X by 2X]. The third resolution precinct dimension would be [4X by 4X] and so on. If the JPEG 2000 file has five levels and HierarchicalOne64 is used, the precinct dimensions will be as follows:
|
8 | HierarchicalOne128 | A precinct size of [X by X] will be applied to the first(smallest) resolution of the image. The second resolution precinct dimension would be [2X by 2X]. The third resolution precinct dimension would be [4X by 4X] and so on. If the JPEG 2000 file has five levels and HierarchicalOne128 is used, the precinct dimensions will be as follows:
|
9 | HierarchicalOne256 | A precinct size of [X by X] will be applied to the first(smallest) resolution of the image. The second resolution precinct dimension would be [2X by 2X]. The third resolution precinct dimension would be [4X by 4X] and so on. If the JPEG 2000 file has five levels and HierarchicalOne256 is used, the precinct dimensions will be as follows:
|
10 | HierarchicalOne512 | A precinct size of [X by X] will be applied to the first(smallest) resolution of the image. The second resolution precinct dimension would be [2X by 2X]. The third resolution precinct dimension would be [4X by 4X] and so on. If the JPEG 2000 file has five levels and HierarchicalOne512 is used, the precinct dimensions will be as follows:
|
11 | HierarchicalTwo64 | A precinct size of [X by X] will be applied to the first and second (smallest) resolutions of the image. The third and fourth resolution precinct dimensions would be [2X by 2X] and so on. So if the JPEG 2000 file has five levels and HierarchicalTwo64 is used, the precinct dimensions will be as follows:
|
12 | HierarchicalTwo128 | A precinct size of [X by X] will be applied to the first and second (smallest) resolutions of the image. The third and fourth resolution precinct dimensions would be [2X by 2X] and so on. So if the JPEG 2000 file has five levels and HierarchicalTwo128 is used, the precinct dimensions will be as follows:
|
13 | HierarchicalTwo256 | A precinct size of [X by X] will be applied to the first and second (smallest) resolutions of the image. The third and fourth resolution precinct dimensions would be [2X by 2X] and so on. So if the JPEG 2000 file has five levels and HierarchicalTwo256 is used, the precinct dimensions will be as follows:
|
14 | HierarchicalTwo512 | A precinct size of [X by X] will be applied to the first and second (smallest) resolutions of the image. The third and fourth resolution precinct dimensions would be [2X by 2X] and so on. So if the JPEG 2000 file has five levels and HierarchicalTwo512 is used, the precinct dimensions will be as follows:
|
Precincts are rectangular regions in the wavelet domain, within a given resolution level and image component that represent a spatial region on the image. They are used for limiting the size of JPEG 2000 compressed packets and to provide a means of random access into a JPEG 2000 compressed stream. For this reason, they should be used for interactive transfer of JPEG 2000 files as in JPIP applications. In general, dividing the image into precincts is better than tiling it. So it is recommended that users compress the image as one tile and use precincts to divide the spatial region. This will give better compression ratios and image quality. Using smaller precinct dimensions provides finer access to the compressed stream yet increases the compressed stream size. It is recommended to use HierarchicalOne128 and no tiling to generate JPEG 2000 files for any purpose.
For an example, refer to CodecsJpeg2000Options.
Products |
Support |
Feedback: CodecsJpeg2000PrecinctSize Enumeration - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.