Commit 54ee0a7a authored by Miklós Homolya's avatar Miklós Homolya

other non-linearity functions

parent ef6380e1
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment