Skip to Content
詳解 OpenCV 3 ―コンピュータビジョンライブラリを使った画像処理・認識
book

詳解 OpenCV 3 ―コンピュータビジョンライブラリを使った画像処理・認識

by Adrian Kaehler, Gary Bradski, 松田 晃一, 小沼 千絵, 永田 雅人, 花形 理
May 2018
Intermediate to advanced
992 pages
17h 31m
Japanese
O'Reilly Japan, Inc.
Content preview from 詳解 OpenCV 3 ―コンピュータビジョンライブラリを使った画像処理・認識

3章OpenCVのデータ型

3.1 基本

以降のいくつかの章では、OpenCVの基本データ型について見ていきます。プリミティブなものから、配列(画像や大きな行列など)を扱うために使われる大きめのデータ構造まであります。見ていく中で、これらのデータを便利に扱うための多彩な関数も取り上げます。本章では、基本のデータ型について学ぶことから取りかかり、ライブラリが提供している便利なユーティリティ関数を調べていきましょう。

3.2 OpenCVのデータ型

OpenCVにはたくさんのデータ型があります。それらはコンピュータビジョンの重要な概念を、比較的簡単かつ直感的な表現と取り扱いができるように設計されています。それと同時に、多くのアルゴリズム開発者たちは、開発者独自のニーズとして、汎用性や拡張性のある比較的強力なプリミティブを必要としています。本ライブラリでは、基本的なデータ型用のテンプレートを使い、かつ、そのテンプレートを特殊化してよく行う操作を簡単にすることで、これら両方のニーズに対処しようとしています。

構成的な観点から、データ型を3つの大きなカテゴリに分割すると便利です。1つ目は基本データ型で、C++のプリミティブ(intfloatなど)を直接集めた型です。これらの型には単純なベクトルや行列の他、点、長方形、サイズなどの単純な幾何学的概念を表したものもあります。2つ目のカテゴリは、より抽象的な概念を表したヘルパーオブジェクトです。ガベージコレクションを行うポインタクラスや、スライス処理に使われる範囲オブジェクト、終了基準のような抽象オブジェクトなどです。3つ目のカテゴリは、大型配列型と呼ばれるものです。大型配列型オブジェクトの基本的な目的は、プリミティブの、さらによくあるのは基本データ型の、配列やその他の集まりを格納することです。このカテゴリの花形は ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

入門 監視 ―モダンなモニタリングのためのデザインパターン

入門 監視 ―モダンなモニタリングのためのデザインパターン

Mike Julian, 松浦 隼人
詳解 iOS SDK 第4版 ―ワンランク上のiPhone/iPadプログラミング

詳解 iOS SDK 第4版 ―ワンランク上のiPhone/iPadプログラミング

Matt Neuburg, 武舎 広幸, 阿部 和也, 河村 政雄, 上西 昌弘, 福地 太郎
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9784873118376Other