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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Daisuke Kato
October 22, 2018
880
0
Share
JuliaTokyo#8発表資料
JuliaImagesのちょっとした紹介
Daisuke Kato
October 22, 2018
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Site-Speed That Sticks
csswizardry
13
1.2k
Embracing the Ebb and Flow
colly
88
5k
We Are The Robots
honzajavorek
0
220
A Tale of Four Properties
chriscoyier
163
24k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
540
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
Everyday Curiosity
cassininazir
0
200
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