Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Pad image border with OpenCV. 
/// </summary>
/// <param name="data">source image</param>
/// <param name="top">Top margin.</param>
/// <param name="bot">Bottom margin.</param>
/// <param name="left">Left margin.</param>
/// <param name="right">Right margin.</param>
/// <param name="type">Filling type (default=cv2.BORDER_CONSTANT).</param>
/// <param name="values">Fill with value(RGB[A] or gray), up to 4 channels.</param>
/// <returns>returns new symbol</returns>
Pad image border with OpenCV.
Pad image border with OpenCV .
public static NDArray CvcopyMakeBorder(Symbol data,
        int top,
        int bot,
        int left,
        int right,
        int type = 0,
        Tuple<double> values = null)
        {
            return new Operator("_cvcopyMakeBorder")
            .SetParam("data", data)
            .SetParam("top", top)
            .SetParam("bot", bot)
            .SetParam("left", left)
            .SetParam("right", right)
            .SetParam("type", type)
            .SetParam("values", values)
            .Invoke();
        }
public static NDArray CvcopyMakeBorder ( Symbol data , int top , int bot , int left , int right , int type = 0 , Tuple < double > values = null ) { return new Operator ( " " ) . SetParam ( " " , data ) . SetParam ( " " , top ) . SetParam ( " " , bot ) . SetParam ( " " , left ) . SetParam ( " " , right ) . SetParam ( " " , type ) . SetParam ( " " , values ) . Invoke ( ) ; }
Pad image border with OpenCV.
Pad image border with OpenCV .
returns new symbol
returns new symbol
data
Symbol
None
top
int
None
bot
int
None
left
int
None
right
int
None
type
int
Filling type (default=cv2.BORDER_CONSTANT).
Filling type ( default = cv2 . BORDER_CONSTANT ) .
values
Tuple<double>
Fill with value(RGB[A] or gray), up to 4 channels.
Fill with value ( RGB [ A ] or gray ) up to 4 channels .