Skip to main content

makeJmpMarkerRef.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function makes the markers reference for the optimization
%
% (Model, String, struct) -> (MarkersReference)
% Computes the sum of the squared error of the markers through all frames


function markersReference = makeJmpMarkerRef(model, markerFileName, params)
if(isfield(params, 'markerNames'))
markersReference = MarkersReference(markerFileName);
markersReference.setMarkerWeightSet(makeMarkerWeightSet( ...
params.markerNames, ones(1, length(params.markerNames))));
removeNonUsedMarkers(model, params.markerNames)
else
markersReference = makeMarkersReference(model, markerFileName, params);
end
end