Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Opencv reads ENVI standard format
Opencv reads ENVI standard format
BGR format.

OpenCv provides VideoCapture class and VideoWrite class to support video files in various formats. The supported format types vary from system to system. Before reaching the end of the video, VideoCapture obtains new frames through the read function, and each frame is an image with a given BGR format. You can pass the image to the write function of the VideoWrite class, which will write the image to the specified file. The following is an example, which reads a frame of an AVI file and writes it into another frame with YUV color coding.

HSV also represents pixels in the same way as RGB, and each integer vector represents a B, G and R channel respectively. Other color spaces also represent pixels in the same way, except that the chromaticity value range of HSV color space is 0- 180, and the value range and the number of channels are different.