[vlfeat] 14/44: vl_imsc.m: make sure that the range is [0, 1] exactly

Dima Kogan dima at secretsauce.net
Wed Sep 16 21:05:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

dkogan-guest pushed a commit to branch master
in repository vlfeat.

commit abdbb3980b06aaf65d7f6a219fd653bbcb440bb2
Author: Andrea Vedaldi <vedaldi at gmail.com>
Date:   Sat Oct 4 20:41:18 2014 +0100

    vl_imsc.m: make sure that the range is [0,1] exactly
---
 toolbox/imop/vl_imsc.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/toolbox/imop/vl_imsc.m b/toolbox/imop/vl_imsc.m
index 30956e7..c6a3871 100644
--- a/toolbox/imop/vl_imsc.m
+++ b/toolbox/imop/vl_imsc.m
@@ -17,3 +17,4 @@ end
 
 J = I - min(I(:)) ;
 J = J / max(J(:)) ;
+J = max(min(J, 1), 0) ;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/vlfeat.git



More information about the debian-science-commits mailing list