:mod:`export_mat` ================= .. py:module:: export_mat Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: export_mat.get_frame export_mat.adjacency export_mat.export_mats .. function:: get_frame(host: str) Fetches a pointcloud frame of a device and dump the sample. See "Getting Started" example in the Blickfeld-Scanner-Library documentation for a in depth explanation. :param host: the host name or IP address of the device :type host: str .. function:: adjacency(frame: blickfeld_scanner.protocol.data.frame_pb2.Frame) Converts a BSL frame into a dict of numpy matrices of adjacent measurements. BEWARE: - these are not OpenCV compatible matrices, they rather use the original datatype - the samples are anisotropic, see section "Scan pattern" in the documentation :param frame: original time-ordered measurement frame :type frame: blickfeld_scanner.protocol.data.frame_pb2.Frame :return: adjacent matrices per property :rtype: dict .. function:: export_mats(args) Example on how to export a Cube Frame for Matlab, Octave, and OpenCV. Fetches a frame from a given Cube, and dumps it for reference. The measurements are rearranged in 2D matrices of adjacent measurements. These are then optionally serialized as 'frame.mat' for Matlab and Octave, or as 'frame.png' using OpenCV. :param args: arguments to parse out the hostname or IP address of the device and export switches. .. data:: parser