Révision 21 src/lsm_lib.h
lsm_lib.h (revision 21) | ||
---|---|---|
13 | 13 |
|
14 | 14 |
//**************************************** GLOBAL IMAGE ************************************************************************* |
15 | 15 |
|
16 |
//Invert the image |
|
17 |
//---------------------------------------------------------------------------- |
|
18 |
CImg<unsigned char> invert_image(CImg<unsigned char> const & img) |
|
19 |
{ |
|
20 |
CImg<unsigned char> unity(img._width,img._height,img._depth,1,1); |
|
21 |
CImg<unsigned char> inverted = unity - img; |
|
22 |
return inverted; |
|
23 |
} |
|
24 |
|
|
16 | 25 |
//Add black slices on each side of the image |
17 | 26 |
//---------------------------------------------------------------------------- |
18 | 27 |
CImg<float> add_side_slices(CImg<float> const & img, int side) |
Formats disponibles : Unified diff