forked from nazikus/dalcim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulticoseg_example.m
More file actions
43 lines (22 loc) · 850 Bytes
/
multicoseg_example.m
File metadata and controls
43 lines (22 loc) · 850 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
% Show an example from iCoseg for multiclass cosegmentation
clear all; close all; clc;
warning off
dirName = fileparts(mfilename('fullpath'));
addpath(genpath(dirName));
cd(dirName);
rand('seed',1);
randn('seed',1);
nPics = 5; %nb of pics
nClass = 6; % nb of class(es)
typeObj ='chairs';
lapWght = 1e-1; % binary paremeter (\mu in the article)
typeKernel = 'chi2';% 'chi2' or 'Hellsinger'
typeFeat = 'color';% 'color' or 'sift'
param.onlyDiffrac = 0; % if 1 , then only the CVPR'10
param.initDiffrac = 1; % if 1, init by CVPR'10
itMax = 1; % nb of random init
param.reboot = 1; % to recompute everything
param.ViewOn = 1; % to look at results
param.useMask = 0; % = 1 for grabcut
%%%%%%% Run Coseg algorithm
run_coseg;