diff options
author | Abhinav Dronamraju | 2017-07-17 21:57:08 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-17 21:57:08 +0530 |
commit | 83869364b668666f317b348aca35a940e010761d (patch) | |
tree | 063cdffb85a94716850b65450c5f893be456b498 /2.3-1/src/c/statisticsFunctions/median/u16mediancola.c | |
parent | 3af005920a6bce61c99d26fa205794634f5ad405 (diff) | |
download | Scilab2C-83869364b668666f317b348aca35a940e010761d.tar.gz Scilab2C-83869364b668666f317b348aca35a940e010761d.tar.bz2 Scilab2C-83869364b668666f317b348aca35a940e010761d.zip |
Median added
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/median/u16mediancola.c')
-rw-r--r-- | 2.3-1/src/c/statisticsFunctions/median/u16mediancola.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/median/u16mediancola.c b/2.3-1/src/c/statisticsFunctions/median/u16mediancola.c new file mode 100644 index 00000000..77952a35 --- /dev/null +++ b/2.3-1/src/c/statisticsFunctions/median/u16mediancola.c @@ -0,0 +1,35 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + + +#include "median.h" +#include "types.h" +#include "uint16.h" + +void u16mediancola(uint16 *in, int row, int col, uint16* out) +{ + uint16 inter[col]; + + +for(int i=0; i< row; i++) + { + for(int j=0 ; j< col; j++) + { + inter[j]= in[i+ (j*row)]; + + } + out[i]= u16mediana( inter, col); + + } + + +} |