The method is simple to to get Color Information of specific pixel coordinate in the OpenGL is simple.
glReadPixels function enables these task.
The example source code is as follows.
struct{ GLubyte red, green, blue; } pixelColor;
glReadPixels(int(i), int(j), 1, 1, GL_RGB, GL_UNSIGNED_BYTE, &pixelColor);
But the drawback is too slow and we can get exact color information after view rendering.
Thanks.
2/15/2012
(TIP) To get Color Information of specific pixel coordinate in the OpenGL
Subscribe to:
Post Comments (Atom)
-
CUDA_ARCH_BIN Table for gpu type Jetson Products GPU Compute Capability Jetson AGX Xavier 7.2 Jetson Nano 5.3 Jetson TX2 6.2 Jetson TX1 5.3 ...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
The latent SVM tells the learning method used in this paper -> "Discriminatively trained deformable part models". The authors s...
-
Put this cmd. git ls-files \ | xargs du -ch \ | grep total$ Thank you!
-
1. sudo apt update sudo apt install cmake 2. pip install cmake 3. pip install dlib
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
. # Warning: This will destroy your current history. # Ensure that you understand the consequences before running these commands. # Go to ...
-
In the YUV color format, Y is bright information, U is blue color area, V is red color area. Show the below picture. The picture is u-v col...
-
If there are 3 point(c, p1, p2), as shown in the above figure. This function got the angle between the two lines using inner product...
No comments:
Post a Comment