creating 3D plot and save them as openCV mat image in c++ - c++

I have 3d data (x,y,z) and I want to plot them as a 3d plot and have them as an OpenCV mat.
my question:
I noted that OpenCV has a viz extension, but I believe it is for visualization. Can I use it for creating a mat file from a plot?
Is there any way that I can do this with OpenCV?
if I can not do this with OpenCV? what other library exists to help me do this?
I am developing C++ on windows.

Related

Plot an image/matrix in wxWidgets

What's the simplest way to plot an image or matrix in wxWidgets? I've used wxMathPlot for simple y-vs-x scatter or line plots, but what if my data is an image?
I've seen libraries that integrate OpenGL with wxWidgets such as https://wiki.wxwidgets.org/WxGLCanvas - are there any alternatives?

Warping : Opencv for image display to curved screen with visual studio

I'm trying to use opencv APIs to warp image so that to dispaly it to a curved screen.
I have gone through the warping apis provided in opencv here.
But all APIS require the camera calibration matrix(K) and the rotation matrix(R).
But my images does not depend on a camera as im not correcting any distortion.
So can someone help me how achieve this kind of warping so that image can be better displayed on a curved screen.
I am using visual studio with opencv library in C++.
My input image will be like this
and output needs to like this
And i have to use opencv apis.
The above shape I have achieved through the code from here
Please give some suggestions.....

Opencv Images Orthorectification

I'm writing a program in opencv that stitches aerial images taken by a drone. The problem is that the stitch,after a certain point, start to "curving", so my homography matrix will be messed up and I can't stitch anything more.
There's a way in openv to do images orthorectivication without gps or DEM parameters? If not in opencv, there's a library easily integrable with opencv?
Thanks!
PS: I'm programming in C++

Converting pointcloud2 data to opencv image

I am trying to convert data obtained from a 2D laser scanner into an openCV image. On searching online for this, I found that first I had to convert the laserscan data to pointcloud2, then the pointcloud2 to a ROS image and then the ROS image to an opencv image.
Currently, I do not have access to a lidar, so I had created a node that publishes fake pointcloud2 data. However, I did not understand what organised pointcloud means. I arbitrarily set the height and width parameters to 100 each, and also assigned arbitrary RGB values to points, and I got a 100x100 image, but I do not understand how that image is a representation of my pointcloud data.
Can someone please explain it?
I guess you are using OpenCV and PCL to develop ROS under ubuntu, for pcl::PointCloud2 is ROS point cloud format.
Organised pointcloud difinition:http://pointclouds.org/documentation/tutorials/basic_structures.php#basic-structures
I did some task on point cloud and OpenCV image and always convert point cloud to OpenCV Mat. So I can give you some suggestions.
My develop environment is PCL1.7.2, OpenCV2.4.9, Kinect v2, VS2012 under win8.1. I want to convert project point cloud onto the ground plane and transfer it into an 2D image (OpenCV Mat), you can check my another solution here and here.

C++ Program with GUI to capture using remotely placed camera and read uncompressed TIFF Image

I want to do this operations using C++ on image:
Image Frame1 is used for displaying Original Image
and Image Frame 2 is used for displaying the action performed.
Sharpen the Image
Convolution(overloading: FFT,
Other)
Blur the Image (Programmable
rectangular Seed)
Histogram
•Programmable image Contrast and Brightness
Mean and Standard Deviation of Image
Rotate image by programmable angle
PDF of a Signal acquired through
ADC
You can do it with QT and OpenCV combination. I used QT+OpenCV combination on still images. You can easily create GUI's with QT and with OpenCV you can make video capture and other image processing approaches on each frame.