Skip to content

Commit

Permalink
BUG: solve memory leak in rtkcheckimagequality
Browse files Browse the repository at this point in the history
  • Loading branch information
acoussat committed Apr 10, 2020
1 parent e7e4c8d commit 2a3eb59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
14 changes: 1 addition & 13 deletions applications/rtkcheckimagequality/rtkcheckimagequality.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,7 @@ MSE(typename TImage::Pointer reference, typename TImage::Pointer reconstruction)
int
main(int argc, char ** argv)
{

args_info_rtkcheckimagequality args_info;
cmdline_parser_rtkcheckimagequality_params args_params;
cmdline_parser_rtkcheckimagequality_params_init(&args_params);
args_params.print_errors = 1;
args_params.check_required = 1;
args_params.override = 1;
args_params.initialize = 1;
if (0 != cmdline_parser_rtkcheckimagequality_ext(argc, argv, &args_info, &args_params))
{
std::cerr << "Error in cmdline_parser_rtkcheckimagequality_ext" << std::endl;
exit(1);
}
GGO(rtkcheckimagequality, args_info);

constexpr unsigned int Dimension = 3;
using PixelType = float;
Expand Down
1 change: 1 addition & 0 deletions applications/rtkcheckimagequality/rtkcheckimagequality.ggo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package "rtkcheckimagequality"
purpose "Checks the MSE of a reconstructed image against a reference."

option "config" - "Config file" string no
option "reference" i "Reference volume" string multiple yes
option "reconstruction" j "Reconstructed volume" string multiple yes
option "threshold" t "MSE threshold" int multiple yes

0 comments on commit 2a3eb59

Please sign in to comment.