|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
|
-%% (2) Randomly-select partial dataset
|
|
|
+%% (1) Randomly-select partial dataset
|
|
|
% Getting full frame list
|
|
|
frame_directory = 'data/frames/';
|
|
|
video_names = dir( [frame_directory 'sample*' ]);
|
|
@@ -27,7 +27,7 @@ for frameIdx = 1:n_train_image
|
|
|
copyfile( full_frame_names{target_frame_number(frameIdx)}, trainset_directory );
|
|
|
end
|
|
|
|
|
|
-%% (3) Manual segmentation
|
|
|
+%% (2) Manual segmentation
|
|
|
mask_directory = trainset_directory;
|
|
|
img_list = dir( [trainset_directory 'frame*.jpg'] );
|
|
|
close all;
|
|
@@ -70,9 +70,6 @@ end
|
|
|
zip( 'data/trainset.zip', 'data/trainset/')
|
|
|
zip( 'data/frames.zip','data/frames/' )
|
|
|
|
|
|
-%% Subfunctions
|
|
|
-
|
|
|
-
|
|
|
%% Subfunction
|
|
|
function mask = image_ROI_selection(I, textInput)
|
|
|
if nargin == 1, textInput = ''; end
|
|
@@ -149,20 +146,3 @@ end
|
|
|
mask = bwfill(mask, 'holes');
|
|
|
% mask = ~mask;
|
|
|
end
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|