Doxygen Source Code Documentation
plug_maxima.h File Reference
Go to the source code of this file.
Define Documentation
|
Definition at line 63 of file plug_maxima.h. Referenced by apply_fill_radius(), and find_local_maxima(). |
|
Definition at line 67 of file plug_maxima.h. Referenced by process_args(). |
|
Definition at line 65 of file plug_maxima.h. Referenced by clear_around_point(), init_maxima_s(), and process_args(). |
|
Definition at line 66 of file plug_maxima.h. Referenced by clear_around_point(). |
|
Definition at line 20 of file plug_maxima.h. |
|
Definition at line 18 of file plug_maxima.h. |
|
Definition at line 19 of file plug_maxima.h. |
|
|
Definition at line 22 of file plug_maxima.h. Referenced by r_any_cb_fill_stats(), r_gr_cb_fill(), r_histogram(), r_HL_cb_set_fill_val(), r_INT_cb_fill(), r_INT_cb_set_fill_val(), r_wt_cb_fill(), and r_wt_cb_set_fill_val(). |
Function Documentation
|
Referenced by clear_around_point(), and create_point_list(). |
|
Referenced by process_data(). |
|
Referenced by process_data(). |
|
Referenced by apply_min_dist(). |
|
Referenced by process_data(). |
|
Referenced by write_results(). |
|
Referenced by process_data(). |
|
Referenced by MAXIMA_main(). |
|
Referenced by process_args(). |
|
Referenced by process_args(). |
|
Definition at line 1377 of file plug_maxima.c. References v1. Referenced by process_data().
|
|
Definition at line 1356 of file plug_maxima.c. References v1. Referenced by process_data().
|
|
Referenced by MASKCALC_main(), and MAXIMA_main(). |
|
Referenced by HEMISUB_main(), and MAXIMA_main(). |
|
Referenced by fill_afni_struct(), and r_set_afni_s_from_dset(). |
|
Definition at line 1400 of file plug_maxima.c. References calloc, THD_3dim_dataset::daxes, r_afni_s::dset, DSET_ARRAY, DSET_BRICK_FACTOR, DSET_NVALS, ENTRY, r_afni_s::factor, r_afni_s::fimage, grMessage, r_afni_s::max_u_short, r_afni_s::num_dsets, r_afni_s::nvox, r_afni_s::nx, THD_dataxes::nxx, r_afni_s::ny, THD_dataxes::nyy, r_afni_s::nz, THD_dataxes::nzz, r_get_max_u_short(), rERROR, RETURN, r_afni_s::simage, r_afni_s::sub_brick, r_afni_s::subs, and r_afni_s::want_floats. Referenced by process_args().
01401 { 01402 ENTRY("r_set_afni_s_from_dset"); 01403 01404 if ( A->num_dsets >= R_MAX_AFNI_DSETS ) 01405 { 01406 sprintf( grMessage, "Error: rsasfd_00\n" 01407 "We only have memory to hold %d datasets. exiting...\n", 01408 R_MAX_AFNI_DSETS ); 01409 rERROR( grMessage ); 01410 01411 RETURN(0); 01412 } 01413 01414 A->dset[ 0 ] = dset; /* rickr - use sub-brick */ 01415 A->simage[ 0 ] = ( short * )DSET_ARRAY( dset, A->sub_brick ); 01416 01417 if ( !A->simage[0] ) 01418 { 01419 sprintf(grMessage, 01420 "** data not available, is this in warp-on-demand mode?\n"); 01421 rERROR(grMessage); 01422 RETURN(0); 01423 } 01424 01425 if ((A->factor[0] = DSET_BRICK_FACTOR(dset, A->sub_brick)) == 0.0 ) 01426 A->factor[0] = 1.0; 01427 01428 A->subs [ 0 ] = DSET_NVALS( dset ); 01429 01430 A->nx = dset->daxes->nxx; 01431 A->ny = dset->daxes->nyy; 01432 A->nz = dset->daxes->nzz; 01433 A->nvox = A->nx * A->ny * A->nz; 01434 01435 if ( A->want_floats ) 01436 { 01437 int count; 01438 short * sptr; 01439 float * fptr; 01440 float factor = A->factor[ 0 ]; /* just for speed */ 01441 01442 if ( ( A->fimage[ 0 ] = 01443 ( float * )calloc( A->nvox, sizeof( float ) ) ) == NULL ) 01444 { 01445 sprintf( grMessage, "Error: rsasfd_10\n" 01446 "Failed to allocate memory for %d floats.\n", A->nvox ); 01447 rERROR( grMessage ); 01448 01449 RETURN(0); 01450 } 01451 01452 fptr = A->fimage[ 0 ]; 01453 sptr = A->simage[ 0 ]; 01454 for ( count = 0; count < A->nvox; count++ ) 01455 *fptr++ = *sptr++ * factor; 01456 } 01457 01458 A->max_u_short = r_get_max_u_short( (u_short *)A->simage[0], A->nvox ); 01459 01460 /* A->num_dsets++; not using more than one */ 01461 01462 RETURN(1); 01463 } |
|
Referenced by apply_fill_radius(). |
|
Referenced by find_local_maxima(), and process_args(). |
|
Referenced by create_point_list(), and process_data(). |
|
Referenced by clear_around_point(). |
|
|
Variable Documentation
|
Definition at line 138 of file plug_maxima.h. |
|
Definition at line 137 of file plug_maxima.h. |
|
Definition at line 55 of file plug_maxima.h. Referenced by add_point_to_list(), clear_around_point(), init_maxima_s(), process_args(), r_set_afni_s_from_dset(), and weighted_index(). |