From 54dc0b039038ac09b4af491a9907b58691b83da9 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Tue, 12 Jul 2011 17:32:56 +0200
Subject: [PATCH] ENH: remove Matlab dir

---
 Matlab/otb_save_hsi_tiff.m | 68 --------------------------------------
 Matlab/otb_synthetic_hsi.m | 23 -------------
 2 files changed, 91 deletions(-)
 delete mode 100644 Matlab/otb_save_hsi_tiff.m
 delete mode 100644 Matlab/otb_synthetic_hsi.m

diff --git a/Matlab/otb_save_hsi_tiff.m b/Matlab/otb_save_hsi_tiff.m
deleted file mode 100644
index 811d03f56e..0000000000
--- a/Matlab/otb_save_hsi_tiff.m
+++ /dev/null
@@ -1,68 +0,0 @@
-function otb_save_hsi_tiff(hsi, path)
-
-otb_save_cube_tiff(hsi.getDataCube(), [path  '/hsi_cube.tif']);
-otb_save_matrix_Spectras_tiff(hsi.getEndmembers(), [path '/endmembers.tif']);
-otb_save_cube_tiff(hsi.getAbundanceCube(), [path '/abundance.tif']);
-otb_save_cube_tiff(hsi.getNoiseCube(), [path '/noise.tif']);
-
-return;
-
-
-function otb_save_matrix_2D_tiff(matrix, filename)
-
-t = Tiff(filename,'w');
-tagstruct.ImageLength = size(matrix,1);
-tagstruct.ImageWidth = size(matrix,2);
-tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
-tagstruct.BitsPerSample = 64;
-tagstruct.SampleFormat = 3;
-tagstruct.SamplesPerPixel = 1;
-tagstruct.RowsPerStrip = 1;
-tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
-tagstruct.Software = 'MATLAB';
-t.setTag(tagstruct);
-
-t.write(matrix);
-
-return;
-
-
-% each column of matrix is saved as a multiband pixel
-function otb_save_matrix_Spectras_tiff(matrix, filename)
-
-t = Tiff(filename,'w');
-tagstruct.ImageLength = 1;
-tagstruct.ImageWidth = size(matrix,2);
-tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
-tagstruct.BitsPerSample = 64;
-tagstruct.SampleFormat = 3;
-tagstruct.SamplesPerPixel = size(matrix,1);
-tagstruct.RowsPerStrip = 1;
-tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
-tagstruct.Software = 'MATLAB';
-t.setTag(tagstruct);
-
-t.write(reshape(matrix',1,size(matrix,2), size(matrix,1)));
-
-return;
-
-% save a cube as a multiband image
-function otb_save_cube_tiff(cube, filename)
-
-t = Tiff(filename,'w');
-tagstruct.ImageLength = size(cube,1);
-tagstruct.ImageWidth = size(cube,2);
-tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
-tagstruct.BitsPerSample = 64;
-tagstruct.SampleFormat = 3;
-tagstruct.SamplesPerPixel = size(cube,3);
-tagstruct.RowsPerStrip = 1;
-tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
-tagstruct.Software = 'MATLAB';
-t.setTag(tagstruct);
-
-t.write(cube);
-
-return;
-
-
diff --git a/Matlab/otb_synthetic_hsi.m b/Matlab/otb_synthetic_hsi.m
deleted file mode 100644
index 6b8914a75b..0000000000
--- a/Matlab/otb_synthetic_hsi.m
+++ /dev/null
@@ -1,23 +0,0 @@
-function hsi = otb_synthetic_hsi()
-
-J = 5; % nb endmembers
-iota = 0.9; % purity index - 0< iota < 1 with iota~<1
-snr = 40; % noise
-eta = 0; %parameter to control noise : white noise (eta = 0), color noise (eta > 0)
-noise_type = 'additive'; % 'additive' or 'poisson'
-% verbose = 0;
-nbRows = 100;
-nbColumns = 100;
-
-libName = 'usgs';
-specLib = class_specLib(libName);
-hsi = class_lsmmSynthHsi(J, specLib, iota, snr, eta, noise_type, nbRows, nbColumns);
-
-%disp(hsi.getEndmembers());
-%disp(hsi.getSpecLib());
-%disp(hsi.getNoiseMatrix());
-%disp(hsi.getNbEndmembers());
-%disp(hsi.getLibraryIdces());
-%disp(hsi.nbColumns());
-
-return;
\ No newline at end of file
-- 
GitLab