Révision 7 src/lsm_lib.h
lsm_lib.h (revision 7) | ||
---|---|---|
365 | 365 |
return res; |
366 | 366 |
} |
367 | 367 |
|
368 |
|
|
369 |
CImg<float> edge_indicator3exp(CImg<float> const & img, float gamma) |
|
370 |
{ |
|
371 |
CImg<float> res(img._width,img._height,img._depth,1,0); |
|
372 |
cimg_forXYZ(res,x,y,z) |
|
373 |
{ |
|
374 |
res(x,y,z)=exp(-(img(x,y,z)/gamma)*(img(x,y,z)/gamma)); |
|
375 |
} |
|
376 |
return res; |
|
377 |
} |
|
378 |
|
|
368 | 379 |
//Edge image (based on lambda3 of the hessien) |
369 | 380 |
//--------------------------------------------------------------------------- |
370 | 381 |
CImg<float> edge_lambda3(CImg<float> const & img) |
Formats disponibles : Unified diff