Split color channels -> RGB, HSI, YCbCr, YUV, YIQ, YUW / C++ source / 칼라 채널 분리

Created Date : 2007.8
Language : C/C++
Tool : Microsoft Visual C++ 6.0 (MFC)
Library & Utilized : -
Reference : Simplified approach to image processing book -Randy Crane-
etc. : Bmp Image File
                                            RGB                                                   YCbCr


 
                                            YIQ                                                      YUV

                                             HSI                                                       YUW    

This program splits the channel into several version.
There are many color channels for image processing such as RGB, HSI, YCbCr, YUV, YIQ, YUW.
Each channels is made by specific formula that is introduced from many image processing books. The method of covert is simple and not difficult.

For example YCbCr is made by blow formula.
Y = 0.299*R + 0.587*G + 0.114*B
Cb = -0.16874*R + -0.33126*G + 0.5*B
Cr = 0.5*R + -0.41869*G - 0.08131*B

You can download entire source code and report document(doc) but the report is written by korean (sorry). -> < here >

If you have any question or opinion for improving, please reply.
Thank you.

(Please understand my bad english ability. If you point out my mistake, I would correct pleasurably. Thank you!!)
-------------------------------------

이 프로그램은 bmp파일을 열어서 여러가지 채널로 분리하는 간단한 영상 처리 프로그램입니다.
색 채널 분리는 이미지 처리 책에서 쉽게 그 방법과 원리를 찾아 볼 수 있습니다.
예를 들어 RGB에서 YCbCr로 분리하는 방법은 아래 수식으로 가능합니다.

Y = 0.299*R + 0.587*G + 0.114*B
Cb = -0.16874*R + -0.33126*G + 0.5*B
Cr = 0.5*R + -0.41869*G - 0.08131*B


더 자세한 내용은 링크한 저의 전체 소스 코드를 첨부하세요.
압축 파일에는 한글로 된 보고서도 포함되어 있습니다. - > < here >

오래 전에 만든 소스라 부족함이 많을 것 같네요.
문제점이나 개선 사항 있으면 답변 주세요.
감사합니다.

Comments

Popular posts from this blog

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

OpenCV Stitching example (Stitcher class, Panorama)

AMP dose run on my pc?, AMP(Accelerated Massive Parallelism)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Optical Flow sample source code using OpenCV

Real-time N camera stitching Class.

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

OpenCV meanShiftFiltering example source code ( cpu: pyrMeanShiftFiltering, gpu:meanShiftFiltering, gpu:meanShiftSegmentation )

Image warping (using opencv findHomography, warpPerspective)

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)