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

ResizeWidth int
ResizeHeight int
OffsetX int
OffsetY int

Properties

OffsetX

public int OffsetX { get; init; }

Property Value

int

OffsetY

public int OffsetY { get; init; }

Property Value

int

ResizeHeight

public int ResizeHeight { get; init; }

Property Value

int

ResizeWidth

public int ResizeWidth { get; init; }

Property Value

int

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

ResizeWidth int
ResizeHeight int
OffsetX int
OffsetY int

Equals(LetterboxInfo)

public bool Equals(LetterboxInfo other)

Parameters

other LetterboxInfo

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LetterboxInfo, LetterboxInfo)

public static bool operator ==(LetterboxInfo left, LetterboxInfo right)

Parameters

left LetterboxInfo
right LetterboxInfo

Returns

bool

operator !=(LetterboxInfo, LetterboxInfo)

public static bool operator !=(LetterboxInfo left, LetterboxInfo right)

Parameters

left LetterboxInfo
right LetterboxInfo

Returns

bool