MauiKit Image Tools
27#ifndef MYCROPLAYER_HPP
28#define MYCROPLAYER_HPP
30#include <opencv2/dnn.hpp>
31#include <opencv2/dnn/layer.details.hpp>
32#include <opencv2/dnn/shape_utils.hpp>
40class MyCropLayer :
public cv::dnn::Layer
43 explicit MyCropLayer(
const cv::dnn::LayerParams ¶ms);
44 static cv::Ptr<Layer> create(cv::dnn::LayerParams ¶ms);
45 virtual bool getMemoryShapes(
const std::vector<std::vector<int>> &inputs,
46 const int requiredOutputs,
47 std::vector<std::vector<int>> &outputs,
48 std::vector<std::vector<int>> &internals)
const CV_OVERRIDE;
49 virtual void forward(std::vector<cv::Mat *> &input,
50 std::vector<cv::Mat> &output,
51 std::vector<cv::Mat> &internals) CV_OVERRIDE;
52 virtual void forward(cv::InputArrayOfArrays inputs_arr,
53 cv::OutputArrayOfArrays outputs_arr,
54 cv::OutputArrayOfArrays internals_arr) CV_OVERRIDE;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:57:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.