Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JuliaTokyo#8発表資料
Search
Daisuke Kato
October 22, 2018
0
780
JuliaTokyo#8発表資料
JuliaImagesのちょっとした紹介
Daisuke Kato
October 22, 2018
Tweet
Share
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
15
2.6k
Building Your Own Lightsaber
phodgson
98
5.7k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
Happy Clients
brianwarren
91
6.4k
What's in a price? How to price your products and services
michaelherold
237
11k
Adopting Sorbet at Scale
ufuk
67
8.6k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Facilitating Awesome Meetings
lara
41
5.6k
Git: the NoSQL Database
bkeepers
PRO
422
63k
The Invisible Side of Design
smashingmag
294
49k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
990
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
Transcript
Juliaと画像処理理 加藤 ⼤大典 2018年年10⽉月20⽇日
⾃自⼰己紹介 • ~2016年年3⽉月 ⼤大阪⼤大学 • 視覚神経科学 • 2016年年4⽉月~2018年年3⽉月 • ソフトウェアベンダー
• 2018年年4⽉月~ • 医療検査機器器メーカー • MATLABときどきC/C++ • Pythonに初めて触る • これからは・・・ • 須⼭山さんの本でJuliaを知る • 黒⽊木さんに捕捉される 現在は組み込みソフトC/C++… ただ、医⽤用画像の分析業務もあるので…
医⽤用画像
Juliaと画像処理理 • Python / OpenCV • OpenCVのAPI叩くだけならとりあえずok • C/C++ /
OpenCV • コンパイルがめんどくさいなぁ← • Julia / JuliaImages • アルゴリズム書くのに便便利利そう • 画像データの扱いやすさは?
画像の表示は楽ちん 時間があればJupyter上のデモを少し・・・ using ImageView img |> imshow IJulia Atom
特徴的な部分その1 • 8bit depthなど画像は正規化された固定⼩小数点数で扱う • 値域[0, 1] • メリット:10bit depth画像も同じように表示できる
• 詳しくは -> FixedPointNumbers.jl N6f10 10bit使って[0, 1]を表す 残り6bitは整数部分 例例)
• ⾊色チャネルのサイズが裏に隠れてる • グレー画像とカラー画像を同じ関数で処理理できる • 制限1:加法が定義されていない⾊色空間(HSVなど)では動かない • 制限2:⽐比較演算が必要なアルゴリズム(medianフィルタなど) はグレー画像でしか動かない julia>
img = rand(RGB{N0f8}, 64, 64); julia> size(img) (64, 64) julia> imgv = channelview(img); julia> size(imgv) (3, 64, 64) 特徴的な部分その2