Struct LetterboxInfo
- Namespace
- NT2I.ONNX.DataHandling.Cpu.Features
- Assembly
- NT2I.ONNX.DataHandling.Cpu.dll
Contient les informations géométriques calculées pour une opération de LetterBox.
public readonly struct LetterboxInfo : IEquatable<LetterboxInfo>
- Implements
- Inherited Members
Constructors
LetterboxInfo(int, int, int, int)
Contient les informations géométriques calculées pour une opération de LetterBox.
public LetterboxInfo(int ResizeWidth, int ResizeHeight, int OffsetX, int OffsetY)
Parameters
Properties
OffsetX
public int OffsetX { get; init; }
Property Value
OffsetY
public int OffsetY { get; init; }
Property Value
ResizeHeight
public int ResizeHeight { get; init; }
Property Value
ResizeWidth
public int ResizeWidth { get; init; }
Property Value
Methods
Deconstruct(out int, out int, out int, out int)
public void Deconstruct(out int ResizeWidth, out int ResizeHeight, out int OffsetX, out int OffsetY)
Parameters
Equals(LetterboxInfo)
public bool Equals(LetterboxInfo other)
Parameters
otherLetterboxInfo
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(LetterboxInfo, LetterboxInfo)
public static bool operator ==(LetterboxInfo left, LetterboxInfo right)
Parameters
leftLetterboxInforightLetterboxInfo
Returns
operator !=(LetterboxInfo, LetterboxInfo)
public static bool operator !=(LetterboxInfo left, LetterboxInfo right)
Parameters
leftLetterboxInforightLetterboxInfo