-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from clEsperanto/development
Merge to prepare CLIJ2 release
- Loading branch information
Showing
337 changed files
with
9,308 additions
and
4,485 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
8 changes: 4 additions & 4 deletions
8
...haesleinhuepf/clij/kernels/absolute_2d.cl → ...esleinhuepf/clij/kernels/absolute_2d_x.cl
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
__constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST; | ||
|
||
__kernel void absolute_2d(DTYPE_IMAGE_IN_2D src, | ||
DTYPE_IMAGE_OUT_2D dst | ||
__kernel void absolute_2d(IMAGE_src_TYPE src, | ||
IMAGE_dst_TYPE dst | ||
) | ||
{ | ||
const int x = get_global_id(0); | ||
const int y = get_global_id(1); | ||
|
||
const int2 pos = (int2){x,y}; | ||
|
||
float value = READ_IMAGE_2D(src, sampler, pos).x; | ||
float value = READ_src_IMAGE(src, sampler, pos).x; | ||
if ( value < 0 ) { | ||
value = -1 * value; | ||
} | ||
|
||
WRITE_IMAGE_2D (dst, pos, CONVERT_DTYPE_OUT(value)); | ||
WRITE_dst_IMAGE (dst, pos, CONVERT_dst_PIXEL_TYPE(value)); | ||
} |
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
19 changes: 0 additions & 19 deletions
19
src/main/java/net/haesleinhuepf/clij/kernels/addWeightedPixelwise_2d.cl
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/net/haesleinhuepf/clij/kernels/addWeightedPixelwise_3d.cl
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/net/haesleinhuepf/clij/kernels/add_image_and_scalar_2d_x.cl
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,17 @@ | ||
__constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST; | ||
|
||
__kernel void add_image_and_scalar_2d( | ||
IMAGE_src_TYPE src, | ||
IMAGE_dst_TYPE dst, | ||
float scalar | ||
) | ||
{ | ||
const int x = get_global_id(0); | ||
const int y = get_global_id(1); | ||
|
||
const int2 pos = (int2){x,y}; | ||
|
||
const IMAGE_dst_PIXEL_TYPE value = CONVERT_dst_PIXEL_TYPE(READ_src_IMAGE(src, sampler, pos).x + scalar); | ||
|
||
WRITE_dst_IMAGE (dst, pos, value); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/net/haesleinhuepf/clij/kernels/add_image_and_scalar_3d_x.cl
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,18 @@ | ||
__constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST; | ||
|
||
__kernel void add_image_and_scalar_3d( | ||
IMAGE_src_TYPE src, | ||
IMAGE_dst_TYPE dst, | ||
float scalar | ||
) | ||
{ | ||
const int x = get_global_id(0); | ||
const int y = get_global_id(1); | ||
const int z = get_global_id(2); | ||
|
||
const int4 pos = (int4){x,y,z,0}; | ||
|
||
const IMAGE_dst_PIXEL_TYPE value = CONVERT_dst_PIXEL_TYPE(READ_src_IMAGE(src, sampler, pos).x + scalar); | ||
|
||
WRITE_dst_IMAGE(dst, pos, value); | ||
} |
Oops, something went wrong.