2019-01-01ãã1å¹´éã®è¨äºä¸è¦§
halideã®ãããã°ææ³ã«ã¤ãã¦ã®ãã¥ã¼ããªã¢ã«ã C++ãªãã¸ã§ã¯ãã¯èªèº«ã®ååãæããªãã®ã§ãFunc gradient("gradient")ã¨ããã¤ãã¦ããã ãã¤ãã©ã¤ã³ã®çä¼¼ã³ã¼ããçæãããã #include "Halide.h" #include <stdio.h> using namespace Halide; int main(int</stdio.h>â¦
æ¦è¦ libpngãç¨ãã¦å ¥åããç»åã«å¯¾ãã¦å¦çãå®è¡ãããã¥ã¼ããªã¢ã«ã å ¥åããç»åã®è¼åº¦ã1.5åããã Algorithmé¨åãåå²ï¼ã¯ã³ã©ã¤ã³ã§ã¯ãªãï¼ãã¦ããããã¨ãç´¹ä»ãã¦ããã // Halide tutorial lesson 2: Processing images // The only Halideâ¦
x+yã®å ç®é¢æ°ã¨ãç»åã®x座æ¨ã¨y座æ¨ã®indexãå ç®ãããã¹ããä½æãããã¥ã¼ããªã¢ã«ã ãªãã¸ããªã®ä¸ã®tutorialã®ã³ã¼ãã«ã¯ããããããã³ã¡ã³ãããã£ã±ãä¹ã£ã¦ããããè¦è¿ããããããã«æä½éåãé¨åãæãåºãã¦ã¿ãã æ¼ç®ãå®ç¾©ãã¦Funcã«ç»â¦
åèurl https://github.com/halide/Halide/tree/release_2017_05_03 Halideã®ãã©ã«ãã®ç´ä¸ã§llvmã¨clangããã«ããã¦ããhalideããã«ããããããã (Halideã®githubã¨ãã«ããæ¸ãã¦ãããå¥ã«ç´ä¸ã«ãããªãã¦ãããã®ã§ã¯ï¼ï¼ /opt/Halideã«ããããâ¦