Class MSTEdge
java.lang.Object
org.opencv.geometry.MSTEdge
Represents an edge in a graph for Minimum Spanning Tree (MST) computation.
Each edge connects two nodes (source and target) and has an associated weight.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MSTEdge__fromPtr__(long addr) intintdoublelongvoidset_source(int source) voidset_target(int target) voidset_weight(double weight)
-
Field Details
-
nativeObj
protected final long nativeObj
-
-
Constructor Details
-
MSTEdge
protected MSTEdge(long addr)
-
-
Method Details
-
getNativeObjAddr
public long getNativeObjAddr() -
__fromPtr__
-
get_source
public int get_source() -
set_source
public void set_source(int source) -
get_target
public int get_target() -
set_target
public void set_target(int target) -
get_weight
public double get_weight() -
set_weight
public void set_weight(double weight)
-