File tree 4 files changed +7
-16
lines changed
4 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ find_package(Open3D HINTS /home/dinhnambkhn/open3d_install/lib/cmake)
8
8
9
9
find_package (OpenCV)
10
10
include_directories (${OpenCV_INCLUDE_DIRS} )
11
+ message (STATUS "OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS} " )
12
+ message (STATUS "OpenCV_LIBRARIES: ${OpenCV_LIBRARIES} " )
11
13
12
14
if (NOT Open3D_FOUND)
13
15
message (FATAL_ERROR "Open3D not found, please use -DCMAKE_INSTALL_PREFIX=open3d_install_dir" )
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ int main() {
52
52
auto option = open3d::pipelines::odometry::OdometryOption ();
53
53
auto odom_init = Eigen::Matrix4d::Identity ();
54
54
// print option
55
- std::cout << " max_depth_: " << option.max_depth_ << std::endl;
56
- std::cout << " min_depth_: " << option.min_depth_ << std::endl;
57
- std::cout << " max_depth_diff_: " << option.max_depth_diff_ << std::endl;
55
+ std::cout << " max_depth_: " << option.depth_max_ << std::endl;
56
+ std::cout << " min_depth_: " << option.depth_min_ << std::endl;
57
+ std::cout << " max_depth_diff_: " << option.depth_diff_max_ << std::endl;
58
58
59
59
// begin counting time
60
60
auto start = std::chrono::system_clock::now ();
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ int main() {
23
23
Eigen::Matrix4d transformation;
24
24
// set identity matrix
25
25
transformation.setIdentity ();
26
- // rotate around x axis
26
+ // rotate around x- axis
27
27
transformation (0 , 0 ) = 1 ;
28
28
transformation (1 , 1 ) = cos (M_PI / 4 );
29
29
transformation (1 , 2 ) = -sin (M_PI / 4 );
Original file line number Diff line number Diff line change 11
11
int main () {
12
12
// read image file
13
13
open3d::geometry::Image image;
14
- open3d::io::ReadImage (" lena_color.jpg" , image);
14
+ open3d::io::ReadImage (" /home/dinhnambkhn/Open3D/examples/test_data/ lena_color.jpg" , image);
15
15
// check image is empty or not
16
16
if (image.IsEmpty ()) {
17
17
std::cout << " Image is empty" << std::endl;
@@ -21,17 +21,6 @@ int main() {
21
21
22
22
// create a share d pointer of image
23
23
std::shared_ptr<open3d::geometry::Image> image_ptr = std::make_shared<open3d::geometry::Image>(image);
24
- // read image file opencv
25
- cv::Mat image_cv;
26
- image_cv = cv::imread (" lena_color.jpg" );
27
- // convert to gray scale
28
- cv::Mat image_gray;
29
- cv::cvtColor (image_cv, image_gray, cv::COLOR_BGR2GRAY);
30
- // show color image and gray image
31
- cv::imshow (" color image" , image_cv);
32
- cv::imshow (" gray image" , image_gray);
33
- cv::waitKey (0 );
34
-
35
24
// draw the image_ptr
36
25
open3d::visualization::DrawGeometries ({image_ptr});
37
26
You can’t perform that action at this time.
0 commit comments