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 == PhotogrammetrySampleParameters
- input:
The input
Sequencethat 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.