Threshold and pixel intense [closed]

asked 2018-03-04 13:53:28 -0500

Cucchi gravatar image

updated 2018-03-04 14:19:40 -0500

I'm using a gray scale camera nd I am running threshold to remove some noise and this works well. When I want to look directly at a pixel location that is supposed to be a bright spot on the image, I get a very low reading. It's like my method to retrieve the data is improper. I'm using something like this (uchar = frame.at<uchar>(C,R). This should work and it runs, but the results cant be correct. I have used threshold like this threshold(frame, myframe,150,255,THRESH_TOZERO); To eliminate the noise, which leaves a bright line of light (LED). So the Threshold seems to do as advertised. but when I try to read at a known hot spot, i don't see the values representative. What could be incorrect with my method? I have also placed lines on my screen to help identify the hot spots and then write code to overlay the vector lines(cross hair). Also we are talking about 3mm square of light intensity that I can not see programatically. I'm not resizing my window or anything like that so I should be 1:1. Using uchar data = frame.at<uchar>(C,R). This is what is out there for answers to reading the pixel. Thank You

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-21 09:55:45.574297

Comments

1

uchar = frame.at<uchar>(C,R). -- welcome to row-col world !

berak gravatar imageberak ( 2018-03-04 13:55:06 -0500 )edit