-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshape.m
More file actions
47 lines (33 loc) · 750 Bytes
/
shape.m
File metadata and controls
47 lines (33 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%% Clear all and initial parameters
clc
clear variables
close all
%% Determening paths and setting folders
currdir = pwd;
addpath(pwd);
filedir = uigetdir();
cd(filedir);
%Folders with images
tif8_dir =[filedir, '/tifs_8bit'];
%Folder to save summarised information
mkdir(filedir,'/Summary_shape2');
sum_dir = [filedir, '/Summary_shape2'];
cd(tif8_dir);
files_tif = dir('*.tif');
%% collecting data abount borders and corners
cd(currdir);
collectionv2;
%% Selecting good corners
goodcorners;
%% Centering, rotating and reshaping data
rescale;
%% Fitting and plotting information about borders
borderstat;
%% Fitting and plotting information about corners
cornerstat;
%% Curvature
curvature;
cd(currdir);
close all;
clear variables;
clc