All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.opencv.opencv_dnn.NormalizeBBoxLayer Maven / Gradle / Ivy

The newest version!
// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE

package org.bytedeco.opencv.opencv_dnn;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import org.bytedeco.opencv.opencv_core.*;
import static org.bytedeco.opencv.global.opencv_core.*;
import org.bytedeco.opencv.opencv_imgproc.*;
import static org.bytedeco.opencv.global.opencv_imgproc.*;

import static org.bytedeco.opencv.global.opencv_dnn.*;


    /**
     * \brief {@code  L_p } - normalization layer.
     * @param p Normalization factor. The most common {@code p = 1} for {@code  L_1 } -
     *          normalization or {@code p = 2} for {@code  L_2 } - normalization or a custom one.
     * @param eps Parameter {@code  \epsilon } to prevent a division by zero.
     * @param across_spatial If true, normalize an input across all non-batch dimensions.
     *                       Otherwise normalize an every channel separately.
     *
     * Across spatial:
     * 
{@code \[
     * norm = \sqrt[p]{\epsilon + \sum_{x, y, c} |src(x, y, c)|^p } \\
     * dst(x, y, c) = \frac{ src(x, y, c) }{norm}
     * \]}
* * Channel wise normalization: *
{@code \[
     * norm(c) = \sqrt[p]{\epsilon + \sum_{x, y} |src(x, y, c)|^p } \\
     * dst(x, y, c) = \frac{ src(x, y, c) }{norm(c)}
     * \]}
* * Where {@code x, y} - spatial coordinates, {@code c} - channel. * * An every sample in the batch is normalized separately. Optionally, * output is scaled by the trained parameters. */ @Namespace("cv::dnn") @NoOffset @Properties(inherit = org.bytedeco.opencv.presets.opencv_dnn.class) public class NormalizeBBoxLayer extends Layer { static { Loader.load(); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ public NormalizeBBoxLayer(Pointer p) { super(p); } public native float pnorm(); public native NormalizeBBoxLayer pnorm(float setter); public native float epsilon(); public native NormalizeBBoxLayer epsilon(float setter); public native @Cast("bool") @Deprecated boolean acrossSpatial(); public native NormalizeBBoxLayer acrossSpatial(boolean setter); public static native @Ptr NormalizeBBoxLayer create(@Const @ByRef LayerParams params); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy