Record Class TemplateMatchOp.MatchResult
java.lang.Object
java.lang.Record
cloud.opencode.base.image.analysis.TemplateMatchOp.MatchResult
- Record Components:
x- the x coordinate of the top-left corner of the match | 匹配左上角的 x 坐标y- the y coordinate of the top-left corner of the match | 匹配左上角的 y 坐标score- the NCC score in [-1, 1], where 1.0 = perfect match | NCC 分数,范围 [-1, 1],1.0 = 完美匹配
- Enclosing class:
TemplateMatchOp
A template match result at a specific position with its NCC score.
特定位置的模板匹配结果及其 NCC 分数。
- Since:
- JDK 25, opencode-base-image V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionMatchResult(int x, int y, double score) Creates an instance of aMatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
MatchResult
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
score
-