Files
unity-application/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Protobuf/Util/MotionModels.cs
2023-03-12 20:34:16 +00:00

2749 lines
95 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/tracking/motion_models.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/tracking/motion_models.proto</summary>
public static partial class MotionModelsReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/tracking/motion_models.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MotionModelsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CittZWRpYXBpcGUvdXRpbC90cmFja2luZy9tb3Rpb25fbW9kZWxzLnByb3Rv",
"EgltZWRpYXBpcGUiMAoQVHJhbnNsYXRpb25Nb2RlbBINCgJkeBgBIAEoAjoB",
"MBINCgJkeRgCIAEoAjoBMCJWCg9TaW1pbGFyaXR5TW9kZWwSDQoCZHgYASAB",
"KAI6ATASDQoCZHkYAiABKAI6ATASEAoFc2NhbGUYAyABKAI6ATESEwoIcm90",
"YXRpb24YBCABKAI6ATAiUQoVTGluZWFyU2ltaWxhcml0eU1vZGVsEg0KAmR4",
"GAEgASgCOgEwEg0KAmR5GAIgASgCOgEwEgwKAWEYAyABKAI6ATESDAoBYhgE",
"IAEoAjoBMCJjCgtBZmZpbmVNb2RlbBINCgJkeBgBIAEoAjoBMBINCgJkeRgC",
"IAEoAjoBMBIMCgFhGAMgASgCOgExEgwKAWIYBCABKAI6ATASDAoBYxgFIAEo",
"AjoBMBIMCgFkGAYgASgCOgExIpQBCgpIb21vZ3JhcGh5Eg8KBGhfMDAYASAB",
"KAI6ATESDwoEaF8wMRgCIAEoAjoBMBIPCgRoXzAyGAMgASgCOgEwEg8KBGhf",
"MTAYBCABKAI6ATASDwoEaF8xMRgFIAEoAjoBMRIPCgRoXzEyGAYgASgCOgEw",
"Eg8KBGhfMjAYByABKAI6ATASDwoEaF8yMRgIIAEoAjoBMCJKChdNaXh0dXJl",
"TGluZWFyU2ltaWxhcml0eRIvCgVtb2RlbBgBIAMoCzIgLm1lZGlhcGlwZS5M",
"aW5lYXJTaW1pbGFyaXR5TW9kZWwiNgoNTWl4dHVyZUFmZmluZRIlCgVtb2Rl",
"bBgBIAMoCzIWLm1lZGlhcGlwZS5BZmZpbmVNb2RlbCLQAQoRTWl4dHVyZUhv",
"bW9ncmFwaHkSJAoFbW9kZWwYASADKAsyFS5tZWRpYXBpcGUuSG9tb2dyYXBo",
"eRI+CgNkb2YYAiABKA4yKC5tZWRpYXBpcGUuTWl4dHVyZUhvbW9ncmFwaHku",
"VmFyaWFibGVET0Y6B0FMTF9ET0YiVQoLVmFyaWFibGVET0YSCwoHQUxMX0RP",
"RhAAEhMKD1RSQU5TTEFUSU9OX0RPRhABEhUKEVNLRVdfUk9UQVRJT05fRE9G",
"EAISDQoJQ09OU1RfRE9GEAM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TranslationModel), global::Mediapipe.TranslationModel.Parser, new[]{ "Dx", "Dy" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.SimilarityModel), global::Mediapipe.SimilarityModel.Parser, new[]{ "Dx", "Dy", "Scale", "Rotation" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LinearSimilarityModel), global::Mediapipe.LinearSimilarityModel.Parser, new[]{ "Dx", "Dy", "A", "B" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AffineModel), global::Mediapipe.AffineModel.Parser, new[]{ "Dx", "Dy", "A", "B", "C", "D" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Homography), global::Mediapipe.Homography.Parser, new[]{ "H00", "H01", "H02", "H10", "H11", "H12", "H20", "H21" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureLinearSimilarity), global::Mediapipe.MixtureLinearSimilarity.Parser, new[]{ "Model" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureAffine), global::Mediapipe.MixtureAffine.Parser, new[]{ "Model" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureHomography), global::Mediapipe.MixtureHomography.Parser, new[]{ "Model", "Dof" }, null, new[]{ typeof(global::Mediapipe.MixtureHomography.Types.VariableDOF) }, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Simple translational model:
/// I * x + [dx; dy] with I being 2x2 identity transform.
/// </summary>
public sealed partial class TranslationModel : pb::IMessage<TranslationModel>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<TranslationModel> _parser = new pb::MessageParser<TranslationModel>(() => new TranslationModel());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<TranslationModel> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TranslationModel() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TranslationModel(TranslationModel other) : this() {
_hasBits0 = other._hasBits0;
dx_ = other.dx_;
dy_ = other.dy_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TranslationModel Clone() {
return new TranslationModel(this);
}
/// <summary>Field number for the "dx" field.</summary>
public const int DxFieldNumber = 1;
private readonly static float DxDefaultValue = 0F;
private float dx_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dx {
get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } }
set {
_hasBits0 |= 1;
dx_ = value;
}
}
/// <summary>Gets whether the "dx" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDx {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "dx" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDx() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "dy" field.</summary>
public const int DyFieldNumber = 2;
private readonly static float DyDefaultValue = 0F;
private float dy_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dy {
get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } }
set {
_hasBits0 |= 2;
dy_ = value;
}
}
/// <summary>Gets whether the "dy" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDy {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "dy" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDy() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TranslationModel);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TranslationModel other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx);
if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasDx) {
size += 1 + 4;
}
if (HasDy) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TranslationModel other) {
if (other == null) {
return;
}
if (other.HasDx) {
Dx = other.Dx;
}
if (other.HasDy) {
Dy = other.Dy;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Non-linear similarity model (w.r.t. to its parametrization).
/// c_r := cos(rotation);
/// s_r := sin(rotation);
/// Transformation applied to x:
/// [scale 0; * [c_r -s_r; * x + [dx;
/// 0 scale] s_r c_r] dy]
/// </summary>
public sealed partial class SimilarityModel : pb::IMessage<SimilarityModel>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SimilarityModel> _parser = new pb::MessageParser<SimilarityModel>(() => new SimilarityModel());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SimilarityModel> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SimilarityModel() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SimilarityModel(SimilarityModel other) : this() {
_hasBits0 = other._hasBits0;
dx_ = other.dx_;
dy_ = other.dy_;
scale_ = other.scale_;
rotation_ = other.rotation_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SimilarityModel Clone() {
return new SimilarityModel(this);
}
/// <summary>Field number for the "dx" field.</summary>
public const int DxFieldNumber = 1;
private readonly static float DxDefaultValue = 0F;
private float dx_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dx {
get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } }
set {
_hasBits0 |= 1;
dx_ = value;
}
}
/// <summary>Gets whether the "dx" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDx {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "dx" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDx() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "dy" field.</summary>
public const int DyFieldNumber = 2;
private readonly static float DyDefaultValue = 0F;
private float dy_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dy {
get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } }
set {
_hasBits0 |= 2;
dy_ = value;
}
}
/// <summary>Gets whether the "dy" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDy {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "dy" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDy() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "scale" field.</summary>
public const int ScaleFieldNumber = 3;
private readonly static float ScaleDefaultValue = 1F;
private float scale_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Scale {
get { if ((_hasBits0 & 4) != 0) { return scale_; } else { return ScaleDefaultValue; } }
set {
_hasBits0 |= 4;
scale_ = value;
}
}
/// <summary>Gets whether the "scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasScale {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearScale() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "rotation" field.</summary>
public const int RotationFieldNumber = 4;
private readonly static float RotationDefaultValue = 0F;
private float rotation_;
/// <summary>
/// angle in [-pi, pi].
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Rotation {
get { if ((_hasBits0 & 8) != 0) { return rotation_; } else { return RotationDefaultValue; } }
set {
_hasBits0 |= 8;
rotation_ = value;
}
}
/// <summary>Gets whether the "rotation" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRotation {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "rotation" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRotation() {
_hasBits0 &= ~8;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SimilarityModel);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SimilarityModel other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Scale, other.Scale)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx);
if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy);
if (HasScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Scale);
if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasScale) {
output.WriteRawTag(29);
output.WriteFloat(Scale);
}
if (HasRotation) {
output.WriteRawTag(37);
output.WriteFloat(Rotation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasScale) {
output.WriteRawTag(29);
output.WriteFloat(Scale);
}
if (HasRotation) {
output.WriteRawTag(37);
output.WriteFloat(Rotation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasDx) {
size += 1 + 4;
}
if (HasDy) {
size += 1 + 4;
}
if (HasScale) {
size += 1 + 4;
}
if (HasRotation) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SimilarityModel other) {
if (other == null) {
return;
}
if (other.HasDx) {
Dx = other.Dx;
}
if (other.HasDy) {
Dy = other.Dy;
}
if (other.HasScale) {
Scale = other.Scale;
}
if (other.HasRotation) {
Rotation = other.Rotation;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
Scale = input.ReadFloat();
break;
}
case 37: {
Rotation = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
Scale = input.ReadFloat();
break;
}
case 37: {
Rotation = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Linear similarity model:
/// [a -b; * x + [dx;
/// b a] dy]
/// </summary>
public sealed partial class LinearSimilarityModel : pb::IMessage<LinearSimilarityModel>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LinearSimilarityModel> _parser = new pb::MessageParser<LinearSimilarityModel>(() => new LinearSimilarityModel());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<LinearSimilarityModel> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LinearSimilarityModel() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LinearSimilarityModel(LinearSimilarityModel other) : this() {
_hasBits0 = other._hasBits0;
dx_ = other.dx_;
dy_ = other.dy_;
a_ = other.a_;
b_ = other.b_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LinearSimilarityModel Clone() {
return new LinearSimilarityModel(this);
}
/// <summary>Field number for the "dx" field.</summary>
public const int DxFieldNumber = 1;
private readonly static float DxDefaultValue = 0F;
private float dx_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dx {
get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } }
set {
_hasBits0 |= 1;
dx_ = value;
}
}
/// <summary>Gets whether the "dx" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDx {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "dx" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDx() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "dy" field.</summary>
public const int DyFieldNumber = 2;
private readonly static float DyDefaultValue = 0F;
private float dy_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dy {
get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } }
set {
_hasBits0 |= 2;
dy_ = value;
}
}
/// <summary>Gets whether the "dy" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDy {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "dy" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDy() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "a" field.</summary>
public const int AFieldNumber = 3;
private readonly static float ADefaultValue = 1F;
private float a_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float A {
get { if ((_hasBits0 & 4) != 0) { return a_; } else { return ADefaultValue; } }
set {
_hasBits0 |= 4;
a_ = value;
}
}
/// <summary>Gets whether the "a" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasA {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "a" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearA() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "b" field.</summary>
public const int BFieldNumber = 4;
private readonly static float BDefaultValue = 0F;
private float b_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float B {
get { if ((_hasBits0 & 8) != 0) { return b_; } else { return BDefaultValue; } }
set {
_hasBits0 |= 8;
b_ = value;
}
}
/// <summary>Gets whether the "b" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasB {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "b" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearB() {
_hasBits0 &= ~8;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LinearSimilarityModel);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LinearSimilarityModel other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx);
if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy);
if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A);
if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasA) {
output.WriteRawTag(29);
output.WriteFloat(A);
}
if (HasB) {
output.WriteRawTag(37);
output.WriteFloat(B);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasA) {
output.WriteRawTag(29);
output.WriteFloat(A);
}
if (HasB) {
output.WriteRawTag(37);
output.WriteFloat(B);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasDx) {
size += 1 + 4;
}
if (HasDy) {
size += 1 + 4;
}
if (HasA) {
size += 1 + 4;
}
if (HasB) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LinearSimilarityModel other) {
if (other == null) {
return;
}
if (other.HasDx) {
Dx = other.Dx;
}
if (other.HasDy) {
Dy = other.Dy;
}
if (other.HasA) {
A = other.A;
}
if (other.HasB) {
B = other.B;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
A = input.ReadFloat();
break;
}
case 37: {
B = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
A = input.ReadFloat();
break;
}
case 37: {
B = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Affine according to
/// ( [a b * x + [dx;
/// ( c d] dy]
/// </summary>
public sealed partial class AffineModel : pb::IMessage<AffineModel>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AffineModel> _parser = new pb::MessageParser<AffineModel>(() => new AffineModel());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AffineModel> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AffineModel() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AffineModel(AffineModel other) : this() {
_hasBits0 = other._hasBits0;
dx_ = other.dx_;
dy_ = other.dy_;
a_ = other.a_;
b_ = other.b_;
c_ = other.c_;
d_ = other.d_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AffineModel Clone() {
return new AffineModel(this);
}
/// <summary>Field number for the "dx" field.</summary>
public const int DxFieldNumber = 1;
private readonly static float DxDefaultValue = 0F;
private float dx_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dx {
get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } }
set {
_hasBits0 |= 1;
dx_ = value;
}
}
/// <summary>Gets whether the "dx" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDx {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "dx" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDx() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "dy" field.</summary>
public const int DyFieldNumber = 2;
private readonly static float DyDefaultValue = 0F;
private float dy_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Dy {
get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } }
set {
_hasBits0 |= 2;
dy_ = value;
}
}
/// <summary>Gets whether the "dy" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDy {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "dy" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDy() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "a" field.</summary>
public const int AFieldNumber = 3;
private readonly static float ADefaultValue = 1F;
private float a_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float A {
get { if ((_hasBits0 & 4) != 0) { return a_; } else { return ADefaultValue; } }
set {
_hasBits0 |= 4;
a_ = value;
}
}
/// <summary>Gets whether the "a" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasA {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "a" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearA() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "b" field.</summary>
public const int BFieldNumber = 4;
private readonly static float BDefaultValue = 0F;
private float b_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float B {
get { if ((_hasBits0 & 8) != 0) { return b_; } else { return BDefaultValue; } }
set {
_hasBits0 |= 8;
b_ = value;
}
}
/// <summary>Gets whether the "b" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasB {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "b" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearB() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "c" field.</summary>
public const int CFieldNumber = 5;
private readonly static float CDefaultValue = 0F;
private float c_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float C {
get { if ((_hasBits0 & 16) != 0) { return c_; } else { return CDefaultValue; } }
set {
_hasBits0 |= 16;
c_ = value;
}
}
/// <summary>Gets whether the "c" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasC {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "c" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearC() {
_hasBits0 &= ~16;
}
/// <summary>Field number for the "d" field.</summary>
public const int DFieldNumber = 6;
private readonly static float DDefaultValue = 1F;
private float d_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float D {
get { if ((_hasBits0 & 32) != 0) { return d_; } else { return DDefaultValue; } }
set {
_hasBits0 |= 32;
d_ = value;
}
}
/// <summary>Gets whether the "d" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasD {
get { return (_hasBits0 & 32) != 0; }
}
/// <summary>Clears the value of the "d" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearD() {
_hasBits0 &= ~32;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AffineModel);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AffineModel other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(C, other.C)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(D, other.D)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx);
if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy);
if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A);
if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B);
if (HasC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(C);
if (HasD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(D);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasA) {
output.WriteRawTag(29);
output.WriteFloat(A);
}
if (HasB) {
output.WriteRawTag(37);
output.WriteFloat(B);
}
if (HasC) {
output.WriteRawTag(45);
output.WriteFloat(C);
}
if (HasD) {
output.WriteRawTag(53);
output.WriteFloat(D);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasDx) {
output.WriteRawTag(13);
output.WriteFloat(Dx);
}
if (HasDy) {
output.WriteRawTag(21);
output.WriteFloat(Dy);
}
if (HasA) {
output.WriteRawTag(29);
output.WriteFloat(A);
}
if (HasB) {
output.WriteRawTag(37);
output.WriteFloat(B);
}
if (HasC) {
output.WriteRawTag(45);
output.WriteFloat(C);
}
if (HasD) {
output.WriteRawTag(53);
output.WriteFloat(D);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasDx) {
size += 1 + 4;
}
if (HasDy) {
size += 1 + 4;
}
if (HasA) {
size += 1 + 4;
}
if (HasB) {
size += 1 + 4;
}
if (HasC) {
size += 1 + 4;
}
if (HasD) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AffineModel other) {
if (other == null) {
return;
}
if (other.HasDx) {
Dx = other.Dx;
}
if (other.HasDy) {
Dy = other.Dy;
}
if (other.HasA) {
A = other.A;
}
if (other.HasB) {
B = other.B;
}
if (other.HasC) {
C = other.C;
}
if (other.HasD) {
D = other.D;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
A = input.ReadFloat();
break;
}
case 37: {
B = input.ReadFloat();
break;
}
case 45: {
C = input.ReadFloat();
break;
}
case 53: {
D = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
Dx = input.ReadFloat();
break;
}
case 21: {
Dy = input.ReadFloat();
break;
}
case 29: {
A = input.ReadFloat();
break;
}
case 37: {
B = input.ReadFloat();
break;
}
case 45: {
C = input.ReadFloat();
break;
}
case 53: {
D = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Homography according to
/// [h_00 h_01 h_02;
/// h_10 h_11 h_12;
/// h_20 h_21 1];
/// Note: The parametrization with h_22 = 1 does not always hold, e.g.
/// if the origin (0, 0, 1) gets mapped to the line at infinity
/// (0, 0, 1). However for video we expect small perspective
/// changes between frames and this parametrization improves
/// robustness greatly as it removes an additional DOF.
/// Therefore, all methods in motion_stabilization should not be
/// used for general wide-baseline matching of frames.
/// </summary>
public sealed partial class Homography : pb::IMessage<Homography>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Homography> _parser = new pb::MessageParser<Homography>(() => new Homography());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Homography> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Homography() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Homography(Homography other) : this() {
_hasBits0 = other._hasBits0;
h00_ = other.h00_;
h01_ = other.h01_;
h02_ = other.h02_;
h10_ = other.h10_;
h11_ = other.h11_;
h12_ = other.h12_;
h20_ = other.h20_;
h21_ = other.h21_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Homography Clone() {
return new Homography(this);
}
/// <summary>Field number for the "h_00" field.</summary>
public const int H00FieldNumber = 1;
private readonly static float H00DefaultValue = 1F;
private float h00_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H00 {
get { if ((_hasBits0 & 1) != 0) { return h00_; } else { return H00DefaultValue; } }
set {
_hasBits0 |= 1;
h00_ = value;
}
}
/// <summary>Gets whether the "h_00" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH00 {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "h_00" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH00() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "h_01" field.</summary>
public const int H01FieldNumber = 2;
private readonly static float H01DefaultValue = 0F;
private float h01_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H01 {
get { if ((_hasBits0 & 2) != 0) { return h01_; } else { return H01DefaultValue; } }
set {
_hasBits0 |= 2;
h01_ = value;
}
}
/// <summary>Gets whether the "h_01" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH01 {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "h_01" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH01() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "h_02" field.</summary>
public const int H02FieldNumber = 3;
private readonly static float H02DefaultValue = 0F;
private float h02_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H02 {
get { if ((_hasBits0 & 4) != 0) { return h02_; } else { return H02DefaultValue; } }
set {
_hasBits0 |= 4;
h02_ = value;
}
}
/// <summary>Gets whether the "h_02" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH02 {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "h_02" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH02() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "h_10" field.</summary>
public const int H10FieldNumber = 4;
private readonly static float H10DefaultValue = 0F;
private float h10_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H10 {
get { if ((_hasBits0 & 8) != 0) { return h10_; } else { return H10DefaultValue; } }
set {
_hasBits0 |= 8;
h10_ = value;
}
}
/// <summary>Gets whether the "h_10" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH10 {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "h_10" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH10() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "h_11" field.</summary>
public const int H11FieldNumber = 5;
private readonly static float H11DefaultValue = 1F;
private float h11_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H11 {
get { if ((_hasBits0 & 16) != 0) { return h11_; } else { return H11DefaultValue; } }
set {
_hasBits0 |= 16;
h11_ = value;
}
}
/// <summary>Gets whether the "h_11" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH11 {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "h_11" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH11() {
_hasBits0 &= ~16;
}
/// <summary>Field number for the "h_12" field.</summary>
public const int H12FieldNumber = 6;
private readonly static float H12DefaultValue = 0F;
private float h12_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H12 {
get { if ((_hasBits0 & 32) != 0) { return h12_; } else { return H12DefaultValue; } }
set {
_hasBits0 |= 32;
h12_ = value;
}
}
/// <summary>Gets whether the "h_12" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH12 {
get { return (_hasBits0 & 32) != 0; }
}
/// <summary>Clears the value of the "h_12" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH12() {
_hasBits0 &= ~32;
}
/// <summary>Field number for the "h_20" field.</summary>
public const int H20FieldNumber = 7;
private readonly static float H20DefaultValue = 0F;
private float h20_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H20 {
get { if ((_hasBits0 & 64) != 0) { return h20_; } else { return H20DefaultValue; } }
set {
_hasBits0 |= 64;
h20_ = value;
}
}
/// <summary>Gets whether the "h_20" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH20 {
get { return (_hasBits0 & 64) != 0; }
}
/// <summary>Clears the value of the "h_20" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH20() {
_hasBits0 &= ~64;
}
/// <summary>Field number for the "h_21" field.</summary>
public const int H21FieldNumber = 8;
private readonly static float H21DefaultValue = 0F;
private float h21_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H21 {
get { if ((_hasBits0 & 128) != 0) { return h21_; } else { return H21DefaultValue; } }
set {
_hasBits0 |= 128;
h21_ = value;
}
}
/// <summary>Gets whether the "h_21" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH21 {
get { return (_hasBits0 & 128) != 0; }
}
/// <summary>Clears the value of the "h_21" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH21() {
_hasBits0 &= ~128;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Homography);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Homography other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H00, other.H00)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H01, other.H01)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H02, other.H02)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H10, other.H10)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H11, other.H11)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H12, other.H12)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H20, other.H20)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H21, other.H21)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasH00) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H00);
if (HasH01) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H01);
if (HasH02) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H02);
if (HasH10) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H10);
if (HasH11) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H11);
if (HasH12) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H12);
if (HasH20) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H20);
if (HasH21) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H21);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasH00) {
output.WriteRawTag(13);
output.WriteFloat(H00);
}
if (HasH01) {
output.WriteRawTag(21);
output.WriteFloat(H01);
}
if (HasH02) {
output.WriteRawTag(29);
output.WriteFloat(H02);
}
if (HasH10) {
output.WriteRawTag(37);
output.WriteFloat(H10);
}
if (HasH11) {
output.WriteRawTag(45);
output.WriteFloat(H11);
}
if (HasH12) {
output.WriteRawTag(53);
output.WriteFloat(H12);
}
if (HasH20) {
output.WriteRawTag(61);
output.WriteFloat(H20);
}
if (HasH21) {
output.WriteRawTag(69);
output.WriteFloat(H21);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasH00) {
output.WriteRawTag(13);
output.WriteFloat(H00);
}
if (HasH01) {
output.WriteRawTag(21);
output.WriteFloat(H01);
}
if (HasH02) {
output.WriteRawTag(29);
output.WriteFloat(H02);
}
if (HasH10) {
output.WriteRawTag(37);
output.WriteFloat(H10);
}
if (HasH11) {
output.WriteRawTag(45);
output.WriteFloat(H11);
}
if (HasH12) {
output.WriteRawTag(53);
output.WriteFloat(H12);
}
if (HasH20) {
output.WriteRawTag(61);
output.WriteFloat(H20);
}
if (HasH21) {
output.WriteRawTag(69);
output.WriteFloat(H21);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasH00) {
size += 1 + 4;
}
if (HasH01) {
size += 1 + 4;
}
if (HasH02) {
size += 1 + 4;
}
if (HasH10) {
size += 1 + 4;
}
if (HasH11) {
size += 1 + 4;
}
if (HasH12) {
size += 1 + 4;
}
if (HasH20) {
size += 1 + 4;
}
if (HasH21) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Homography other) {
if (other == null) {
return;
}
if (other.HasH00) {
H00 = other.H00;
}
if (other.HasH01) {
H01 = other.H01;
}
if (other.HasH02) {
H02 = other.H02;
}
if (other.HasH10) {
H10 = other.H10;
}
if (other.HasH11) {
H11 = other.H11;
}
if (other.HasH12) {
H12 = other.H12;
}
if (other.HasH20) {
H20 = other.H20;
}
if (other.HasH21) {
H21 = other.H21;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
H00 = input.ReadFloat();
break;
}
case 21: {
H01 = input.ReadFloat();
break;
}
case 29: {
H02 = input.ReadFloat();
break;
}
case 37: {
H10 = input.ReadFloat();
break;
}
case 45: {
H11 = input.ReadFloat();
break;
}
case 53: {
H12 = input.ReadFloat();
break;
}
case 61: {
H20 = input.ReadFloat();
break;
}
case 69: {
H21 = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
H00 = input.ReadFloat();
break;
}
case 21: {
H01 = input.ReadFloat();
break;
}
case 29: {
H02 = input.ReadFloat();
break;
}
case 37: {
H10 = input.ReadFloat();
break;
}
case 45: {
H11 = input.ReadFloat();
break;
}
case 53: {
H12 = input.ReadFloat();
break;
}
case 61: {
H20 = input.ReadFloat();
break;
}
case 69: {
H21 = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Mixture models with higher degrees of freedom, according to
/// \sum_i model(i) * weight(i), where weights are passed during transform and
/// are expected to sum to one.
/// </summary>
public sealed partial class MixtureLinearSimilarity : pb::IMessage<MixtureLinearSimilarity>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MixtureLinearSimilarity> _parser = new pb::MessageParser<MixtureLinearSimilarity>(() => new MixtureLinearSimilarity());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MixtureLinearSimilarity> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureLinearSimilarity() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureLinearSimilarity(MixtureLinearSimilarity other) : this() {
model_ = other.model_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureLinearSimilarity Clone() {
return new MixtureLinearSimilarity(this);
}
/// <summary>Field number for the "model" field.</summary>
public const int ModelFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.LinearSimilarityModel> _repeated_model_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.LinearSimilarityModel.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.LinearSimilarityModel> model_ = new pbc::RepeatedField<global::Mediapipe.LinearSimilarityModel>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.LinearSimilarityModel> Model {
get { return model_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MixtureLinearSimilarity);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MixtureLinearSimilarity other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!model_.Equals(other.model_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= model_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
model_.WriteTo(output, _repeated_model_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
model_.WriteTo(ref output, _repeated_model_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += model_.CalculateSize(_repeated_model_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MixtureLinearSimilarity other) {
if (other == null) {
return;
}
model_.Add(other.model_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
model_.AddEntriesFrom(input, _repeated_model_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
model_.AddEntriesFrom(ref input, _repeated_model_codec);
break;
}
}
}
}
#endif
}
public sealed partial class MixtureAffine : pb::IMessage<MixtureAffine>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MixtureAffine> _parser = new pb::MessageParser<MixtureAffine>(() => new MixtureAffine());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MixtureAffine> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureAffine() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureAffine(MixtureAffine other) : this() {
model_ = other.model_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureAffine Clone() {
return new MixtureAffine(this);
}
/// <summary>Field number for the "model" field.</summary>
public const int ModelFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.AffineModel> _repeated_model_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.AffineModel.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.AffineModel> model_ = new pbc::RepeatedField<global::Mediapipe.AffineModel>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.AffineModel> Model {
get { return model_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MixtureAffine);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MixtureAffine other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!model_.Equals(other.model_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= model_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
model_.WriteTo(output, _repeated_model_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
model_.WriteTo(ref output, _repeated_model_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += model_.CalculateSize(_repeated_model_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MixtureAffine other) {
if (other == null) {
return;
}
model_.Add(other.model_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
model_.AddEntriesFrom(input, _repeated_model_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
model_.AddEntriesFrom(ref input, _repeated_model_codec);
break;
}
}
}
}
#endif
}
public sealed partial class MixtureHomography : pb::IMessage<MixtureHomography>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MixtureHomography> _parser = new pb::MessageParser<MixtureHomography>(() => new MixtureHomography());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MixtureHomography> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureHomography() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureHomography(MixtureHomography other) : this() {
_hasBits0 = other._hasBits0;
model_ = other.model_.Clone();
dof_ = other.dof_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MixtureHomography Clone() {
return new MixtureHomography(this);
}
/// <summary>Field number for the "model" field.</summary>
public const int ModelFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.Homography> _repeated_model_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Homography.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.Homography> model_ = new pbc::RepeatedField<global::Mediapipe.Homography>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.Homography> Model {
get { return model_; }
}
/// <summary>Field number for the "dof" field.</summary>
public const int DofFieldNumber = 2;
private readonly static global::Mediapipe.MixtureHomography.Types.VariableDOF DofDefaultValue = global::Mediapipe.MixtureHomography.Types.VariableDOF.AllDof;
private global::Mediapipe.MixtureHomography.Types.VariableDOF dof_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.MixtureHomography.Types.VariableDOF Dof {
get { if ((_hasBits0 & 1) != 0) { return dof_; } else { return DofDefaultValue; } }
set {
_hasBits0 |= 1;
dof_ = value;
}
}
/// <summary>Gets whether the "dof" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDof {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "dof" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDof() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MixtureHomography);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MixtureHomography other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!model_.Equals(other.model_)) return false;
if (Dof != other.Dof) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= model_.GetHashCode();
if (HasDof) hash ^= Dof.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
model_.WriteTo(output, _repeated_model_codec);
if (HasDof) {
output.WriteRawTag(16);
output.WriteEnum((int) Dof);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
model_.WriteTo(ref output, _repeated_model_codec);
if (HasDof) {
output.WriteRawTag(16);
output.WriteEnum((int) Dof);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += model_.CalculateSize(_repeated_model_codec);
if (HasDof) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dof);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MixtureHomography other) {
if (other == null) {
return;
}
model_.Add(other.model_);
if (other.HasDof) {
Dof = other.Dof;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
model_.AddEntriesFrom(input, _repeated_model_codec);
break;
}
case 16: {
Dof = (global::Mediapipe.MixtureHomography.Types.VariableDOF) input.ReadEnum();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
model_.AddEntriesFrom(ref input, _repeated_model_codec);
break;
}
case 16: {
Dof = (global::Mediapipe.MixtureHomography.Types.VariableDOF) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the MixtureHomography message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
/// <summary>
/// Specifies which degree of freedom vary across mixture.
/// Can be used to implement several transformation functions quicker.
/// </summary>
public enum VariableDOF {
/// <summary>
/// All dof are variable.
/// </summary>
[pbr::OriginalName("ALL_DOF")] AllDof = 0,
/// <summary>
/// Only translation (h_02, h_12) varies.
/// </summary>
[pbr::OriginalName("TRANSLATION_DOF")] TranslationDof = 1,
/// <summary>
/// Translation (h_02, h_12), and skew-rotation
/// </summary>
[pbr::OriginalName("SKEW_ROTATION_DOF")] SkewRotationDof = 2,
/// <summary>
/// (h_01, h_10) vary.
/// </summary>
[pbr::OriginalName("CONST_DOF")] ConstDof = 3,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code