Gpuimage学习笔记

1.原理:

GPUImage是一个链(chain),    source -> phase1 target -> phase2 target -> final target

第一个环节是source, 这是一些GPUImageOutput的子类.包括:

(1). GPUImageVideoCamera (for live video from an iOS camera)

(2.) GPUImageStillCamera (for taking photos with the camera)

(3). GPUImagePicture (for still images)

(4). GPUImageMovie (for movies). S

后续环节是被称为target.  遵循GPUImageInput protocol

可用多个source到一个target上面进行blend,  也可用进行分支, 添加多个target.

一般的target可分为两类

(1)中间环节的target,  一般是各种filter, 是GPUImageFilter或者是子类.

(2)最终环节的target, 可用是GPUImageView, 或者GPUImageMovieWriter

2.内置滤镜列表

共125个滤镜, 分为四类

Color adjustments:  31 filters, 颜色处理相关

Image processing:  40 filters, 图像处理相关.

Blending modes:    29 filters,  混合模式相关.

Visual effects:    25 filters,  视觉效果相关.

125种滤镜列表

Color adjustments:  31 filters 颜色处理相关

GPUImageBrightnessFilter

GPUImageExposureFilter

GPUImageContrastFilter

GPUImageSaturationFilter

GPUImageGammaFilter

GPUImageLevelsFilter

GPUImageColorMatrixFilter

GPUImageRGBFilter

GPUImageHueFilter

GPUImageToneCurveFilter

GPUImageHighlightShadowFilter

GPUImageLookupFilter

GPUImageAmatorkaFilter

GPUImageMissEtikateFilter

GPUImageSoftEleganceFilter

GPUImageColorInvertFilter

GPUImageGrayscaleFilter

GPUImageMonochromeFilter

GPUImageFalseColorFilter

GPUImageHazeFilter

GPUImageSepiaFilter

GPUImageOpacityFilter

GPUImageSolidColorGenerator

GPUImageLuminanceThresholdFilter

GPUImageAdaptiveThresholdFilter

GPUImageAverageLuminanceThresholdFilter

GPUImageHistogramFilter

GPUImageHistogramGenerator

GPUImageAverageColor

GPUImageLuminosity

GPUImageChromaKeyFilter

Image processing:  40 filters 图像处理相关.

GPUImageTransformFilter

GPUImageCropFilter

GPUImageLanczosResamplingFilter

GPUImageSharpenFilter

GPUImageUnsharpMaskFilter

GPUImageGaussianBlurFilter

GPUImageBoxBlurFilter

GPUImageSingleComponentGaussianBlurFilter

GPUImageGaussianSelectiveBlurFilter

GPUImageGaussianBlurPositionFilter

GPUImageiOSBlurFilter

GPUImageMedianFilter

GPUImageBilateralFilter

GPUImageTiltShiftFilter

GPUImage3x3ConvolutionFilter

GPUImageSobelEdgeDetectionFilter

GPUImagePrewittEdgeDetectionFilter

GPUImageThresholdEdgeDetectionFilter

GPUImageCannyEdgeDetectionFilter

GPUImageHarrisCornerDetectionFilter

GPUImageNobleCornerDetectionFilter

GPUImageShiTomasiCornerDetectionFilter

GPUImageNonMaximumSuppressionFilter

GPUImageXYDerivativeFilter

GPUImageCrosshairGenerator

GPUImageDilationFilter

GPUImageRGBDilationFilter

GPUImageErosionFilter

GPUImageRGBErosionFilter

GPUImageOpeningFilter

GPUImageRGBOpeningFilter

GPUImageClosingFilter

GPUImageRGBClosingFilter

GPUImageLocalBinaryPatternFilter

GPUImageLowPassFilter

GPUImageHighPassFilter

GPUImageMotionDetector

GPUImageHoughTransformLineDetector

GPUImageLineGenerator

GPUImageMotionBlurFilter

Blending modes: 29 filters 混合模式相关

GPUImageZoomBlurFilter

GPUImageChromaKeyBlendFilter

GPUImageDissolveBlendFilter

GPUImageMultiplyBlendFilter

GPUImageAddBlendFilter

GPUImageSubtractBlendFilter

GPUImageDivideBlendFilter

GPUImageOverlayBlendFilter

GPUImageDarkenBlendFilter

GPUImageLightenBlendFilter

GPUImageColorBurnBlendFilter

GPUImageColorDodgeBlendFilter

GPUImageScreenBlendFilter

GPUImageExclusionBlendFilter

GPUImageDifferenceBlendFilter

GPUImageHardLightBlendFilter

GPUImageSoftLightBlendFilter

GPUImageAlphaBlendFilter

GPUImageSourceOverBlendFilter

GPUImageColorBurnBlendFilter

GPUImageColorDodgeBlendFilter

GPUImageNormalBlendFilter

GPUImageColorBlendFilter

GPUImageHueBlendFilter

GPUImageSaturationBlendFilter

GPUImageLuminosityBlendFilter

GPUImageLinearBurnBlendFilter

GPUImagePoissonBlendFilter

GPUImageMaskFilter

Visual effects: 25 filters 视觉效果相关

GPUImagePixellateFilter

GPUImagePolarPixellateFilter

GPUImagePolkaDotFilter

GPUImageHalftoneFilter

GPUImageCrosshatchFilter

GPUImageSketchFilter

GPUImageThresholdSketchFilter

GPUImageToonFilter

GPUImageSmoothToonFilter

GPUImageEmbossFilter

GPUImagePosterizeFilter

GPUImageSwirlFilter

GPUImageBulgeDistortionFilter

GPUImagePinchDistortionFilter

GPUImageStretchDistortionFilter

GPUImageSphereRefractionFilter

GPUImageGlassSphereFilter

GPUImageVignetteFilter

GPUImageKuwaharaFilter

GPUImageKuwaharaRadius3Filter

GPUImagePerlinNoiseFilter

GPUImageCGAColorspaceFilter

GPUImageMosaicFilter

GPUImageJFAVoronoiFilter

GPUImageVoronoiConsumerFilter

你可能感兴趣的:(Gpuimage学习笔记)