LoginSignup
0
0

More than 5 years have passed since last update.

Juliaで画像の拡大縮小を行う

Last updated at Posted at 2016-10-14

概要

  • Julia で画像の拡大縮小を行います
  • 環境は version 0.4.6 です

Images.jl

$ julia
julia> Pkg.add("Images")
julia> Pkg.add("TestImages")

拡大縮小する

  • Images.imresize を使います
  • export はされていないようです
using Images, TestImages
img = testimage("mandrill")

half = Images.imresize(img, (width(img)>>1, height(img)>>1))
twice = Images.imresize(img, (width(img)<<1, height(img)<<1))
save("./half.png", half)
save("./twice.png", twice)
  • 拡大縮小された mandrill が保存されます
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0