C# 클래스 CSJ2K.Icc.ICCProfiler

This class provides ICC Profiling API for the jj2000.j2k imaging chain by implementing the BlkImgDataSrc interface, in particular the getCompData and getInternCompData methods.
상속: CSJ2K.Color.ColorSpaceMapper
파일 보기 프로젝트 열기: cureos/csj2k

보호된 프로퍼티들

프로퍼티 타입 설명
eol System.String

공개 메소드들

메소드 설명
ToString ( ) : System.String

Return a suitable String representation of the class instance.

createInstance ( BlkImgDataSrc src, CSJ2K csMap ) : BlkImgDataSrc

Factory method for creating instances of this class.

getCompData ( CSJ2K.j2k.image.DataBlk outblk, int c ) : CSJ2K.j2k.image.DataBlk

Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place".

The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class.

If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system.

The returned data has its 'progressive' attribute set to that of the input data.

getInternCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk

Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified.

The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class.

This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable.

If possible, the data in the returned 'DataBlk' should be the internal data itself, instead of a copy, in order to increase the data transfer efficiency. However, this depends on the particular implementation (it may be more convenient to just return a copy of the data). This is the reason why the returned data should not be modified.

If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned.

The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.

보호된 메소드들

메소드 설명
ICCProfiler ( BlkImgDataSrc src, CSJ2K csMap ) : System

Ctor which creates an ICCProfile for the image and initializes all data objects (input, working, output).

비공개 메소드들

메소드 설명
ICCProfiler ( ) : System
getICCProfile ( CSJ2K csm ) : CSJ2K.Icc.RestrictedICCProfile

Get the ICCProfile information JP2 ColorSpace

initialize ( ) : void

General utility used by ctors

메소드 상세

ICCProfiler() 보호된 메소드

Ctor which creates an ICCProfile for the image and initializes all data objects (input, working, output).
/// /// ///
protected ICCProfiler ( BlkImgDataSrc src, CSJ2K csMap ) : System
src BlkImgDataSrc -- Source of image data ///
csMap CSJ2K
리턴 System

ToString() 공개 메소드

Return a suitable String representation of the class instance.
public ToString ( ) : System.String
리턴 System.String

createInstance() 공개 정적인 메소드

Factory method for creating instances of this class.
profile access exception /// profile content exception ///
public static createInstance ( BlkImgDataSrc src, CSJ2K csMap ) : BlkImgDataSrc
src BlkImgDataSrc -- source of image data ///
csMap CSJ2K -- provides colorspace info ///
리턴 BlkImgDataSrc

getCompData() 공개 메소드

Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place".

The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class.

If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system.

The returned data has its 'progressive' attribute set to that of the input data.

public getCompData ( CSJ2K.j2k.image.DataBlk outblk, int c ) : CSJ2K.j2k.image.DataBlk
outblk CSJ2K.j2k.image.DataBlk
c int The index of the component from which to get the data. Only 0 /// and 3 are valid. /// ///
리턴 CSJ2K.j2k.image.DataBlk

getInternCompData() 공개 메소드

Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified.

The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class.

This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable.

If possible, the data in the returned 'DataBlk' should be the internal data itself, instead of a copy, in order to increase the data transfer efficiency. However, this depends on the particular implementation (it may be more convenient to just return a copy of the data). This is the reason why the returned data should not be modified.

If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned.

The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.

public getInternCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk
out_Renamed CSJ2K.j2k.image.DataBlk
c int The index of the component from which to get the data. /// ///
리턴 CSJ2K.j2k.image.DataBlk

프로퍼티 상세

eol 보호되어 있는 정적으로 프로퍼티

Platform dependant end of line String.
protected static String,System eol
리턴 System.String