๐Ÿƒ๐Ÿป2. About Mat

Contents

2-1 : image, video

  • Image read, video read
  • ์˜์ƒ, ๋น„๋””์˜ค ์ฝ๊ธฐ

OpenCV Lecture - 2. AboutMat (1/9) : image, video load and show

2-2 : Mat basic functions

  • Mat copy, copyto, clone, range or region copy
  • LUT, LookUpTable, apply Color Map
  • Mat ์—์„œ Mat์œผ๋กœ ๋ณต์‚ฌํ•˜๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ๋ฒ• ์†Œ๊ฐœ

OpenCV Lecture - 2. AboutMat (2/9) : Mat Basic functions(copy, copyTo, clone, range and region copy)

๐Ÿ’ก cvtColor, FastLUT, copy, copyTo, clone, range, region

2-3 : pixel RGB structure

  • Image data structure
  • Index computing the desired x, y position in a one-dimensional array(B/W and color case)
  • ์˜์ƒ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ์— ๋Œ€ํ•œ ๊ธฐ๋ณธ ๊ฐœ๋… ์„ค๋ช…
  • ์˜์ƒ์—์„œ ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ์œ„์น˜์˜ ํ”ฝ์…€๊ฐ’์€ ์–ด๋–ป๊ฒŒ ๊ฐ€์ ธ์˜ค๋‚˜?

OpenCV Lecture - 2. AboutMat (3/9) : pixel rgb structure in image

2-4 : pixel access

  • How to access pixel data in Mat (using data, at operator)
  • Mat ๋ฐ์ดํ„ฐ ์ ‘๊ทผ ๋ฐฉ๋ฒ• (data, at์„ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•)

OpenCV Lecture - 2. AboutMat (4/9) : pixel access using data, at operator

2-5 : pixel access

  • How to access pixel data in Mat (using ptr, iterator operator)
  • Assignment #1
  • Mat ๋ฐ์ดํ„ฐ ์ ‘๊ทผ ๋ฐฉ๋ฒ• (data, at์„ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•)
  • ๊ณผ์ œ 2-1 !!

OpenCV Lecture - 2. AboutMat (5/9) : pixel access using ptr, iterator operator

๐Ÿ’ก ptr, iterator, data, at

2-6 : mat write

  • Image, video write
  • ์˜์ƒ, ๋น„๋””์˜ค ์“ฐ๊ธฐ(์ €์žฅ)

OpenCV Lecture - 2. AboutMat (6/9) : mat write to imge file

2-7 : linear algebra operation

  • Matrix, Vector operation
  • Matrix, Vector ์—ฐ์‚ฐ ์‚ดํŽด๋ณด์ž
  • inner product, cross product, vector, inverse, trace, determinant

OpenCV Lecture - 2. AboutMat (7/9) : linear algebra(inner/cross, inverse, trace, determinant)

2-8 : linear algebra operation

  • Matrix, Solve non-homogeneous equations
  • Matrix, eigenvalue, eigenvector
  • Matrix, SVD(Sigular Value Decomposition)
  • ๋น„๋™์ฐจ ๋ฐฉ์ •์‹ ํ•ด ๊ตฌํ•˜๊ธฐ
  • Matrix, ๊ณ ์œ ๊ฐ’, ๊ณ ์œ ๋ฒกํ„ฐ ๊ตฌํ•˜๊ธฐ
  • Matrix, SVD ๊ตฌํ•˜๊ธฐ

OpenCV Lecture - 2. AboutMat (8/9) : linear algebra operation( solver, eigen value, vector, SVD)

2-9 : gpuMat example

  • Understanding CPU and GPU differences
  • Studying GpuMat, Practice with Coding
  • Assignment 2-2, Bonus Challenge b-1 (difficult problem)
  • CPU, GPU ์ฐจ์ด ์•Œ๊ธฐ
  • GpuMat ๊ณต๋ถ€ํ•˜๊ธฐ, ์ฝ”๋”ฉ์œผ๋กœ ์‹ค์Šต
  • ๊ณผ์ œ 2-2!, ๋ณด๋„ˆ์Šค ๊ณผ์ œ b-1 (์–ด๋ ค์šด ๋ฌธ์ œ)

OpenCV Lecture - 2. AboutMat (9/9) : gpuMat example

Mat example source code

Linear Algebra Example source code

GpuMat Example source code

๐Ÿ™‡๐Ÿป Thank you!

๐ŸŽ Source code, Material(pdf) and example images ๐Ÿ‘‡
https://www.marearts.com/products/opencv-lecture-materials-1

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.