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
0
870
JuliaTokyo#8発表資料
JuliaImagesのちょっとした紹介
Daisuke Kato
October 22, 2018
Tweet
Share
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
340
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Exploring anti-patterns in Rails
aemeredith
2
290
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The Cult of Friendly URLs
andyhume
79
6.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
sira's awesome portfolio website redesign presentation
elsirapls
0
190
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Claude Code のすすめ
schroneko
67
220k
Un-Boring Meetings
codingconduct
0
220
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