function output = createEmptySCase(SCaseID) % Load ShoulderCase objects from the database % % Inputs: % SCaseID: String array of shoulder case IDs. % Including "N" in the string array will load all the normal cases. % Including "P" in the string array will load all the pathological cases. % Including "*" in the string array will load all the cases. % % Output: % Array of the corresponding ShoulderCase objects. % % Example: % SCase = loadSCase("N29"); loads the N29 normal case. % SCases = loadSCase(["N29" "N32"]); loads N29 and N32 normal cases. % SCases = loadSCase(["N29" "N32" "N"]); loads all the normal cases. % SCases = loadSCase(["N29" "N32" "N" "P"]); loads all the normal and % pathological cases. % SCases = loadSCase(["N29" "N32" "N" "P" "*"]); loads all the cases. % SCaseID = string(SCaseID); addpath(genpath('ShoulderCase')); database = ShoulderCaseLoader; if ismember("*", SCaseID) SCaseID = database.getAllCasesID(); else if ismember("N", SCaseID) SCaseID(ismember(SCaseID, "N")) = []; SCaseID = [SCaseID string(database.getAllNormalCasesID)]; SCaseID = unique(SCaseID); end if ismember("P", SCaseID) SCaseID(ismember(SCaseID, "P")) = []; SCaseID = [SCaseID string(database.getAllPathologicalCasesID)]; SCaseID = unique(SCaseID); end end SCase = database.createEmptyCase(SCaseID); output = SCase; end