From 0a7c4cfc4fabda564c3d85449e210d6330f207f5 Mon Sep 17 00:00:00 2001 From: Douglas Greve Date: Thu, 24 Jun 2021 14:22:32 -0400 Subject: [PATCH] mri_segstats.cpp. #NF. Now uses embedded ctab unless one is passed on the cmd line --- mri_segstats/mri_segstats.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mri_segstats/mri_segstats.cpp b/mri_segstats/mri_segstats.cpp index 2c17fc7c94b..cbc00ed2f97 100644 --- a/mri_segstats/mri_segstats.cpp +++ b/mri_segstats/mri_segstats.cpp @@ -492,6 +492,15 @@ int main(int argc, char **argv) exit(1); } } + else { + if(seg->ct){ + ctab = seg->ct; + printf("Using embedded color table (and excluding seg 0)\n"); + ExclSegIdList[nExcl] = 0; + nExcl ++; + DoExclSegId = 1; + } + } if (gcafile != NULL) {