Contents

init(input:configuration:)

Creates a session from a sequence of samples.

Declaration

convenience init<S>(input: S, configuration: PhotogrammetrySession.Configuration = Configuration()) throws where S : Sequence, S.Element == PhotogrammetrySample

Parameters

  • input:

    The input Sequence that will be iterated once to yield all input data.

  • configuration:

    The session-wide configuration to use for this session.

Discussion

Creates a new session instance from a custom sequence of PhotogrammetrySample objects by iterating over the provided Sequence object.

The constructor will only use makeIterator() on input and will then iterate through the sequence only once. A provided iterator should be lazy, or a lazy Sequence and map used.

See Also

Creating the session