C# Класс CSJ2K.j2k.entropy.PrecinctSizeSpec

This class extends ModuleSpec class for precinct partition sizes holding purposes.

It stores the size a of precinct when precinct partition is used or not. If precinct partition is used, we can have several packets for a given resolution level whereas there is only one packet per resolution level if no precinct partition is used.

Наследование: CSJ2K.j2k.ModuleSpec
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PrecinctSizeSpec ( int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, CSJ2K.j2k.util.ParameterList pl ) : System

Creates a new PrecinctSizeSpec object for the specified number of tiles and components and the ParameterList instance.

PrecinctSizeSpec ( int nt, int nc, byte type, IntegerSpec dls ) : System

Creates a new PrecinctSizeSpec object for the specified number of tiles and components.

getPPX ( int t, int c, int rl ) : int

Returns the precinct partition width in component 'n' and tile 't' at resolution level 'rl'. If the tile index is equal to -1 or if the component index is equal to -1 it means that those should not be taken into account.

getPPY ( int t, int c, int rl ) : int

Returns the precinct partition height in component 'n' and tile 't' at resolution level 'rl'. If the tile index is equal to -1 or if the component index is equal to -1 it means that those should not be taken into account.

Описание методов

PrecinctSizeSpec() публичный Метод

Creates a new PrecinctSizeSpec object for the specified number of tiles and components and the ParameterList instance.
public PrecinctSizeSpec ( int nt, int nc, byte type, BlkImgDataSrc imgsrc, IntegerSpec dls, CSJ2K.j2k.util.ParameterList pl ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte the type of the specification module i.e. tile specific, /// component specific or both. /// ///
imgsrc BlkImgDataSrc The image source (used to get the image size) /// ///
dls CSJ2K.j2k.IntegerSpec
pl CSJ2K.j2k.util.ParameterList The ParameterList instance /// ///
Результат System

PrecinctSizeSpec() публичный Метод

Creates a new PrecinctSizeSpec object for the specified number of tiles and components.
public PrecinctSizeSpec ( int nt, int nc, byte type, IntegerSpec dls ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte the type of the specification module i.e. tile specific, /// component specific or both. /// ///
dls CSJ2K.j2k.IntegerSpec Reference to the number of decomposition levels /// specification /// ///
Результат System

getPPX() публичный Метод

Returns the precinct partition width in component 'n' and tile 't' at resolution level 'rl'. If the tile index is equal to -1 or if the component index is equal to -1 it means that those should not be taken into account.
public getPPX ( int t, int c, int rl ) : int
t int The tile index, in raster scan order. Specify -1 if it is not /// a specific tile. /// ///
c int The component index. Specify -1 if it is not a specific /// component. /// ///
rl int The resolution level /// ///
Результат int

getPPY() публичный Метод

Returns the precinct partition height in component 'n' and tile 't' at resolution level 'rl'. If the tile index is equal to -1 or if the component index is equal to -1 it means that those should not be taken into account.
public getPPY ( int t, int c, int rl ) : int
t int The tile index, in raster scan order. Specify -1 if it is not /// a specific tile. /// ///
c int The component index. Specify -1 if it is not a specific /// component. /// ///
rl int The resolution level. /// ///
Результат int