Skip to content

Commit a666ffb

Browse files
committed
Fixed bug with empty input to load_landmark_file()
1 parent 01922de commit a666ffb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

load_landmark_file.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
landmark_data = load_tabular_data(landmark_file_name) ;
44
if isempty(landmark_data) ,
55
ijk0_from_landmark_index = zeros(0,3) ;
6+
foreground_p_value_from_landmark_index = zeros(0,1) ;
7+
imagery_value_from_landmark_index = zeros(0,1) ;
68
else
79
flipped_ijk0_from_landmark_index = landmark_data(:,1:3) ;
810
% the landmark-detection code is run on the the raw (flipped in x and y) tiles,
@@ -11,7 +13,7 @@
1113
[ (tile_shape_ijk(1)-1) - flipped_ijk0_from_landmark_index(:,1) ...
1214
(tile_shape_ijk(2)-1) - flipped_ijk0_from_landmark_index(:,2) ...
1315
flipped_ijk0_from_landmark_index(:,3) ] ;
16+
foreground_p_value_from_landmark_index = landmark_data(:,4) ;
17+
imagery_value_from_landmark_index = landmark_data(:,5) ;
1418
end
15-
foreground_p_value_from_landmark_index = landmark_data(:,4) ;
16-
imagery_value_from_landmark_index = landmark_data(:,5) ;
1719
end

0 commit comments

Comments
 (0)