Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 53 articles
Browse latest View live
↧

VideoCapture with grayscale camera

Hello I´m begginer on OpenCv I have a grayscale video camera ELP-USBFHD01M-SFV B/W, 120fps at 480 pixels with picture format MJPEG and YUY2 I need to capture an image almost at 60 FPS. One of my jobs...

View Article


How are RGB images converted to greyscale?

Given 3 images of pure red, pure green, and pure blue, once converted to greyscale I was surprised to find they're not the same shade of grey. I suspect this is the desired behaviour and my initial...

View Article


Is it possible to create a BGR image from predefined 3 (1-channel) image

I am trying to create 1 CV_8UC3 image from 3 different CV_8UC1 images that I already have, i.e I am trying to allocate the different single channel images that I already have into a single 1...

View Article

image not converting to binary in simpleblob detect

How do I convert a native grey scale image to binary using simpleblob. For me, it doesn't appear so simple. My camera pulls in gray scale images named rawImage. Then a few operations are formed in...

View Article

why load an image with input 0 gives a different result that converting the...

#In Open CV with python, I wrote the following script: import numpy as np import cv2 '''Compare imread( 'detect_blob.png',0) with imread('detect_blob.png',1) and convert to gray scale''' #Method 1 img...

View Article


Open CV Error: Assertion failed (scn ==2 && depth == CV_8U) in cvtColor

Hi all, I'm trying to read a 16-bit float exr image and convert it into grayscale for further image processing using **openCV in python 2.7,** however I encounter the above error "**OpenCV Error:...

View Article

grayscale image pixel-based detect object

I would like to know if opencv allows to detect objects of grayscale image according to their pixel intensities.For example, for the same image, white pixel objects (255), black pixel objects (0) and...

View Article

Failing to read pixel of grayscale image as float

I am trying read\write pixels of a grayscale image as floats but get an exception no matter what I do. Can someone please show me how it's suppose to be done?

View Article


Why at() return 3 values for a grayscale image

Why the grayscale image has 1 channel but still need 'Vec3b' to access the pixel value? And why there should be 3 different values. char* imageName = argv[1]; Mat image; image = imread(imageName, 1);...

View Article


Create 2 channel image - grayscale and alpha

I wish to create a 2-channel png image - 1 channel would be grayscale and 1 channel would be alpha (the bit depth doesn't concern me). I have developed a workaround to achieve this, but this is...

View Article

Grayscale image conversion error in eclipse

I created an eclipse project according to the instructions found in [here](http://docs.opencv.org/3.0-beta/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html#linux-eclipse-usage), and...

View Article

Metal Edge Defect Detection

Hi, Need help in finding defects in metal(steel or aluminum) edge. Images are in gray scale, with edge in black background. If there is an impression formed by the improper cut of the edge, the images...

View Article

custom grayscale conversion

I'm trying to improve my edge detection and found out, what is logical: some edges are detected better in the red channel, others in the green etc. I would like to use only one Canny-call and not three...

View Article

Browsing all 53 articles
Browse latest View live