对于一张彩色图像image.jpg,通过opencv读取其灰度图,下面的方法正确的是()。
A: img = cv2.imread('image.jpg')gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY);
B: gray = cv2.imread('image.jpg',0);
C: gray = cv2.imread('image.jpg',1);
D: gray = cv2.imread('image.jpg',cv2.IMREAD_GRAYSCALE);
A: img = cv2.imread('image.jpg')gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY);
B: gray = cv2.imread('image.jpg',0);
C: gray = cv2.imread('image.jpg',1);
D: gray = cv2.imread('image.jpg',cv2.IMREAD_GRAYSCALE);
举一反三
- 在下列的 HTML 中,哪个可以插入图像?( ) A: <;img href="image.jpg"/>; B: <;image src="image.jpg"/>; C: <;img src="image.gif"/>; D: <;img>;image.jpg<;/img>;
- 1. For an image with 100 * 100 pixels, each pixel has 8-bits to express its gray scale.If the data volume of the compressed image is 40000 bits after Huffman coding , the compression ratio of the image is ( ). A: A. 4:1 B: B. 3:1 C: C. 1:2 D: D. 2:1
- The proper way to design a CV is to present the best image of an applicant but in accordance with job requirements.
- 工程上近似认为当τ达到什么时导热体已达到热平衡状态? A: τ=2ρcV/hA B: τ=3ρcV/hA C: τ=4ρcV/hA D: τ=5ρcV/hA
- ______ operation takes a single input image into a single output image in such a way that each output pixel's gray level depends only upon the gray level of the corresponding input pixel.