-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Load Image in tutorials #23378
Copy link
Copy link
Closed
Labels
Description
Descripe the feature and motivation
Some images are in tutorials but not in samples/data. findfiles cannot be used source code
example doc/tutorials/imgproc/histograms/back_projection/images
This sample could be changed :
int main( int argc, char* argv[] )
{
//! [Read the image]
CommandLineParser parser( argc, argv, "{@input |Back_Projection_Theory0.jpg | input image}" );
samples::addSamplesDataSearchSubDirectory("./doc/tutorials/imgproc/histograms/back_projection/images");
Mat src = imread(samples::findFile(parser.get<String>( "@input" )) );
Is it a good idea?
Additional context
No response
Reactions are currently unavailable