changeset 33:b3808a3ac649

Added ability of miicv_setint to set MI_ICV_DIM_SIZE.
author neelin <neelin>
date Tue, 01 Dec 1992 16:29:52 +0000
parents 95d44e26fede
children 1e7732fef9ae
files libsrc/image_conversion.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc/image_conversion.c
+++ b/libsrc/image_conversion.c
@@ -32,7 +32,7 @@
 ---------------------------------------------------------------------------- */
 
 #ifndef lint
-static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/image_conversion.c,v 1.6 1992-12-01 14:01:57 neelin Exp $ MINC (MNI)";
+static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/image_conversion.c,v 1.7 1992-12-01 16:29:52 neelin Exp $ MINC (MNI)";
 #endif
 
 #include <type_limits.h>
@@ -200,7 +200,9 @@
 
    MI_SAVE_ROUTINE_NAME("miicv_setint");
 
-   if ((icv_property==MI_ICV_ADIM_SIZE) || (icv_property==MI_ICV_BDIM_SIZE)) {
+   if ((icv_property==MI_ICV_ADIM_SIZE) || (icv_property==MI_ICV_BDIM_SIZE) ||
+       ((icv_property>=MI_ICV_DIM_SIZE) && 
+        (icv_property<MI_ICV_DIM_SIZE+MI_MAX_IMGDIMS))) {
       lvalue = (long) value;
       MI_CHK_ERR(miicv_set(icvid, icv_property, &lvalue))
    }