Package boofcv.io.geo
Class MultiViewIO
java.lang.Object
boofcv.io.geo.MultiViewIO
For loading and saving data structures related to multiview reconstruction.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SceneObservations
load
(Reader reader, @Nullable SceneObservations observations) DecodesSceneObservations
encoded in a YAML format from a reader.static SceneStructureMetric
load
(Reader reader, @Nullable SceneStructureMetric scene) DecodesSceneStructureMetric
encoded in a YAML format from a reader.static PairwiseImageGraph
load
(Reader reader, @Nullable PairwiseImageGraph graph) DecodesPairwiseImageGraph
encoded in a YAML format from a reader.static SceneWorkingGraph
load
(Reader reader, PairwiseImageGraph pairwise, @Nullable SceneWorkingGraph working) DecodesSceneWorkingGraph
encoded in a YAML format from a reader.static SceneObservations
load
(String path, @Nullable SceneObservations graph) static SceneStructureMetric
load
(String path, @Nullable SceneStructureMetric graph) static PairwiseImageGraph
load
(String path, @Nullable PairwiseImageGraph graph) static SceneWorkingGraph
load
(String path, PairwiseImageGraph pairwise, @Nullable SceneWorkingGraph working) static void
loadInlierInfo
(List<Object> list, PairwiseImageGraph pairwise, DogArray<SceneWorkingGraph.InlierInfo> listInliers) static BundlePinholeSimplified
loadPinholeSimplified
(Map<String, Object> map, @Nullable BundlePinholeSimplified intrinsic) static Se3_F64
static LookUpSimilarImages
loadSimilarImages
(Reader reader) DecodesLookUpSimilarImages
encoded in a YAML format from a reader.static LookUpSimilarImages
loadSimilarImages
(String path) putInlierInfo
(FastAccess<SceneWorkingGraph.InlierInfo> listInliers) putPinholeSimplified
(BundlePinholeSimplified intrinsic) static void
save
(SceneObservations scene, File destination) static void
save
(SceneObservations scene, Writer outputWriter) Saves aSceneObservations
into theWriter
.static void
save
(SceneStructureMetric scene, Writer outputWriter) Saves aSceneStructureMetric
into theWriter
.static void
save
(SceneStructureMetric scene, String path) static void
save
(LookUpSimilarImages db, Writer outputWriter) Saves aLookUpSimilarImages
into theWriter
.static void
save
(LookUpSimilarImages db, String path) static void
save
(PairwiseImageGraph graph, Writer outputWriter) Saves aPairwiseImageGraph
into theWriter
.static void
save
(PairwiseImageGraph graph, String path) static void
save
(SceneWorkingGraph working, Writer outputWriter) Saves aSceneWorkingGraph
into theWriter
in a YAML format.static void
save
(SceneWorkingGraph working, String path)
-
Constructor Details
-
MultiViewIO
public MultiViewIO()
-
-
Method Details
-
save
-
save
Saves aLookUpSimilarImages
into theWriter
.- Parameters:
db
- (Input) Information on similar imagesoutputWriter
- (Output) where the graph is writen to
-
save
-
save
Saves aPairwiseImageGraph
into theWriter
.- Parameters:
graph
- (Input) The graph which is to be savedoutputWriter
- (Output) where the graph is writen to
-
save
-
save
Saves aSceneStructureMetric
into theWriter
.- Parameters:
scene
- (Input) The sceneoutputWriter
- (Output) where the scene is writen to
-
save
Saves aSceneObservations
into theWriter
.- Parameters:
scene
- (Input) Scene observationsoutputWriter
- (Output) where the scene is writen to
-
save
-
load
public static SceneStructureMetric load(String path, @Nullable @Nullable SceneStructureMetric graph) -
load
public static SceneStructureMetric load(Reader reader, @Nullable @Nullable SceneStructureMetric scene) DecodesSceneStructureMetric
encoded in a YAML format from a reader.- Parameters:
reader
- (Input/Output) Where the graph is read fromscene
- (Output) Optional storage for the scene. If null a new instance is created.- Returns:
- The decoded graph
-
load
-
load
public static SceneObservations load(Reader reader, @Nullable @Nullable SceneObservations observations) DecodesSceneObservations
encoded in a YAML format from a reader.- Parameters:
reader
- (Input/Output) Where the graph is read fromobservations
- (Output) Optional storage for observations. If null a new instance is created.- Returns:
- Decoded observations
-
loadSimilarImages
-
loadSimilarImages
DecodesLookUpSimilarImages
encoded in a YAML format from a reader.- Parameters:
reader
- (Input/output) where to read the data from- Returns:
- The decoded graph
-
load
-
load
DecodesPairwiseImageGraph
encoded in a YAML format from a reader.- Parameters:
reader
- (Input/Output) Where the graph is read fromgraph
- (Output) Optional storage for the graph. If null a new instance is created.- Returns:
- The decoded graph
-
save
-
save
Saves aSceneWorkingGraph
into theWriter
in a YAML format.- Parameters:
working
- (Input) The graph which is to be savedoutputWriter
- (Output) where the graph is writen to
-
load
public static SceneWorkingGraph load(String path, PairwiseImageGraph pairwise, @Nullable @Nullable SceneWorkingGraph working) -
load
public static SceneWorkingGraph load(Reader reader, PairwiseImageGraph pairwise, @Nullable @Nullable SceneWorkingGraph working) DecodesSceneWorkingGraph
encoded in a YAML format from a reader.- Parameters:
reader
- (Input/Output) Where the graph is read frompairwise
- (Input) Pairwise graph which is referenced by the SceneWorkingGraph.working
- (Output) Optional storage for the working graph. If null a new instance is created.- Returns:
- The decoded graph
-
putInlierInfo
-
loadInlierInfo
public static void loadInlierInfo(List<Object> list, PairwiseImageGraph pairwise, DogArray<SceneWorkingGraph.InlierInfo> listInliers) throws IOException - Throws:
IOException
-
loadPinholeSimplified
public static BundlePinholeSimplified loadPinholeSimplified(Map<String, Object> map, @Nullable @Nullable BundlePinholeSimplified intrinsic) -
putPinholeSimplified
-
putSE3
-
loadSE3
public static Se3_F64 loadSE3(Map<String, Object> map, @Nullable @Nullable Se3_F64 m) throws IOException- Throws:
IOException
-