Lanczosæ¡ç¸®ã¢ã«ã´ãªãºã ã®å®è£
åç
ç»åã®æ¡å¤§ç¸®å°ã¢ã«ã´ãªãºã ã¯ããã¤ãåå¨ãã¾ã
ã»ãã¢ã¬ã¹ããã¤ãã¼
ã»ãã¤ãªãã¢
ã»ãã¤ãã¥ã¼ããã¯
ã»Lanczos-2
ã»Lanczos-3
ãã®ä¸ã§çè«ä¸æãç¾ããã¨ããã¦ããã®ã¯Lanczos-3ã§ãããæ¼¢ã¯ã ã¾ã£ã¦ãã®æ¹æ³ãé¸ã¶ã¹ããªã®ã§ãããããã¤ãã®å®è£
ã§ã¯æ£ç¢ºãªè¨ç®ãããã¦ãããããã£ãããªãäºã«ãªã£ã¦ãã¾ãã
ãªã®ã§ä»åã¯ã§ããã ãæ£ç¢ºãªé«å質ãªç»åãç®æãã¦å®è£
ãã¦ã¿ã¾ããã
rubyã§ã
åççãªãã®ã¯ã³ãã©ã詳ããã§ãããããªããã°ãè¦ããããå§ã
http://gwaihir.hp.infoseek.co.jp/wiki.shtml?Lanczos%E9%96%A2%E6%95%B0%E3%81%AB%E3%82%88%E3%82%8B%E7%94%BB%E5%83%8F%E3%81%AE%E6%8B%A1%E5%A4%A7%E7%B8%AE%E5%B0%8F
åæ
ç»åã®ãã¯ã»ã«ãã¼ã¿ãåå¾ããªãã¨ãããªãã®ã ããç»åã®ãã³ã¼ãã¯å¥ã®è©±ãªã®ã§ãã¾ãä»åº¦ã«ãã¾ãã
ä»åã¯ç¡å§ç¸®ã®PPMå½¢å¼ã使ç¨ã
ããã¦PPMç»åãå¾ãããã«ImageMagickã使ã£ãã
convert test.jpg test.ppm
å®è£
ã¾ãã¯PPMãèªã¿æ¸ãããç°¡åãªã¯ã©ã¹ãã³ãã©
image.rb
ããã¦æ¡å¤§ç¸®å°ããã³ã¼ããã³ãã©
lanczos.rb
â»ãã®ã³ã¼ãã¯æç¶ãããã©ãã©æ¸ããã ããªä¸ã«ãã¨ã¦ã¤ããªãé
ãã®ã§å®ç¨æ§ã¯çç¡ã§ãã
æå¾ã«
é ãããrubyã§ãããããããªãã