LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

CodecsJpeg2000PrecinctSize Enumeration






Values to specify the size of JPEG 2000 compressed packets, provides a mean of random access into a JPEG 2000 compressed stream. .NET support WinRT support Silverlight support
Syntax
public enum CodecsJpeg2000PrecinctSize : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
Public Enum CodecsJpeg2000PrecinctSize 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As CodecsJpeg2000PrecinctSize
public enum CodecsJpeg2000PrecinctSize : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Codecs.CodecsJpeg2000PrecinctSize = function() { };
Leadtools.Codecs.CodecsJpeg2000PrecinctSize.prototype = {
LeadtoolsMemberMarker(replace me) };
public enum class CodecsJpeg2000PrecinctSize : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
FullNo precinct is used, size is infinite.
HierarchicalOne128A 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:
  • [128x128] level 1
  • [256x256]level 2
  • [512x512]level 3
  • [1024x1024] level 4
  • [2048x2048] level 5
HierarchicalOne256A 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:
  • [256x256] level 1
  • [512x512] level 2
  • [1024x1024] level 3
  • [2048x2048] level 4
  • [4096x4096] level 5
HierarchicalOne512A 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:
  • [512x512] level 1
  • [1024x1024 level 2
  • [2048x2048] level 3
  • [4096x4096]level 4
  • [8192x8192] level 5
HierarchicalOne64A 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:
  • [64x64] level 1
  • [128x128] level 2
  • [256x256] level 3
  • [512x512] level 4
  • [1024x1024] level 5
HierarchicalTwo128A 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:
  • [128x128] level 1
  • [128x128] level 2
  • [256x256] level 3
  • [256x256] level 4
  • [512x512] level 5
HierarchicalTwo256A 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:
  • [256x256] level 1
  • [256x256] level 2
  • [512x512] level 3
  • [512x512] level 4
  • [1024x1024] level 5
HierarchicalTwo512A 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:
  • [512x512] level 1
  • [512x512] level 2
  • [1024x1024] level 3
  • [1024x1024] level 4
  • [2048x2048] level 5
HierarchicalTwo64A 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:
  • [64x64] level 1
  • [64x64] level 2
  • [128x128] level 3
  • [128x128] level 4
  • [256x256] level 5
Uniform1024For all resolution levels, a precinct dimension of [1024x1024] will be applied.
Uniform128For all resolution levels, a precinct dimension of [128x128] will be applied.
Uniform2048For all resolution levels, a precinct dimension of [2048x2048] will be applied.
Uniform256For all resolution levels, a precinct dimension of [256x256] will be applied.
Uniform512For all resolution levels, a precinct dimension of [512x512] will be applied.
Uniform64For all resolution levels, a precinct dimension of [64x64] will be applied.
Remarks
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.

Example
For an example, refer to CodecsJpeg2000Options.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Codecs.CodecsJpeg2000PrecinctSize

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Codecs Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.