OpBackgroundSubtractor.h#

Fully qualified name: public/src/operator/include/OpBackgroundSubtractor.h

File members: public/src/operator/include/OpBackgroundSubtractor.h

/*
 * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
 *
 * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
 * property and proprietary rights in and to this material, related
 * documentation and any modifications thereto. Any use, reproduction,
 * disclosure or distribution of this material and related documentation
 * without an express license agreement from NVIDIA CORPORATION or
 * its affiliates is strictly prohibited.
 */

#ifndef PVA_SOLUTIONS_OPBACKGROUNDSUBTRACTOR_H
#define PVA_SOLUTIONS_OPBACKGROUNDSUBTRACTOR_H

#include <PvaOperator.h>
#include <PvaOperatorTypes.h>
#include <cupva_host_scheduling.h>
#include <nvcv/Image.h>
#include <nvcv/Status.h>

#ifdef __cplusplus
extern "C" {
#endif

NVCVStatus pvaBackgroundSubtractorCreate(NVCVOperatorHandle *handle, NVCVImageRequirements *imageRequirements,
                                         NVCVImageRequirements *maskRequirements, PVAGMMDataType gmmDataType);

#ifdef __cplusplus
}

NVCVStatus pvaBackgroundSubtractorSubmit(NVCVOperatorHandle handle, cupvaStream_t stream, NVCVImageHandle in,
                                         NVCVImageHandle outMask, NVCVImageHandle outBackgroundImage,
                                         float learningRate, float varThreshold, bool enableShadowDetection,
                                         uint8_t shadowPixelValue);

NVCVStatus pvaBackgroundSubtractorSubmit(NVCVOperatorHandle handle, cudaStream_t stream, NVCVImageHandle in,
                                         NVCVImageHandle outMask, NVCVImageHandle outBackgroundImage,
                                         float learningRate, float varThreshold, bool enableShadowDetection,
                                         uint8_t shadowPixelValue);

#endif // __cplusplus

#endif /* PVA_SOLUTIONS_OPBACKGROUNDSUBTRACTOR_H */