[pktools] 125/375: bug fix in pktools for -min and -max
Bas Couwenberg
sebastic at xs4all.nl
Wed Dec 3 21:54:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch upstream-master
in repository pktools.
commit 1b67952a9e07f9dcf4177be22f33af850f020dcb
Author: Pieter Kempeneers <kempenep at gmail.com>
Date: Mon Aug 26 17:58:33 2013 +0200
bug fix in pktools for -min and -max
---
ChangeLog | 4 +++-
configure.ac | 2 +-
src/apps/pkinfo.cc | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 07dc87a..9ea47d5 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -116,4 +116,6 @@ version 2.4.1
priors for input vector file
todo: take priors into account for cross validation
ordering of labels before training
-
+version 2.4.2
+ - pkinfo
+ bug fixed with -min and -max
diff --git a/configure.ac b/configure.ac
index b6b157d..125cea2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([pktools], [2.4.1], [kempenep at gmail.com])
+AC_INIT([pktools], [2.4.2], [kempenep at gmail.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_MACRO_DIR([m4])
diff --git a/src/apps/pkinfo.cc b/src/apps/pkinfo.cc
index cfba529..1ba22c5 100644
--- a/src/apps/pkinfo.cc
+++ b/src/apps/pkinfo.cc
@@ -294,9 +294,9 @@ int main(int argc, char *argv[])
minValue=0;
maxValue=0;
if(min_opt.size())
- minValue=min_opt.size();
+ minValue=min_opt[0];
if(max_opt.size())
- maxValue=max_opt.size();
+ maxValue=max_opt[0];
unsigned long int nsample=imgReader.getHistogram(output,minValue,maxValue,nbin,band_opt[0]);
std::cout.precision(10);
for(int bin=0;bin<nbin;++bin){
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git
More information about the Pkg-grass-devel
mailing list