Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tile_processor_gpu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
tile_processor_gpu
Commits
35987171
Commit
35987171
authored
Nov 21, 2022
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
textures bug fix
parent
8d03d500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
24 deletions
+34
-24
TileProcessor.cuh
src/TileProcessor.cuh
+34
-24
No files found.
src/TileProcessor.cuh
View file @
35987171
...
...
@@ -265,10 +265,20 @@ def printTextureBlend(transform_size):
a *= blend1d[j]
elif dir[0]<0:
a *= blend1d[ts2m1 - j]
else:
if (j >= transform_size):
a*= blend1d[j - transform_size] # 8->0
else:
a*= blend1d[transform_size - 1 -j] # 7->0
if dir[1] > 0:
a *= blend1d[i]
elif dir[1]<0:
a *= blend1d[ts2m1 - i]
else:
if (i >= transform_size):
a*= blend1d[i - transform_size] # 8->0
else:
a*= blend1d[transform_size - 1 -i] # 7->0
alphabBlend[m][indx] = a;
floats_in_line0=8 # 16 #8
...
...
@@ -457,22 +467,22 @@ __constant__ float LoG_corr[64]={ // modify if needed high-pass filter before co
1.00000000f, 1.00000000f, 1.00000000f, 1.00000000f, 1.00000000f, 1.00000000f, 1.00000000f, 1.00000000f
};
__constant__ float textureBlend[8][32] = {
{0.
402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.40245
5f,
0.
222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215
f,
0.0
84265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265
f,
0.00
9607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607
f},
{0.
240485f, 0.313023f, 0.368542f, 0.398588f, 0.398588f, 0.368542f, 0.313023f, 0.24048
5f,
0.
132783f, 0.172835f, 0.203490f, 0.220080f, 0.220080f, 0.203490f, 0.172835f, 0.132783
f,
0.0
50352f, 0.065540f, 0.077165f, 0.083456f, 0.083456f, 0.077165f, 0.065540f, 0.050352
f,
0.00
5741f, 0.007472f, 0.008798f, 0.009515f, 0.009515f, 0.008798f, 0.007472f, 0.005741
f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.003867f, 0.033913f, 0.089431f, 0.161970f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.002135f, 0.018725f, 0.049379f, 0.089431f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000810f, 0.007101f, 0.018725f, 0.033913f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000092f, 0.000810f, 0.002135f, 0.003867f},
{0.00
9607f, 0.084265f, 0.222215f, 0.40245
5f,
0.00
9607f, 0.084265f, 0.222215f, 0.402455
f,
0.00
9607f, 0.084265f, 0.222215f, 0.402455
f,
0.009
607f, 0.084265f, 0.222215f, 0.402455
f,
0.009
607f, 0.084265f, 0.222215f, 0.402455
f,
0.00
9607f, 0.084265f, 0.222215f, 0.402455
f,
0.00
9607f, 0.084265f, 0.222215f, 0.402455
f,
0.00
9607f, 0.084265f, 0.222215f, 0.40245
5f},
{0.00
5741f, 0.050352f, 0.132783f, 0.24048
5f,
0.00
7472f, 0.065540f, 0.172835f, 0.313023
f,
0.00
8798f, 0.077165f, 0.203490f, 0.368542
f,
0.009
515f, 0.083456f, 0.220080f, 0.398588
f,
0.009
515f, 0.083456f, 0.220080f, 0.398588
f,
0.00
8798f, 0.077165f, 0.203490f, 0.368542
f,
0.00
7472f, 0.065540f, 0.172835f, 0.313023
f,
0.00
5741f, 0.050352f, 0.132783f, 0.24048
5f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.000000f,
...
...
@@ -481,22 +491,22 @@ __constant__ float textureBlend[8][32] = {
0.000810f, 0.007101f, 0.018725f, 0.033913f,
0.002135f, 0.018725f, 0.049379f, 0.089431f,
0.003867f, 0.033913f, 0.089431f, 0.161970f},
{0.00
9607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607f, 0.009607
f,
0.0
84265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265f, 0.084265
f,
0.
222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215f, 0.222215
f,
0.
402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.402455f, 0.40245
5f},
{0.00
5741f, 0.007472f, 0.008798f, 0.009515f, 0.009515f, 0.008798f, 0.007472f, 0.005741
f,
0.0
50352f, 0.065540f, 0.077165f, 0.083456f, 0.083456f, 0.077165f, 0.065540f, 0.050352
f,
0.
132783f, 0.172835f, 0.203490f, 0.220080f, 0.220080f, 0.203490f, 0.172835f, 0.132783
f,
0.
240485f, 0.313023f, 0.368542f, 0.398588f, 0.398588f, 0.368542f, 0.313023f, 0.24048
5f},
{0.003867f, 0.002135f, 0.000810f, 0.000092f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.033913f, 0.018725f, 0.007101f, 0.000810f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.089431f, 0.049379f, 0.018725f, 0.002135f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.161970f, 0.089431f, 0.033913f, 0.003867f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f,
0.
402455f, 0.222215f, 0.084265f, 0.009607
f},
{0.
240485f, 0.132783f, 0.050352f, 0.005741
f,
0.
313023f, 0.172835f, 0.065540f, 0.007472
f,
0.
368542f, 0.203490f, 0.077165f, 0.008798
f,
0.
398588f, 0.220080f, 0.083456f, 0.009515
f,
0.
398588f, 0.220080f, 0.083456f, 0.009515
f,
0.
368542f, 0.203490f, 0.077165f, 0.008798
f,
0.
313023f, 0.172835f, 0.065540f, 0.007472
f,
0.
240485f, 0.132783f, 0.050352f, 0.005741
f},
{0.161970f, 0.089431f, 0.033913f, 0.003867f,
0.089431f, 0.049379f, 0.018725f, 0.002135f,
0.033913f, 0.018725f, 0.007101f, 0.000810f,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment