static MatrixOutput *make(const FileList &targetFiles, const FileList &queryFiles)

Make an MatrixOutput from lists of target and query files. This function calls Output::make using the string "Matrix". Output::make in turn calls initialize. Initialize calls initialize which should be overloaded by derived classes to handle initialization.

  • function definition:

    static MatrixOutput *make(const FileList &targetFiles, const FileList &queryFiles)
    
  • parameters:

    Parameter Type Description
    targetFiles const FileList & List of files representing the target templates
    queryFiles const FileList & List of files representing the query templates
  • output: (MatrixOutput *) Returns a pointer to the first output in the linked list

  • example:
    TemplateList targets = TemplateList() << Template("target1.jpg") << Template("target2.jpg") << Template("target3.jpg");
    TemplateList queries = TemplateList() << Template("query1.jpg") << Template("query2.jpg");
    
    MatrixOutput *output = MatrixOutput::make(targets, queries); // returns a pointer to a MatrixOutput