diff options
author | Abhinav Dronamraju | 2017-07-17 21:57:08 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-17 21:57:08 +0530 |
commit | 574ddf08c208a2d1b8c27fe29525f631816c32d5 (patch) | |
tree | fa194ffe40c78219befd002aaa224206a314a551 /src/c/statisticsFunctions/median/smedianrowa.c | |
parent | 9a70aa3ff473b7bc72d849c2cc2ecece57d4c388 (diff) | |
download | Scilab2C_fossee_old-574ddf08c208a2d1b8c27fe29525f631816c32d5.tar.gz Scilab2C_fossee_old-574ddf08c208a2d1b8c27fe29525f631816c32d5.tar.bz2 Scilab2C_fossee_old-574ddf08c208a2d1b8c27fe29525f631816c32d5.zip |
Median added
Diffstat (limited to 'src/c/statisticsFunctions/median/smedianrowa.c')
-rw-r--r-- | src/c/statisticsFunctions/median/smedianrowa.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/c/statisticsFunctions/median/smedianrowa.c b/src/c/statisticsFunctions/median/smedianrowa.c new file mode 100644 index 0000000..aab5938 --- /dev/null +++ b/src/c/statisticsFunctions/median/smedianrowa.c @@ -0,0 +1,36 @@ +/* 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 smedianrowa(float *in, int row, int col, float* out) +{ + float inter[row]; + + + +for(int i=0; i< col; i++) + { + for(int j=0 ; j< row; j++) + { + inter[j]= in[j+ (i*row)]; + + } + out[i]= smediana( inter, row); + + } + + +} |