Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Adding depth and registration evaluation tools to examples directory #1477

Open
wants to merge 42 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
020263a
Porting depth eval tools to k4a repo requierments, using cmake
resuther-msft Jan 12, 2021
423d514
clangformat reformatting changes
resuther-msft Jan 12, 2021
1ae7eaa
Updating cmake files and some formatting in source code
resuther-msft Jan 12, 2021
9bb8864
Adding readme files to depth eval tools
resuther-msft Jan 12, 2021
99b0a01
updating tools readme files
resuther-msft Jan 12, 2021
ed17e47
Updates to cmakelists ad readme files
resuther-msft Jan 13, 2021
2314600
Adding plane pdf and json files
resuther-msft Jan 14, 2021
f8da160
Updating README and adding example files
resuther-msft Jan 14, 2021
45b4135
Updates to README
resuther-msft Jan 14, 2021
fc54e6c
Updates to README
resuther-msft Jan 14, 2021
2b22280
Updating REAEDME and example_images
resuther-msft Jan 14, 2021
8986a0a
Removing old plane files
resuther-msft Jan 14, 2021
5cb8a09
Adding updated plane files
resuther-msft Jan 14, 2021
ef69a40
Updating formatting of all README files
resuther-msft Jan 14, 2021
5b2fe2e
Updating main README
resuther-msft Jan 14, 2021
7a41ef0
Fixing plane.json to have latest format
resuther-msft Jan 22, 2021
f9cfc6d
Fixing all plane json files for consistancy
resuther-msft Jan 22, 2021
cf4e844
Updating kahelpers to use updated plane json format
resuther-msft Jan 22, 2021
eb521fb
Addressing PR revie comments; some README corrections and minor code …
resuther-msft Mar 18, 2021
9dd4a63
Adding edge case gaurds to kahelpers.cpp
resuther-msft Mar 18, 2021
d90a286
Adding one more edge case gaurd to kahelpers.cpp
resuther-msft Mar 18, 2021
7895fee
Updating main README
resuther-msft Mar 18, 2021
a4312e2
Updating README for collect tool, changes not reflected in previous c…
resuther-msft Mar 18, 2021
eabfcb3
Updating: Multiple changes not reflected in previous commits
resuther-msft Mar 18, 2021
43e6a60
Updating: Multiple changes not reflected in previous commits
resuther-msft Mar 18, 2021
efdb420
Updating status return
resuther-msft Mar 18, 2021
8c9d004
Updating README to reflect extra user steps needed when installing op…
resuther-msft Apr 1, 2021
50b378a
Updating README to reflect extra user steps needed when installing op…
resuther-msft Apr 1, 2021
3c3a3ad
Removing commented include files from source files
resuther-msft May 25, 2021
32c30da
Fixing clang-format errors
resuther-msft May 25, 2021
86e7cce
Fixing errors with few if statments {}
resuther-msft May 25, 2021
7bcc0b6
Correcting build errors in k4ahelpers
resuther-msft May 26, 2021
03fec04
Fixing aditional implicit type cast errors
resuther-msft May 26, 2021
64a1ce1
Resolving new clang format errors
resuther-msft May 26, 2021
e6df29d
Adding headder files for each tool, resolving linux build errors
resuther-msft May 28, 2021
9542dfa
Resolving warnings treated as errors
resuther-msft Aug 9, 2021
ef1ba8c
Fixing build warnings treated as errors
resuther-msft Aug 10, 2021
7f60273
Fixing more build warnings treated as errors
resuther-msft Aug 10, 2021
e0b6c38
Fixing implicit sign conversion build errors
resuther-msft Aug 10, 2021
998906a
Fixing unsigned long and int comparison error
resuther-msft Aug 10, 2021
84c382c
Addressing another signed conversion error
resuther-msft Aug 10, 2021
aff39ee
Fix implicit sign conversion
resuther-msft Aug 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/depth_eval_tools/collect/collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ void help()
"Usage:\n"
"./collect -h or -help or -? print this help message\n"
"./collect -mode=<depth mode> -res=<color resolution> -nv=<num of views> -nc=<num of captures per view> "
" -fps=<frame rate enum> -cal=<dump cal file> -xy=<dump xytable> -d=<capture depth> -i=<capture ir> -c=<capture color>"
" -fps=<frame rate enum> -cal=<dump cal file> -xy=<dump xytable> -d=<capture depth> -i=<capture ir> "
"-c=<capture color>"
" -out=<output directory>\n"
" -gg=<gray_gamma used to convert ir data to 8bit gray image. default=0.5>\n"
" -gm=<gray_max used to convert ir data to 8bit gray image. default=4000.0>\n"
Expand Down
3 changes: 1 addition & 2 deletions examples/depth_eval_tools/depth_eval/depth_eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,5 @@ int main(int argc, char **argv)
gray_percentile,
save_images);

return (stat) ? 0:1;

return (stat) ? 0 : 1;
}
4 changes: 2 additions & 2 deletions examples/depth_eval_tools/kahelpers/kahelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ bool write_calibration_blob(const std::vector<uchar> calibration_buffer,
std::ofstream ofs(file_name, std::ofstream::binary);
if (!ofs.is_open())
std::cout << "Error opening file";
return false;
return false;
resuther-msft marked this conversation as resolved.
Show resolved Hide resolved

ofs.write(reinterpret_cast<const char *>(&calibration_buffer[0]), calibration_buffer.size() - 1);
ofs.close();
Expand Down Expand Up @@ -465,7 +465,7 @@ void write_xy_table(const k4a::image &xy_table, const std::string output_dir, co

if (!ofsx.is_open() || !ofsy.is_open())
std::cout << "Error opening file";
return;
return;
resuther-msft marked this conversation as resolved.
Show resolved Hide resolved

// xy_table.
for (int y = 0; y < height; y++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,5 @@ int main(int argc, char **argv)
gray_percentile,
save_images);

return (stat) ? 0:1;

return (stat) ? 0 : 1;
}