Skip to content

Load Image in tutorials #23378

@LaurentBerger

Description

@LaurentBerger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions