C# 클래스 StandardizedDiffuseAlbedoMaps.CalibratedTexture

This class hosts calibrated texture & swatches infos
상속: IDisposable
파일 보기 프로젝트 열기: Patapom/GodComplex 1 사용 예제들

공개 메소드들

메소드 설명
BuildCustomSwatches ( ImageUtility _CustomSwatchSamplingLocations ) : void

Builds the custom swatches

CalibratedTexture ( ) : System
Capture ( ImageUtility _Source, CameraCalibrationDatabase _Database, CaptureParms _Parms ) : void

Captures the calibrated texture

ComputeAverageSwatchColor ( ImageUtility _TopLeft, ImageUtility _BottomRight ) : ImageUtility.float3

Computes the average color within a rectangle in UV space

Dispose ( ) : void
SavePack ( System _FileName, TARGET_FORMAT _TargetFormat ) : void

Saves the texture pack (texture + swatches + xml manifest)

비공개 메소드들

메소드 설명
AppendElement ( XmlNode _ParentNode, string _ElementName ) : XmlElement
BuildSwatch ( int _Width, int _Height, ImageUtility _xyY ) : ImageUtility.Bitmap

Builds a swatch bitmap

ComputeMean ( ImageUtility _Values ) : ImageUtility.float3

Computes the statistical mean of the values

ComputeMode ( ImageUtility _Values ) : ImageUtility.float3

Computes the statistical mode of the values

InsertMinMax ( ImageUtility v, ImageUtility _Min, ImageUtility _Max, int _Length ) : void
SaveImage ( ImageUtility _Texture, System _FileName, ImageUtility _FileType, ImageUtility _Format ) : void

Saves a texture to disk

SetAttribute ( XmlElement _Element, string _Attribute, string _Value ) : CalibratedTexture
SetAttribute ( string _Attribute, string _Value ) : CalibratedTexture

메소드 상세

BuildCustomSwatches() 공개 메소드

Builds the custom swatches
public BuildCustomSwatches ( ImageUtility _CustomSwatchSamplingLocations ) : void
_CustomSwatchSamplingLocations ImageUtility In UV space. XY=Top Left corner, ZW=Bottom Right corner
리턴 void

CalibratedTexture() 공개 메소드

public CalibratedTexture ( ) : System
리턴 System

Capture() 공개 메소드

Captures the calibrated texture
public Capture ( ImageUtility _Source, CameraCalibrationDatabase _Database, CaptureParms _Parms ) : void
_Source ImageUtility The source image to capture
_Database CameraCalibrationDatabase Database to perform proper calibration
_Parms CaptureParms Parameters for the capture
리턴 void

ComputeAverageSwatchColor() 공개 메소드

Computes the average color within a rectangle in UV space
public ComputeAverageSwatchColor ( ImageUtility _TopLeft, ImageUtility _BottomRight ) : ImageUtility.float3
_TopLeft ImageUtility The top left corner (in UV space) of the rectangle to sample
_BottomRight ImageUtility The bottom right corner (in UV space) of the rectangle to sample
리턴 ImageUtility.float3

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

SavePack() 공개 메소드

Saves the texture pack (texture + swatches + xml manifest)
public SavePack ( System _FileName, TARGET_FORMAT _TargetFormat ) : void
_FileName System
_TargetFormat TARGET_FORMAT
리턴 void