Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear out the approximation portion of the wavelet, and inverse transform. This likely needs a threshold -> saturate to emphasize the edges. Create a buffer of logo ROI data only Make the edges dilate and accumulate the logo
- Loading branch information
Showing
9 changed files
with
817 additions
and
29 deletions.
There are no files selected for viewing
589 changes: 577 additions & 12 deletions
589
mythtv/programs/mythgpucommflag/openclvideoprocessor.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
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,19 @@ | ||
__kernel | ||
void videoInvert(__read_only image2d_t frameIn, | ||
__write_only image2d_t frameOut) | ||
{ | ||
int x = get_global_id(0); | ||
int y = get_global_id(1); | ||
const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | | ||
CLK_ADDRESS_CLAMP_TO_EDGE | | ||
CLK_FILTER_NEAREST; | ||
|
||
float4 val; | ||
val = read_imagef(frameIn, sampler, (int2)(x, y)); | ||
val.x *= -1.0; | ||
write_imagef(frameOut, (int2)(x, y), val); | ||
} | ||
|
||
/* | ||
* vim:ts=4:sw=4:ai:et:si:sts=4:filetype=c | ||
*/ |
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