Skip to content
Snippets Groups Projects
Commit 076de175 authored by Ali Karimi's avatar Ali Karimi
Browse files

Writing to ply files

parent 745713c5
No related branches found
No related tags found
No related merge requests found
...@@ -59,3 +59,14 @@ axis tight ...@@ -59,3 +59,14 @@ axis tight
axis off axis off
camlight camlight
lighting gouraud lighting gouraud
%% Write surfaces out for amira (as .ply files)
% Paramater should contain the voxel size as follows:
param.raw.voxelSize = [12, 12, 30];
plyDir = fullfile(dataset_Dir,'plyFiles');
mkdir(plyDir);
% create a cell array with the file names
outputFileNames = arrayfun(@(x) fullfile(plyDir,[num2str(x),'.ply']),...
1:length(isoSurf),'UniformOutput',false);
% Call to the function
Visualization.exportIsoSurfaceToAmira(param, isoSurf, outputFileNames);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment