osakana.factory - ã°ã¬ã¼ã¹ã±ã¼ã«ã®ã²ã¿ã¤RGB ã®å¹³åå¤ãç¨ãã ã°ã¬ã¼ã¹ã±ã¼ã«ã§ããä¸è¨ã®ãµã¤ããåèã«ããã¦ããã ãã¾ããã groovyã使ã£ã¦ãã¯ã»ã«æä½ãã¦ãã¾ãã ã¨ãã£ã¦ããç¹ã«javaã¨å¤ãããªãã³ã¼ãã«ãªã£ã¦ãã¾ã£ã¦ãã¾ããããã ã¡ãã£ã¨ãã¡ã¤ãã¦ã³ã¼ããã¿ãªããã¦ãã¾ãã¨ãã«ã¼ãã®å¦çã«çµ±ä¸ããªãã§ããã 1.åç´ã«RGB ã®å¹³åå¤ãç¨ããæ¹æ³ å¤æå¾ã®å¤ = (R + G + B)/3 ã§è¨ç®ãã¾ãã ä¸è¨ãgroovyã³ã¼ãã§ãã package fun.g.filter.grayscale; import fun.g.filter.IFilter; import com.jhlabs.image.GrayscaleFilter; public class grayscale implements IFilter{ public int[] fi
{{#tags}}- {{label}}
{{/tags}}