Matlab code - xaaaandao/piperaceae-features GitHub Wiki
Requirements
- Use the institutional e-mail to download the software.
- After downloading, access the location (via terminal) and execute the commands below.
$ unzip matlab_*_glnxa64.zip
$ cd matlab_*_glnxa64
$ sudo chmod a+x install
$ sudo ./install
- Replace the asterisk for the version downloaded.
- After the GUI appears, click next until the installation is complete.
- To run the Matlab, access the terminal and execute the command below.
$ ./matlab
Attention
The images must be in grayscale mode to run this code.
To run
-
Open
get_features.m -
Replace the variable input's value with the images' location and the variable output's value to a folder available.
-
After that, press the F5 or Run buttons to run the code.
Output
- This program will create three folder content four files
lbp+matlablbp.txt- Each line contains 59 columns
- The last column represents the class.
info_lbp.csv,info_levels.csv,info_sample.csv
surf64+matlabsurf128.txt- Each line contains 128 columns
- The last column represents the class.
info_lbp.csv,info_levels.csv,info_sample.csv
surf128+matlabsurf64.txt- Each line contains 257 columns
- The last column represents the class.
info_lbp.csv,info_levels.csv,info_sample.csv
-
The main differences between surf64.txt and surf128.txt are:
- Number of points used to extract features;
- The number of features.
-
info_levels.csvandinfo_samples.csvare files equal between three folders.- It is created for each folder to facilitate the next step (identification).
- This link contains the mean of each row.
-
info_lbp.txt,info_surf64.txt, andinfo_surf128.txtare files very similar.- The difference is the value of each row.
- This link contains the mean of each row.