Skip to content
Snippets Groups Projects
Commit 00fb805f authored by NicolaCovallero's avatar NicolaCovallero
Browse files

minor changes

parent 90658bda
No related branches found
No related tags found
No related merge requests found
trunk/bin/img0.jpg

7.5 KiB

trunk/bin/img1.jpg

14 KiB

trunk/bin/img2.jpg

9.92 KiB

trunk/bin/img3.jpg

8.79 KiB

trunk/bin/img4.jpg

16.2 KiB

trunk/bin/img5.jpg

9.44 KiB

trunk/bin/original.jpg

103 KiB

No preview for this file type
No preview for this file type
...@@ -139,6 +139,9 @@ main (int argc, char ** argv) ...@@ -139,6 +139,9 @@ main (int argc, char ** argv)
if(cloud->isOrganized())//if the point cloud is organized we can work with the RGB image if(cloud->isOrganized())//if the point cloud is organized we can work with the RGB image
{ {
std::cout << "You are now viewing the RGB image (recovered by the point cloud)."
<< " Press whatever key to go further.";
// recover the RGB IMAGE from the point cloud // recover the RGB IMAGE from the point cloud
cv::Mat img_orignal(480, 640, CV_8UC3); //create an image ( 3 channels, 8 bit image depth); cv::Mat img_orignal(480, 640, CV_8UC3); //create an image ( 3 channels, 8 bit image depth);
...@@ -161,10 +164,11 @@ main (int argc, char ** argv) ...@@ -161,10 +164,11 @@ main (int argc, char ** argv)
} }
} }
cv::namedWindow("Original", CV_WINDOW_AUTOSIZE); //create a window with the name "MyWindow" cv::namedWindow("Original", CV_WINDOW_AUTOSIZE); //create a window with the name "MyWindow"
cv::imshow("Original", img_orignal); //display the image which is stored in the 'img' in the "MyWindow" window cv::imshow("Original", img_orignal); //display the image which is stored in the 'img' in the "MyWindow" window
std::cout << "You are now viewing the RGB image (recovered by the point cloud)."
<< " Press whatever key to go further.";
cv::imwrite( "./original.jpg", img_orignal ); cv::imwrite( "./original.jpg", img_orignal );
cv::waitKey(0); cv::waitKey(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment