[arrayfire] 389/408: bug fix in image_editing example

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:37 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 3d7f26b2d25064c2b29fdafd6fe86de5aec66742
Author: pradeep <pradeep at arrayfire.com>
Date:   Fri Sep 11 19:06:50 2015 -0400

    bug fix in image_editing example
---
 examples/image_processing/image_editing.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/image_processing/image_editing.cpp b/examples/image_processing/image_editing.cpp
index 85b2f73..d765734 100644
--- a/examples/image_processing/image_editing.cpp
+++ b/examples/image_processing/image_editing.cpp
@@ -101,7 +101,7 @@ int main(int argc, char **argv)
 
         array man = loadImage(ASSETS_DIR "/examples/images/man.jpg", true);
         array fight = loadImage(ASSETS_DIR "/examples/images/fight.jpg", true);
-        array nature = loadImage(ASSETS_DIR "/examples/images/nature.jpg", true);
+        array nature = resize(loadImage(ASSETS_DIR "/examples/images/nature.jpg", true), fight.dims(0), fight.dims(1));
 
         array intensity = colorSpace(fight, AF_GRAY, AF_RGB);
         array mask = clamp(intensity, 10.0f, 255.0f)>0.0f;

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



More information about the debian-science-commits mailing list