forked from neka-nat/cupoch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for all relevant components in test_package
- Loading branch information
Showing
5 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <cupoch/geometry/image.h> | ||
#include <cupoch/imageproc/sgm.h> | ||
#include <cupoch/io/class_io/image_io.h> | ||
|
||
using namespace cupoch; | ||
|
||
void testSGM() { | ||
auto limg = io::CreateImageFromFile("../../testdata/left.png")->CreateGrayImage(); | ||
auto rimg = io::CreateImageFromFile("../../testdata/right.png")->CreateGrayImage(); | ||
imageproc::SGMOption params(limg->width_, limg->height_); | ||
imageproc::SemiGlobalMatching sgm(params); | ||
auto disp = sgm.ProcessFrame(*limg, *rimg); | ||
disp->LinearTransform(255.0 / 127.0); | ||
} | ||
|
||
int main() { | ||
// Only testing that the code compiles and links. | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <cupoch/geometry/pointcloud.h> | ||
#include <cupoch/io/class_io/pointcloud_io.h> | ||
#include <cupoch/visualization/utility/draw_geometry.h> | ||
|
||
using namespace cupoch; | ||
|
||
void displayPointCloud() { | ||
auto pcd = io::CreatePointCloudFromFile("test.ply"); | ||
pcd->EstimateNormals(); | ||
visualization::DrawGeometries({pcd}); | ||
} | ||
|
||
int main() { | ||
// Only testing that the code compiles and links. | ||
return 0; | ||
} |