diff --git a/reco-a_MP2RAGE_CS/functions/MP2RAGE_lookupTable.m b/reco-a_MP2RAGE_CS/functions/MP2RAGE_lookupTable.m index 973c5b5..e42b7c5 100644 --- a/reco-a_MP2RAGE_CS/functions/MP2RAGE_lookupTable.m +++ b/reco-a_MP2RAGE_CS/functions/MP2RAGE_lookupTable.m @@ -50,11 +50,11 @@ lookuptable = param2LUT(T1,struct_MP2RAGE); [maxValue] = max(lookuptable); -[~, I1] = find(lookuptable == maxValue,1,'first') +[~, I1] = find(lookuptable == maxValue,1,'first'); %indice du premier max lookuptable(1:I1-1)=lookuptable(I1); %on remplace toutes les valeurs precedentes par le max [minValue] = min(lookuptable); -[~,I2]=find(lookuptable==minValue,1,'first') %indice du premier min apres ce max +[~,I2]=find(lookuptable==minValue,1,'first'); %indice du premier min apres ce max T1 = T1(I1:I2); %on prend les T1 entre ces deux pics lookuptable = lookuptable(I1:I2);