Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cuda_lab
Project
Project
Details
Activity
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
Gaurav Kukreja
cuda_lab
Commits
54ee0a7a
Commit
54ee0a7a
authored
Mar 06, 2014
by
Miklós Homolya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
other non-linearity functions
parent
ef6380e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
main.cu
miklos/ex11/main.cu
+2
-0
No files found.
miklos/ex11/main.cu
View file @
54ee0a7a
...
@@ -52,6 +52,8 @@ __device__ __host__ T clamp(T m, T x, T M)
...
@@ -52,6 +52,8 @@ __device__ __host__ T clamp(T m, T x, T M)
__device__ __host__ float huber(float s, float epsilon)
__device__ __host__ float huber(float s, float epsilon)
{
{
return 1.0F / max(epsilon, s);
return 1.0F / max(epsilon, s);
//return 1.0F;
//return expf(-s*s / epsilon) / epsilon;
}
}
__global__ void compute_P(float *image, float *Px, float *Py, int w, int h, int nc, float epsilon)
__global__ void compute_P(float *image, float *Px, float *Py, int w, int h, int nc, float epsilon)
...
...
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