From db464f35f5a10b58d9ed1085e0b462689adee583 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- src/c/statisticsFunctions/max/scolumnmaxa.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/c/statisticsFunctions/max/scolumnmaxa.c (limited to 'src/c/statisticsFunctions/max/scolumnmaxa.c') diff --git a/src/c/statisticsFunctions/max/scolumnmaxa.c b/src/c/statisticsFunctions/max/scolumnmaxa.c new file mode 100644 index 00000000..71af8460 --- /dev/null +++ b/src/c/statisticsFunctions/max/scolumnmaxa.c @@ -0,0 +1,24 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "statMax.h" + +void scolumnmaxa(float *in, int rows, int columns, float* out) { + int i = 0, j = 0; + + for (i = 0; i < rows; i++) { + out[i]=in[i]; + for (j=0;jout[i]) out[i] = in[i+j*rows]; + } + +} -- cgit From 5f2d4d678256289e72c1455cf26d9c0ecdeedc0e Mon Sep 17 00:00:00 2001 From: imushir Date: Fri, 27 Nov 2015 15:22:41 +0530 Subject: added c files for u8 u16 i8 i16 --- src/c/statisticsFunctions/max/scolumnmaxa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/c/statisticsFunctions/max/scolumnmaxa.c') diff --git a/src/c/statisticsFunctions/max/scolumnmaxa.c b/src/c/statisticsFunctions/max/scolumnmaxa.c index 71af8460..4014f88a 100644 --- a/src/c/statisticsFunctions/max/scolumnmaxa.c +++ b/src/c/statisticsFunctions/max/scolumnmaxa.c @@ -11,12 +11,13 @@ */ #include "statMax.h" +//#include "max.h" void scolumnmaxa(float *in, int rows, int columns, float* out) { int i = 0, j = 0; for (i = 0; i < rows; i++) { - out[i]=in[i]; + out[i]=in[i*columns]; for (j=0;jout[i]) out[i] = in[i+j*rows]; } -- cgit From c8fd6991786ccddb44547b619178bb391f3f9b96 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 18 Aug 2016 15:47:18 +0530 Subject: RPi-PWM and basic imaage processing --- src/c/statisticsFunctions/max/scolumnmaxa.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/c/statisticsFunctions/max/scolumnmaxa.c') diff --git a/src/c/statisticsFunctions/max/scolumnmaxa.c b/src/c/statisticsFunctions/max/scolumnmaxa.c index 4014f88a..185ab985 100644 --- a/src/c/statisticsFunctions/max/scolumnmaxa.c +++ b/src/c/statisticsFunctions/max/scolumnmaxa.c @@ -11,7 +11,6 @@ */ #include "statMax.h" -//#include "max.h" void scolumnmaxa(float *in, int rows, int columns, float* out) { int i = 0, j = 0; -- cgit