Code covered by the BSD License  

Highlights from
VERY FAST LOADING OF BULKY POINT CLOUDS AND MATRICES IN ASCII FORMAT

VERY FAST LOADING OF BULKY POINT CLOUDS AND MATRICES IN ASCII FORMAT

by

 

Modules for very fast loading and saving of bulky point clouds and matrices in ASCII format

csave.m
%LOAD Save data to an ASCII-file.
%   [] = CSAVE(CLOUDS,FILENAME,SAMPLINGRATIO) saves n-dimensional, possibly
%   colored point clouds to an ASCII-file in either XYZRGBI or WRL format.
%
%   Point clouds must be stored in CLOUDS in one of the following formats:
%      1. A numeric array (NxM) with entities in single-format
%      2. A struct with fields <points> (single), <normals> (single) and
%         <colors> (uint8). <normals> and <colors> are optional.
%      3. A cell array of type (1)
%      4. A cell array of type (2)
%   Here, N is the number of points and M is the number of dimensions.
%   FILENAME is a string that indicates the name and format of the file,
%   where CLOUDS will be stored. *.xyz indicates plain ASCII format
%   whereas *.wrl stands for VRML format. In order to save data in WRL
%   format, one should have the point clouds as in (2) or (4).
%
%   SAMPLINGRATIO is, by default, set to 1.00, i.e. by default point clouds
%   are saved without sampling. The maximum number of point clouds that can
%   be saved at a time, is bounded by 260.
%
%   Examples:
%
%       npoints = 1000;
%       cloud.points = single(rand(npoints,3));
%       cloud.colors = uint8(255*rand(npoints,3));
%       points2 = 0.5 + single(rand(npoints,3));
%       ...
%       csave(cloud, 'cloud-1.00.wrl');
%       csave(cloud.points, 'cloud-0.50.wrl', 0.50);
%       csave(points2, 'cloud-1.00.xyz');
%       csave([points2,single(cloud.colors)], 'cloud-0.10.xyz');
%       csave({points2, cloud.points}, 'cloud-0.80.xyz', 0.80);
%
%   See also CLOAD, LOAD, SAVE
%
% Copyright 2010  This file and its content belong to Ulas Yilmaz.
% You are welcome to use it for non-commercial purposes, such as
% student projects, research and personal interest. However,
% you are not allowed to use it for commercial purposes, without
% an explicit written and signed license agreement with the owner.
% Contact info at http://www.cv.tu-berlin.de
% Berlin University of Technology  Germany
% Last Modification: 04.08.2010
%

% function [] = csave(clouds,filename,samplingratio)
% end

Contact us