Switch to unified view

a b/Semantic Features/GetLargestMatrix.m
1
function [ LargestMatrix ] = GetLargestMatrix( InputMatrix, largestIDs, instanceIDs )
2
%GetLargestMatrix 
3
%   Kind of a strange function. You feed this the IDs of the rows that you
4
%   want to use as 'largest area border of that slice' and it will get
5
%   those rows for you in order. Testing with another function confirmed
6
%   this is the same order as the Y matrix we're using, so no need to try
7
%   and reorder the data. 
8
9
%get the rows of the instance IDs that match the instance IDs to generate
10
%Patrick's segmentations (same order)
11
for i = 1:length(largestIDs)
12
   largestRows(i) = find(largestIDs(i) == instanceIDs); 
13
end
14
15
largestRows = largestRows';
16
LargestMatrix = InputMatrix(largestRows,:);
17
18
19
end