본문 바로가기

Manduss life

검색하기
Manduss life
프로필사진 만두쓰

  • 분류 전체보기 (98)
    • 일상 (3)
      • 설교말씀 (1)
      • 일기 (2)
    • 전산 (87)
      • OpenCV (2)
      • MVG (2)
      • Algorithm (62)
      • Deep Learning (11)
      • Math (2)
      • Python (2)
    • 논문 (2)
    • 영어 (5)
      • OPIC (4)
      • 쉐도잉 (1)
    • 면접 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록전산/OpenCV (2)

Manduss life

[OpenCV] 픽셀 접근/Vec3b, uchar type

픽셀 접근colorimg.at(i, j)[0] ==> colorimg의 (i, j) 픽셀의 blue 값colorimg.at(i, j)[1] ==> colorimg의 (i, j) 픽셀의 green 값colorimg.at(i, j)[2] ==> colorimg의 (i, j) 픽셀의 red 값 grayimg.at(i, j) ==> grayimg의 (i, j) 픽셀 값 RGB 영상Vec3b는 3개의 uchar 벡터이다. uchar type은 8bit(0~255)를 가진다. Grayscale 영상 uchar type (0~255)

전산/OpenCV 2019. 1. 24. 01:27
[OpenCV] 비트

8bit -> 2의 8승 = 256, unsigned면 0~255값을 가짐 char -> 1byte(8bit) , -128 ~ 127uchar -> 1byte(8bit), 0 ~ 255 16bit -> 2의 16승 = 65536 ushort -> 2byte(16bit), 0 ~ 65535short -> 2byte(16bit), -32768 ~ 32767 32bitint -> 4byte(32bit), -2147483648 ~ 2147483647float -> 4byte(32bit) 여기서 왜 int와 float는 같은 4byte인데 표현가능한 수의 범위가 차이가 날까? (int는 42억 남짓, float는 0이 38개나 붙는 어마어마한 수 표현 가능)-> 답은 비트구조가 다름에 있다 float는 부호비트 ..

전산/OpenCV 2019. 1. 24. 01:15
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바