forked from BradLarson/GPUImage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added approximate poisson image blending
- Loading branch information
Showing
9 changed files
with
389 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// GPUImagePoissonBlendFilter.h | ||
// GPUImage | ||
// | ||
// Created by Ian Simon on 1/29/13. | ||
// Copyright (c) 2013 Brad Larson. All rights reserved. | ||
// | ||
|
||
#import "GPUImageTwoInputCrossTextureSamplingFilter.h" | ||
#import "GPUImageFilterGroup.h" | ||
|
||
@interface GPUImagePoissonBlendFilter : GPUImageTwoInputCrossTextureSamplingFilter | ||
{ | ||
GLint mixUniform; | ||
|
||
GLuint secondFilterOutputTexture; | ||
GLuint secondFilterFramebuffer; | ||
} | ||
|
||
// Mix ranges from 0.0 (only image 1) to 1.0 (only image 2 gradients), with 1.0 as the normal level | ||
@property(readwrite, nonatomic) CGFloat mix; | ||
|
||
// The number of times to propagate the gradients. | ||
@property(readwrite, nonatomic) NSUInteger numIterations; | ||
|
||
@end |
Oops, something went wrong.