Skip to content

DiGi.GIS.Emgu.CV.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.GIS.Emgu.CV.Classes Namespace

Classes

OrtoDataComparison Class

Represents a comparison of orthophoto data, containing the date of comparison and associated image comparison groups.

public class OrtoDataComparison : DiGi.Core.Classes.SerializableObject, DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObject → OrtoDataComparison

Implements DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Constructors

OrtoDataComparison(OrtoDataComparison) Constructor

Initializes a new instance of the OrtoDataComparison class by copying another OrtoDataComparison instance.

public OrtoDataComparison(DiGi.GIS.Emgu.CV.Classes.OrtoDataComparison ortoDataComparison);

Parameters

ortoDataComparison OrtoDataComparison

The source comparison object to copy from.

OrtoDataComparison(DateTime, IEnumerable<OrtoImageComparisonGroup>) Constructor

Initializes a new instance of the OrtoDataComparison class.

public OrtoDataComparison(System.DateTime dateTime, System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoImageComparisonGroup> ortoImageComparisonGroups);

Parameters

dateTime System.DateTime

The date and time when the comparison was performed.

ortoImageComparisonGroups System.Collections.Generic.IEnumerable<OrtoImageComparisonGroup>

A collection of orthophoto image comparison groups.

OrtoDataComparison(JsonObject) Constructor

Initializes a new instance of the OrtoDataComparison class from a System.Text.Json.Nodes.JsonObject.

public OrtoDataComparison(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the comparison data.

Properties

OrtoDataComparison.DateTime Property

Gets the date and time when the orthophoto data comparison was performed.

public System.DateTime DateTime { get; }

Property Value

System.DateTime

OrtoDataComparison.OrtoImageComparisonGroups Property

Gets or sets the collection of orthophoto image comparison groups associated with this data comparison.

public System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoImageComparisonGroup>? OrtoImageComparisonGroups { get; private set; }

Property Value

System.Collections.Generic.IEnumerable<OrtoImageComparisonGroup>

OrtoDatasComparison Class

Represents a collection of orthodata comparisons associated with a specific reference, providing functionality to manage and retrieve comparison data based on dates.

public class OrtoDatasComparison : DiGi.Core.Classes.GuidObject, DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.GuidObject → OrtoDatasComparison

Implements DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Constructors

OrtoDatasComparison(OrtoDatasComparison) Constructor

Initializes a new instance of the OrtoDatasComparison class by copying an existing instance.

public OrtoDatasComparison(DiGi.GIS.Emgu.CV.Classes.OrtoDatasComparison? ortoDatasComparison);

Parameters

ortoDatasComparison OrtoDatasComparison

The source OrtoDatasComparison instance to copy from.

OrtoDatasComparison(string, IEnumerable<OrtoDataComparison>) Constructor

Initializes a new instance of the OrtoDatasComparison class.

public OrtoDatasComparison(string? reference, System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoDataComparison>? ortoDataComparisons);

Parameters

reference System.String

The reference identifier for the comparison data.

ortoDataComparisons System.Collections.Generic.IEnumerable<OrtoDataComparison>

A collection of orthodata comparisons to be included in this set.

OrtoDatasComparison(JsonObject) Constructor

Initializes a new instance of the OrtoDatasComparison class from a JSON object.

public OrtoDatasComparison(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the data to initialize the instance.

Properties

OrtoDatasComparison.OrtoDataComparisons Property

Gets or sets the collection of orthodata comparisons. The data is internally stored in a sorted dictionary to maintain chronological order.

public System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoDataComparison>? OrtoDataComparisons { get; private set; }

Property Value

System.Collections.Generic.IEnumerable<OrtoDataComparison>

OrtoDatasComparison.Reference Property

Gets the reference identifier associated with these orthodata comparisons.

public string? Reference { get; }

Property Value

System.String

Methods

OrtoDatasComparison.GetOrtoDataComparison(DateTime) Method

Retrieves the orthodata comparison corresponding to the specified date, or the closest preceding value if an exact match is not found.

public DiGi.GIS.Emgu.CV.Classes.OrtoDataComparison? GetOrtoDataComparison(System.DateTime dateTime);

Parameters

dateTime System.DateTime

The date used to search for a comparison.

Returns

OrtoDataComparison
The matching OrtoDataComparison instance, or null if no suitable record exists.

OrtoDatasComparison.GetYears() Method

Extracts the unique years from all available orthodata comparisons and returns them as a range.

public DiGi.Core.Classes.Range<int>? GetYears();

Returns

DiGi.Core.Classes.Range<System.Int32>
A DiGi.Core.Classes.Range<> of integers representing the years, or null if the internal data store is null.

OrtoDatasComparisonFile Class

Represents a storage file for orthophoto data comparison information, providing functionality to persist and retrieve OrtoDatasComparison objects.

public class OrtoDatasComparisonFile : DiGi.Core.IO.File.Classes.StorageFile<DiGi.GIS.Emgu.CV.Classes.OrtoDatasComparison>, DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.IO.File.Classes.FileDiGi.Core.IO.File.Classes.StorageFile<OrtoDatasComparison> → OrtoDatasComparisonFile

Implements DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Constructors

OrtoDatasComparisonFile(OrtoDatasComparisonFile) Constructor

Initializes a new instance of the OrtoDatasComparisonFile class by copying an existing instance.

public OrtoDatasComparisonFile(DiGi.GIS.Emgu.CV.Classes.OrtoDatasComparisonFile? ortoDatasComparisonFile);

Parameters

ortoDatasComparisonFile OrtoDatasComparisonFile

The source storage file to copy from.

OrtoDatasComparisonFile(string) Constructor

Initializes a new instance of the OrtoDatasComparisonFile class from the specified file path.

public OrtoDatasComparisonFile(string? path);

Parameters

path System.String

The path to the storage file.

OrtoDatasComparisonFile(JsonObject) Constructor

Initializes a new instance of the OrtoDatasComparisonFile class from a JSON object.

public OrtoDatasComparisonFile(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the storage file data.

Methods

OrtoDatasComparisonFile.GetUniqueReference(OrtoDatasComparison) Method

Generates a unique reference for the specified orthophoto data comparison object.

public override DiGi.Core.Classes.UniqueReference? GetUniqueReference(DiGi.GIS.Emgu.CV.Classes.OrtoDatasComparison? ortoDatasComparison);

Parameters

ortoDatasComparison OrtoDatasComparison

The orthophoto data comparison object to generate a reference for.

Returns

DiGi.Core.Classes.UniqueReference
A DiGi.Core.Classes.UniqueReference associated with the provided object, or null if the object is null.

OrtoDatasComparisonFile.GetUniqueReference(string) Method

Generates a unique reference based on the provided string identifier for orthophoto data.

public static DiGi.Core.Classes.UniqueReference? GetUniqueReference(string? reference);

Parameters

reference System.String

The string reference identifier.

Returns

DiGi.Core.Classes.UniqueReference
A DiGi.Core.Classes.UniqueReference if the reference is not null; otherwise, null.

OrtoDatasComparisonOptions Class

Provides options for comparing orthodata, extending the base directory name specifications.

public class OrtoDatasComparisonOptions : DiGi.GIS.Classes.DirectoryNamesOptions

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.SerializableOptionsDiGi.GIS.Classes.DirectoryNamesOptions → OrtoDatasComparisonOptions

Constructors

OrtoDatasComparisonOptions() Constructor

Initializes a new instance of the OrtoDatasComparisonOptions class.

public OrtoDatasComparisonOptions();

OrtoDatasComparisonOptions(OrtoDatasComparisonOptions) Constructor

Initializes a new instance of the OrtoDatasComparisonOptions class based on an existing OrtoDatasComparisonOptions instance.

public OrtoDatasComparisonOptions(DiGi.GIS.Emgu.CV.Classes.OrtoDatasComparisonOptions ortoDatasComparisonOptions);

Parameters

ortoDatasComparisonOptions OrtoDatasComparisonOptions

The source options to copy from.

OrtoDatasComparisonOptions(JsonObject) Constructor

Initializes a new instance of the OrtoDatasComparisonOptions class from a JSON object.

public OrtoDatasComparisonOptions(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the options data.

Properties

OrtoDatasComparisonOptions.OverrideExisting Property

Gets or sets a value indicating whether existing values should be overridden.

public bool OverrideExisting { get; set; }

Property Value

System.Boolean

OrtoDatasComparisonOptions.Years Property

Gets or sets the range of years to be considered during the orthodata comparison process.

public DiGi.Core.Classes.Range<int> Years { get; set; }

Property Value

DiGi.Core.Classes.Range<System.Int32>

OrtoImageComparison Class

Represents the results of a comparison between two ortho-images, containing various computer vision metrics such as color similarity, histogram correlation, and structural indices.

public class OrtoImageComparison : DiGi.Core.Classes.SerializableObject, DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObject → OrtoImageComparison

Implements DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Constructors

OrtoImageComparison(OrtoImageComparison) Constructor

Initializes a new instance of the OrtoImageComparison class by copying an existing instance.

public OrtoImageComparison(DiGi.GIS.Emgu.CV.Classes.OrtoImageComparison ortoImageComparison);

Parameters

ortoImageComparison OrtoImageComparison

The source OrtoImageComparison instance to copy from.

OrtoImageComparison(DateTime, int, float, float, float, float, float, float, float, float, float, float, float) Constructor

Initializes a new instance of the OrtoImageComparison class with specified comparison metrics.

public OrtoImageComparison(System.DateTime dateTime, int hammingDistace, float colorDistributionShift, float grayHistogramFactor, float averageColorSimilarity, float histogramCorrelation, float shapeComparisonFactor, float structuralSimilarityIndex_AbsoluteDifference, float structuralSimilarityIndex_MatchTemplate, float meanLaplacianFactor, float standardDeviationLaplacianFactor, float opticalFlowAverageMagnitude, float oRBFeatureMatchingFactor);

Parameters

dateTime System.DateTime

The date and time when the comparison was performed.

hammingDistace System.Int32

The Hamming distance between matrices based on their average gray masks.

colorDistributionShift System.Single

The Euclidean distance between the mean colors of the two images.

grayHistogramFactor System.Single

The correlation factor between the grayscale histograms of the two image matrices.

averageColorSimilarity System.Single

The Euclidean distance between the average colors of the two images.

histogramCorrelation System.Single

The correlation value between the hue histograms of the two images.

shapeComparisonFactor System.Single

The sum of absolute differences between the Hu Moments of the primary contours.

structuralSimilarityIndex_AbsoluteDifference System.Single

The similarity index based on the absolute difference of grayscale representations.

structuralSimilarityIndex_MatchTemplate System.Single

The similarity index using template matching with normalized cross-correlation.

meanLaplacianFactor System.Single

The calculated mean factor of the Laplacian.

standardDeviationLaplacianFactor System.Single

The calculated standard deviation factor of the Laplacian.

opticalFlowAverageMagnitude System.Single

The average magnitude of optical flow vectors between two images.

oRBFeatureMatchingFactor System.Single

The average distance of the ORB feature matches; a lower value indicates a better match.

OrtoImageComparison(JsonObject) Constructor

Initializes a new instance of the OrtoImageComparison class from a System.Text.Json.Nodes.JsonObject.

public OrtoImageComparison(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the comparison data.

Properties

OrtoImageComparison.AverageColorSimilarity Property

Gets the Euclidean distance between the average colors of the two images.

public float AverageColorSimilarity { get; }

Property Value

System.Single

OrtoImageComparison.ColorDistributionShift Property

Gets the Euclidean distance between the mean colors of the two images.

public float ColorDistributionShift { get; }

Property Value

System.Single

OrtoImageComparison.DateTime Property

Gets the date and time when the image comparison was performed.

public System.DateTime DateTime { get; }

Property Value

System.DateTime

OrtoImageComparison.GrayHistogramFactor Property

Gets the correlation factor between the grayscale histograms of the two images.

public float GrayHistogramFactor { get; }

Property Value

System.Single

OrtoImageComparison.HammingDistance Property

Gets the Hamming distance between matrices based on their average gray masks.

public int HammingDistance { get; }

Property Value

System.Int32

OrtoImageComparison.HistogramCorrelation Property

Gets the correlation value between the hue histograms of the two images.

public float HistogramCorrelation { get; }

Property Value

System.Single

OrtoImageComparison.MeanLaplacianFactor Property

Gets the calculated mean factor of the Laplacian.

public float MeanLaplacianFactor { get; }

Property Value

System.Single

OrtoImageComparison.OpticalFlowAverageMagnitude Property

Gets the average magnitude of optical flow vectors between two images.

public float OpticalFlowAverageMagnitude { get; }

Property Value

System.Single

OrtoImageComparison.ORBFeatureMatchingFactor Property

Gets the average distance of the ORB feature matches; a lower value indicates a better match.

public float ORBFeatureMatchingFactor { get; }

Property Value

System.Single

OrtoImageComparison.ShapeComparisonFactor Property

Gets the sum of absolute differences between the Hu Moments of the primary contours.

public float ShapeComparisonFactor { get; }

Property Value

System.Single

OrtoImageComparison.StandardDeviationLaplacianFactor Property

Gets the calculated standard deviation factor of the Laplacian.

public float StandardDeviationLaplacianFactor { get; }

Property Value

System.Single

OrtoImageComparison.StructuralSimilarityIndex_AbsoluteDifference Property

Gets the similarity index based on the absolute difference of grayscale representations.

public float StructuralSimilarityIndex_AbsoluteDifference { get; }

Property Value

System.Single

OrtoImageComparison.StructuralSimilarityIndex_MatchTemplate Property

Gets the similarity index using template matching with normalized cross-correlation.

public float StructuralSimilarityIndex_MatchTemplate { get; }

Property Value

System.Single

OrtoImageComparisonGroup Class

Represents a group of orthophoto image comparisons, typically organized by date and time.

public class OrtoImageComparisonGroup : DiGi.Core.Classes.SerializableObject, DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObject → OrtoImageComparisonGroup

Implements DiGi.GIS.Interfaces.IGISObject, DiGi.Core.Interfaces.IObject

Constructors

OrtoImageComparisonGroup(OrtoImageComparisonGroup) Constructor

Initializes a new instance of the OrtoImageComparisonGroup class by copying an existing group.

public OrtoImageComparisonGroup(DiGi.GIS.Emgu.CV.Classes.OrtoImageComparisonGroup? ortoImageComparisonGroup);

Parameters

ortoImageComparisonGroup OrtoImageComparisonGroup

The source OrtoImageComparisonGroup to copy from.

OrtoImageComparisonGroup(string, IEnumerable<OrtoImageComparison>) Constructor

Initializes a new instance of the OrtoImageComparisonGroup class.

public OrtoImageComparisonGroup(string? name, System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoImageComparison>? ortoImageComparisons);

Parameters

name System.String

The descriptive name of the comparison group.

ortoImageComparisons System.Collections.Generic.IEnumerable<OrtoImageComparison>

A collection of orthophoto image comparisons to be added to the group.

OrtoImageComparisonGroup(JsonObject) Constructor

Initializes a new instance of the OrtoImageComparisonGroup class from a JSON object.

public OrtoImageComparisonGroup(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The System.Text.Json.Nodes.JsonObject containing the serialized data for the group.

Properties

OrtoImageComparisonGroup.Name Property

Gets the name of the orthophoto image comparison group.

public string? Name { get; }

Property Value

System.String

OrtoImageComparisonGroup.OrtoImageComparisons Property

Gets or sets the collection of orthophoto image comparisons associated with this group. The internal storage ensures that these are sorted by their date and time.

public System.Collections.Generic.IEnumerable<DiGi.GIS.Emgu.CV.Classes.OrtoImageComparison>? OrtoImageComparisons { get; private set; }

Property Value

System.Collections.Generic.IEnumerable<OrtoImageComparison>

Methods

OrtoImageComparisonGroup.GetOrtoImageComparison(DateTime) Method

Retrieves the orthophoto image comparison for the specified date and time, or the closest preceding entry if an exact match is not found.

public DiGi.GIS.Emgu.CV.Classes.OrtoImageComparison? GetOrtoImageComparison(System.DateTime dateTime);

Parameters

dateTime System.DateTime

The target date and time to search for.

Returns

OrtoImageComparison
The matching OrtoImageComparison, or null if no suitable comparison exists.

Clone this wiki locally