Closed amanchhaparia closed 2 years ago
@meshtag,
I have added BORDER_REPLICATE
boundary option which will run by default, but I am planning to add a CLI option to choose the boundary option. I have 2 doubts regarding it:
Thanks for your work @amanchhaparia !
In main.cpp, here what are the extra arguments apart from image_path and kernel?
I am not really sure, it might be redundant at this stage (should've documented its usage).
While benchmarking different boundary option, Here, I am bit stuck how to register/run particular benchmarking function based on the CLI argument. I would be great if you can provide bit of its insight.
Perhaps you can try this by creating a global flag in BuddyCorr2DBenchmark.cpp
, change this flag's value inside initializeBuddyCorr2D
based on provided CLI arguments. Then check this flag's value while registering the benchmark function.
@meshtag, Thanks for the guidance!
I have updated the conditional statement in main.cpp
, since the other arguments are maybe redundant.
PR is ready for review.
@meshtag, PR is updated as per the requested suggestions.
This PR intends to add the boundary option of
BORDER_REPLICATE
while benchmarking correlation2D.closes #31