C# 클래스 Accord.Imaging.Filters.LevelsLinear

Linear correction of RGB channels.

The filter performs linear correction of RGB channels by mapping specified channels' input ranges to output ranges. It is similar to the ColorRemapping, but the remapping is linear.

The filter accepts 8 bpp grayscale and 24/32 bpp color images for processing.

Sample usage:

// create filter LevelsLinear filter = new LevelsLinear( ); // set ranges filter.InRed = new IntRange( 30, 230 ); filter.InGreen = new IntRange( 50, 240 ); filter.InBlue = new IntRange( 10, 210 ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

상속: BaseInPlacePartialFilter
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

비공개 메소드들

메소드 설명
CalculateMap ( IntRange inRange, IntRange outRange, byte map ) : void

Calculate conversion map.