C# Class CatEye.Core.FloatBitmap

Inheritance: IBitmapCore
Show file Open project: bigfatbrowncat/CatEye Class Usage Examples

Protected Properties

Property Type Description
mWidth int
r_chan ].float[

Public Methods

Method Description
AmplitudeAdd ( double delta ) : void
AmplitudeFindBlackPoint ( ) : double
AmplitudeFindMedian ( ) : double
AmplitudeMultiply ( double Amplitude, ProgressReporter callback ) : void
ApplySaturation ( double satur_factor, ProgressReporter callback ) : void
ApplyTone ( Tone dark_tone, Tone light_tone, double edge, double softness, ProgressReporter callback ) : void
Clone ( ) : object
CompressLight ( double curve, ProgressReporter callback ) : void
Crotate ( double beta, Point c, int crop_w, int crop_h, int quality, ProgressReporter callback ) : void
CutBlackPoint ( double cut, int blur_radius, double blur_dark_level, int lines, double tailValueAtLeast, ProgressReporter callback ) : void
CutHighlights ( double cut, double softness, int lines, double tailValueAtLeast, ProgressReporter callback ) : void
FindDarkTone ( Tone light_tone, double edge, double softness, Point dark_center, double dark_radius, int points ) : Tone
FindLightTone ( Tone dark_tone, double edge, double softness, Point light_center, double light_radius, int points ) : Tone
FloatBitmap ( FloatBitmap src ) : System
FromPPM ( RawLoader ppm, ProgressReporter callback ) : FloatBitmap
Resize ( int targetWidth, int targetHeight, int quality, ProgressReporter callback ) : bool
ScaleFast ( double k, ProgressReporter callback ) : void
SharpenEdges ( double level, int blur_radius, ProgressReporter callback ) : void
SharpenLight ( double curve, double noise_gate, double pressure, double contrast, ProgressReporter callback ) : void

Protected Methods

Method Description
CalcMaxLight ( ) : double
CopyDataFrom ( FloatBitmap src ) : void
FloatBitmap ( ) : System
LoadDataFromPPM ( RawLoader ppm, ProgressReporter callback ) : bool

Private Methods

Method Description
BuildPhi ( float H, double alpha, double beta, double noise_gate ) : ].float[
SolvePoissonNeiman ( float I0, float rho, int steps_max, float stop_dpd, SolutionReporter callback ) : bool
SolvePoissonNeimanMultiLattice ( float rho, int steps_max, float stop_dpd, SolutionReporter callback ) : ].float[
Upsample2 ( float Q, int new_w, int new_h ) : ].float[

Method Details

AmplitudeAdd() public method

public AmplitudeAdd ( double delta ) : void
delta double
return void

AmplitudeFindBlackPoint() public method

public AmplitudeFindBlackPoint ( ) : double
return double

AmplitudeFindMedian() public method

public AmplitudeFindMedian ( ) : double
return double

AmplitudeMultiply() public method

public AmplitudeMultiply ( double Amplitude, ProgressReporter callback ) : void
Amplitude double
callback ProgressReporter
return void

ApplySaturation() public method

public ApplySaturation ( double satur_factor, ProgressReporter callback ) : void
satur_factor double
callback ProgressReporter
return void

ApplyTone() public method

public ApplyTone ( Tone dark_tone, Tone light_tone, double edge, double softness, ProgressReporter callback ) : void
dark_tone Tone
light_tone Tone
edge double
softness double
callback ProgressReporter
return void

CalcMaxLight() protected method

protected CalcMaxLight ( ) : double
return double

Clone() public method

public Clone ( ) : object
return object

CompressLight() public method

public CompressLight ( double curve, ProgressReporter callback ) : void
curve double
callback ProgressReporter
return void

CopyDataFrom() protected method

protected CopyDataFrom ( FloatBitmap src ) : void
src FloatBitmap
return void

Crotate() public method

public Crotate ( double beta, Point c, int crop_w, int crop_h, int quality, ProgressReporter callback ) : void
beta double
c Point
crop_w int
crop_h int
quality int
callback ProgressReporter
return void

CutBlackPoint() public method

public CutBlackPoint ( double cut, int blur_radius, double blur_dark_level, int lines, double tailValueAtLeast, ProgressReporter callback ) : void
cut double
blur_radius int
blur_dark_level double
lines int
tailValueAtLeast double
callback ProgressReporter
return void

CutHighlights() public method

public CutHighlights ( double cut, double softness, int lines, double tailValueAtLeast, ProgressReporter callback ) : void
cut double
softness double
lines int
tailValueAtLeast double
callback ProgressReporter
return void

FindDarkTone() public method

public FindDarkTone ( Tone light_tone, double edge, double softness, Point dark_center, double dark_radius, int points ) : Tone
light_tone Tone
edge double
softness double
dark_center Point
dark_radius double
points int
return Tone

FindLightTone() public method

public FindLightTone ( Tone dark_tone, double edge, double softness, Point light_center, double light_radius, int points ) : Tone
dark_tone Tone
edge double
softness double
light_center Point
light_radius double
points int
return Tone

FloatBitmap() protected method

protected FloatBitmap ( ) : System
return System

FloatBitmap() public method

public FloatBitmap ( FloatBitmap src ) : System
src FloatBitmap
return System

FromPPM() public static method

public static FromPPM ( RawLoader ppm, ProgressReporter callback ) : FloatBitmap
ppm RawLoader
callback ProgressReporter
return FloatBitmap

LoadDataFromPPM() protected method

protected LoadDataFromPPM ( RawLoader ppm, ProgressReporter callback ) : bool
ppm RawLoader
callback ProgressReporter
return bool

Resize() public method

public Resize ( int targetWidth, int targetHeight, int quality, ProgressReporter callback ) : bool
targetWidth int
targetHeight int
quality int
callback ProgressReporter
return bool

ScaleFast() public method

public ScaleFast ( double k, ProgressReporter callback ) : void
k double
callback ProgressReporter
return void

SharpenEdges() public method

public SharpenEdges ( double level, int blur_radius, ProgressReporter callback ) : void
level double
blur_radius int
callback ProgressReporter
return void

SharpenLight() public method

public SharpenLight ( double curve, double noise_gate, double pressure, double contrast, ProgressReporter callback ) : void
curve double
noise_gate double
pressure double
contrast double
callback ProgressReporter
return void

Property Details

mWidth protected property

protected int mWidth
return int

r_chan protected property

protected float[,] r_chan
return ].float[