-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.m
39 lines (29 loc) · 887 Bytes
/
main.m
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
clear all
close all
clc
warning off
addpath(genpath(strcat(pwd,'\Data\')))
addpath(genpath(strcat(pwd,'\Functions\')))
%--------------------Available datasets-----------------------
% sardania_dataset
% omodeo_dataset
% alaska_dataset
% Madeirinha_dataset
% katios_dataset
% dique_dataset
% SF_dataset
% Wenchuan_dataset
% canada_dataset
% california_flood
% contest_dataset
%-------------------------------------------------------------
dataset = "sardania_dataset";
%if you want to try your own dataset it must be like:
% dataset{1} = before; image with one chanel
% dataset{2} = after; image with one chanel
n = 93;
Change_map = gbf_cd(dataset,n);
%% Metrics and error map
%all available datasets has the gt
load('sardania_dataset','gt');
[MA, FA, Precision, recall, kappa, OE] = cohensKappa(gt,Change_map);