Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • f09b485
  • /
  • tests
  • /
  • OxTestImage.h
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:d0d37ca41e45ef9f82580fe5f92ed0ba6550f424
directory badge Iframe embedding
swh:1:dir:ef7d3738cbd07b4664a3ef264e4187e7ba4e4bba
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
OxTestImage.h
/*!
 * \file OxTestImage.h
 * \author Konrad Werys
 * \date 2018/07/30
 */

#ifndef Tomato_OXTESTImage_H
#define Tomato_OXTESTImage_H

#include "OxTestData.h"


namespace Ox {

    template< typename MeasureType >
    class TestImage {

    public:

        TestImage(int nCols, int nRows, std::vector <std::string> filesPaths, std::vector<int> invTimesOrder);
        TestImage(int nCols, int nRows, std::vector <std::string> filesPaths);
        virtual ~TestImage();

        int init(int nCols, int nRows, std::vector <std::string> filesPaths, std::vector<int> invTimesOrder);

        virtual MeasureType *getInvTimesPtr() ;
        virtual std::vector<MeasureType> getInvTimes() const;

        virtual MeasureType *getImageMagPtr() const;
        virtual MeasureType *getImagePhaPtr() const;
        virtual MeasureType *getImageResultsMolliPtr() const;
        virtual MeasureType *getImageResultsShmolliPtr() const;

        virtual int getNCols() const { return _nCols; }
        virtual int getNRows() const { return _nRows; }
        virtual int getNSamples() const { return _nSamples; }

    protected:

        int _nCols;
        int _nRows;
        int _nSamples;

        std::vector<MeasureType> _invTimes;
        std::vector<int> _invTimesOrder;

        MeasureType *_imageMag; // nRows * nCols * nSamples, address [iRow][iCol][iSam] iSample * (nRows*nCols) + iCol * nRows + iRow
        MeasureType *_imagePha; // nRows * nCols * nSamples, address [iRow][iCol][iSam] iSample * (nRows*nCols) + iCol * nRows + iRow

        MeasureType *_imageResultsMolli; // nCols * nRows * 3
        MeasureType *_imageResultsShmolli; // nCols * nRows * 3

    };
} // namespace Ox

#include "OxTestImage.hxx"

#endif //Tomato_OXTESTImage_H

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top