diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat new file mode 100644 index 0000000000000000000000000000000000000000..91b97c1fb5bd7b3f3f3430d01789d7853c2c57e1 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat new file mode 100644 index 0000000000000000000000000000000000000000..87847b68e8bb9a9c672bf3f862a1f794973df60a Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..147757056e2f6d9761765ad2b533fe88fa5fa65a Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..ec74afcd8290b20e9f36097cba384fe64cb5c3d8 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..ab258e33129912f2dad8db80ce287b2d46accd4b Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..ae0d5c3171187ac6cf9f51b15d0831f13912d524 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..581b93e5b347f15f1ba7d0cdecaaea7ec0cc5a3d Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..531b93f5db0a6607ae6846f8c1ee2beee5dc0aff Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..9581989dddc44c36f608e625b8f8d5526b23cebe Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..68288e28e102fc195ba0b794eae61485c586d794 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..de843d723570e18cb2e736e1044026f0fd93a5a0 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..db91b26ce2d86e0a604c259679c02dc950380ee6 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..141ea0c82a44a3f8213304a0a8d7aa24bac68324 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..23ffa17b5bac30b8dcf5c4c2d18e1d66ebce4afb Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesA/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat new file mode 100644 index 0000000000000000000000000000000000000000..ed07771aae9652a555818dfe65c126dd304bffb9 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/Mitsuba/scene-001.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat new file mode 100644 index 0000000000000000000000000000000000000000..b1d7f2875e428ab210b346360b25c78e8f62c9de Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeCoordinatesTest/renderings/PBRT/scene-001.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..a5c6d16e3fb02ff1678e85120260cac738e1c849 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..2c66232fd55136020ebebc16e966f274763d252d Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..105f862a6f126f030fd43affa8dcc1bc11c33257 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/Mitsuba/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..cc408994ce9c36cf910823a70ad931fbfe4f76d2 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..38975361d6d9e56af6c9b38359ed3b0e90823f87 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..9ab6a5cca1fca86ea126f3385918601ddc0aec25 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereBumps/renderings/PBRT/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..acbf171682d78a79f713be6925cd5f03054c3c08 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..840feacae1e34bf9beca74a98d148bad6b04cf91 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..fe4e6ddd9e0b008a921695f01018e4eb70f90e27 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/Mitsuba/materialSphereWard.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat new file mode 100644 index 0000000000000000000000000000000000000000..066a22de2dc7bbf77a9559701a65ef4b03d8b956 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMatte.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat new file mode 100644 index 0000000000000000000000000000000000000000..caca4383f23a79a1f9129a5b2dfd23034a1c8216 Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereMetal.mat differ diff --git a/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat new file mode 100644 index 0000000000000000000000000000000000000000..ca18a50d8c7797877026ba535cd31e457364a78e Binary files /dev/null and b/Test/Automated/Fixture/Comparison/RecipesB/rtbMakeMaterialSphereRemodeled/renderings/PBRT/materialSphereWard.mat differ diff --git a/Test/Automated/RtbComparisonTests.m b/Test/Automated/RtbComparisonTests.m new file mode 100644 index 0000000000000000000000000000000000000000..c15c8d7f5a4e99b0f97d0288eb30307d311ede12 --- /dev/null +++ b/Test/Automated/RtbComparisonTests.m @@ -0,0 +1,174 @@ +classdef RtbComparisonTests < matlab.unittest.TestCase + % Test functions that find and compare renderings. + + properties + folderA = fullfile(rtbRoot(), 'Test', 'Automated', 'Fixture', 'Comparison', 'RecipesA'); + folderB = fullfile(rtbRoot(), 'Test', 'Automated', 'Fixture', 'Comparison', 'RecipesB'); + scratchFolder = fullfile(tempdir(), 'RtbComparisonTests'); + end + + methods (TestMethodSetup) + function cleanUpOutput(testCase) + if 7 == exist(testCase.scratchFolder, 'dir') + rmdir(testCase.scratchFolder, 's'); + end + end + end + + + methods (Test) + + function testFindRenderingsSuccess(testCase) + expectedNames = {'rtbMakeCoordinatesTest', ... + 'rtbMakeMaterialSphereBumps', ... + 'rtbMakeMaterialSphereRemodeled'}; + + renderingsA = rtbFindRenderings(testCase.folderA); + recipeNamesA = unique({renderingsA.recipeName}); + testCase.assertEqual(recipeNamesA, expectedNames); + testCase.assertNumElements(renderingsA, 14); + + renderingsB = rtbFindRenderings(testCase.folderB); + recipeNamesB = unique({renderingsB.recipeName}); + testCase.assertEqual(recipeNamesB, expectedNames); + testCase.assertNumElements(renderingsA, 14); + end + + function testFindRenderingsSubset(testCase) + renderings = rtbFindRenderings(testCase.folderA, ... + 'filter', 'CoordinatesTest[^\.]+\.mat$'); + testCase.assertNumElements(renderings, 2); + recipeNames = {renderings.recipeName}; + testCase.assertEqual(strcmp(recipeNames, 'rtbMakeCoordinatesTest'), true(1,2)); + end + + function testFindRenderingsNone(testCase) + renderings = rtbFindRenderings(testCase.folderA, ... + 'filter', 'notagoodpattern'); + testCase.assertEmpty(renderings); + end + + function fetchReferenceSuccess(testCase) + renderings = rtbFetchReferenceData('rtbMakeInterreflection', ... + 'referenceRoot', testCase.scratchFolder); + testCase.assertNumElements(renderings, 6); + recipeNames = {renderings.recipeName}; + testCase.assertEqual(strcmp(recipeNames, 'rtbMakeInterreflection'), true(1,6)); + end + + function fetchReferenceNone(testCase) + renderings = rtbFetchReferenceData('nosuchrecipe', ... + 'referenceRoot', testCase.scratchFolder); + testCase.assertNumElements(renderings, 0); + end + + function compareRenderingToSelf(testCase) + renderings = rtbFindRenderings(testCase.folderA); + comparison = rtbCompareRenderings(renderings(1), renderings(1)); + testCase.assertEqual(comparison.corrcoef, 1, 'AbsTol', 1e-6); + testCase.assertEqual(comparison.relNormDiff.max, 0,'AbsTol', 1e-6); + end + + function compareRenderingToOther(testCase) + renderings = rtbFindRenderings(testCase.folderA); + comparison = rtbCompareRenderings(renderings(1), renderings(2)); + testCase.assertLessThan(comparison.corrcoef, 1); + testCase.assertGreaterThan(comparison.relNormDiff.max, 0); + end + + function compareRenderingPlot(testCase) + renderings = rtbFindRenderings(testCase.folderA); + comparison = rtbCompareRenderings(renderings(1), renderings(1)); + fig = rtbPlotRenderingComparison(comparison); + close(fig); + end + + function compareFolderToSelf(testCase) + comparisons = rtbCompareManyRecipes(testCase.folderA, testCase.folderA, ... + 'fetchReferenceData', false); + testCase.assertNumElements(comparisons, 14); + testCase.assertEqual([comparisons.corrcoef], ones(1, 14), 'AbsTol', 1e-6); + relNormDiff = [comparisons.relNormDiff]; + testCase.assertEqual([relNormDiff.max], zeros(1, 14) ,'AbsTol', 1e-6); + end + + function compareFolderToOther(testCase) + comparisons = rtbCompareManyRecipes(testCase.folderA, testCase.folderB, ... + 'fetchReferenceData', false); + testCase.assertNumElements(comparisons, 14); + % real correlations can be unity, skip correlation test + relNormDiff = [comparisons.relNormDiff]; + testCase.assertGreaterThan([relNormDiff.max], 0); + end + + function compareFolderToReference(testCase) + comparisons = rtbCompareManyRecipes(testCase.folderA, testCase.scratchFolder, ... + 'fetchReferenceData', true); + testCase.assertNumElements(comparisons, 14); + % real correlations can be unity, skip correlation test + relNormDiff = [comparisons.relNormDiff]; + testCase.assertGreaterThan([relNormDiff.max], 0); + end + + function compareFolderPlot(testCase) + comparisons = rtbCompareManyRecipes(testCase.folderA, testCase.folderA, ... + 'fetchReferenceData', false); + fig = rtbPlotManyRecipeComparisons(comparisons); + close(fig); + end + + function epicComparisonPlots(testCase) + [comparisons, ~, figs] = rtbRunEpicComparison(testCase.folderA, testCase.folderA, ... + 'plotSummary', true, ... + 'plotImages', true); + testCase.assertNumElements(comparisons, 14); + testCase.assertNumElements(figs, 14 + 1); + close(figs); + end + + function epicComparisonNoPlots(testCase) + [comparisons, ~, figs] = rtbRunEpicComparison(testCase.folderA, testCase.folderA, ... + 'plotSummary', false, ... + 'plotImages', false); + testCase.assertNumElements(comparisons, 14); + testCase.assertEmpty(figs); + end + + function epicComparisonClosePlots(testCase) + [comparisons, ~, figs] = rtbRunEpicComparison(testCase.folderA, testCase.folderA, ... + 'plotSummary', true, ... + 'plotImages', true, ... + 'closeSummary', true, ... + 'closeImages', true); + testCase.assertNumElements(comparisons, 14); + testCase.assertEmpty(figs); + end + + function epicComparisonSavePlots(testCase) + [comparisons, ~, figs] = rtbRunEpicComparison(testCase.folderA, testCase.folderA, ... + 'plotSummary', true, ... + 'plotImages', true, ... + 'closeSummary', true, ... + 'closeImages', true, ... + 'figureFolder', testCase.scratchFolder, ... + 'summaryName', 'test-summary'); + testCase.assertNumElements(comparisons, 14); + testCase.assertEmpty(figs); + + % summary should have been saved in scratch folder + summaryFig = fullfile(testCase.scratchFolder, 'test-summary.fig'); + summaryPng = fullfile(testCase.scratchFolder, 'test-summary.png'); + testCase.assertEqual(exist(summaryFig, 'file'), 2); + testCase.assertEqual(exist(summaryPng, 'file'), 2); + + % images should have been saved in the scratchFolder + for cc = 1:numel(comparisons) + identifier = comparisons(cc).renderingA.identifier; + imageFig = fullfile(testCase.scratchFolder, [identifier '.fig']); + imagePng = fullfile(testCase.scratchFolder, [identifier '.png']); + testCase.assertEqual(exist(imageFig, 'file'), 2); + testCase.assertEqual(exist(imagePng, 'file'), 2); + end + end + end +end diff --git a/Test/Interactive/Comparison/rtbRunEpicComparison.m b/Test/Interactive/Comparison/rtbRunEpicComparison.m index 47bcaa6a5ecd93e75c5f3b81fbae7474e4b54554..5ea42c274ae7a849ec309c9de81cfe21a8fb674c 100644 --- a/Test/Interactive/Comparison/rtbRunEpicComparison.m +++ b/Test/Interactive/Comparison/rtbRunEpicComparison.m @@ -47,6 +47,7 @@ parser.addParameter('closeSummary', false, @islogical); parser.addParameter('plotImages', true, @islogical); parser.addParameter('closeImages', false, @islogical); parser.addParameter('figureFolder', '', @ischar); +parser.addParameter('summaryName', 'epic-summary', @ischar); parser.parse(folderA, folderB, varargin{:}); folderA = parser.Results.folderA; folderB = parser.Results.folderB; @@ -55,6 +56,7 @@ closeSummary = parser.Results.closeSummary; plotImages = parser.Results.plotImages; closeImages = parser.Results.closeImages; figureFolder = parser.Results.figureFolder; +summaryName = parser.Results.summaryName; figs = []; @@ -78,7 +80,7 @@ if plotSummary varargin{:}); if ~isempty(figureFolder); - imageFileName = fullfile(figureFolder, 'epic-summary'); + imageFileName = fullfile(figureFolder, summaryName); saveFigure(summaryFig, imageFileName); end