Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

vp_shade.c File Reference

#include "vp_global.h"

Go to the source code of this file.


Defines

#define NORM_13
#define NORM_N   44
#define NORM_BITS   13
#define MAX_NORMAL   7923

Functions

void InitNormalTables ANSI_ARGS ((void))
void InitNormalTables ()
int vpNormalIndex (nx, ny, nz) double nx

Variables

int NormalTablesInitialized = 0
short * NormalPy
short NormalPyStorage [1+2 *NORM_N]
short * NormalXLimit
short NormalXLimitStorage [1+2 *NORM_N]
int ny
int nz
double * nx
int length
unsigned char * scalar_data
unsigned char * scalar_minus_y
unsigned char * scalar_plus_y
unsigned char * scalar_minus_z
unsigned char * scalar_plus_z
void * voxel_data
int scalar_field
int grad_field
int norm_field

Define Documentation

#define MAX_NORMAL   7923
 

Definition at line 100 of file vp_shade.c.

#define NORM_13
 

Definition at line 93 of file vp_shade.c.

#define NORM_BITS   13
 

Definition at line 98 of file vp_shade.c.

#define NORM_N   44
 

Definition at line 97 of file vp_shade.c.

Referenced by InitNormalTables().


Function Documentation

void InitNormalTables ANSI_ARGS (void)    [static]
 

void InitNormalTables   [static]
 

Definition at line 128 of file vp_shade.c.

References NORM_N, NormalPy, NormalPyStorage, NormalTablesInitialized, NormalXLimit, and NormalXLimitStorage.

00129 {
00130     int y, xcount, codepoint;
00131     int sum;
00132     double value;
00133 
00134     /* initialize NormalPy */
00135     xcount = 1;
00136     codepoint = 2;
00137     NormalPy = &NormalPyStorage[NORM_N];
00138     NormalXLimit = &NormalXLimitStorage[NORM_N];
00139     for (y = -NORM_N; y <= NORM_N; y++) {
00140         NormalPy[y] = codepoint + (((xcount-1)/2) << 1);
00141         codepoint += (xcount << 1);
00142         NormalXLimit[y] = (xcount-1)/2;
00143         if (y < 0)
00144             xcount += 2;
00145         else
00146             xcount -= 2;
00147     }
00148 
00149     NormalTablesInitialized = 1;
00150 }

int vpNormalIndex nx   ,
ny   ,
nz   
 


Variable Documentation

int grad_field
 

Definition at line 363 of file vp_shade.c.

int length
 

Definition at line 361 of file vp_shade.c.

int norm_field
 

Definition at line 364 of file vp_shade.c.

short* NormalPy [static]
 

Definition at line 112 of file vp_shade.c.

Referenced by InitNormalTables().

short NormalPyStorage[1+2*NORM_N] [static]
 

Definition at line 116 of file vp_shade.c.

Referenced by InitNormalTables().

int NormalTablesInitialized = 0 [static]
 

Definition at line 111 of file vp_shade.c.

Referenced by InitNormalTables().

short* NormalXLimit [static]
 

Definition at line 117 of file vp_shade.c.

Referenced by InitNormalTables().

short NormalXLimitStorage[1+2*NORM_N] [static]
 

Definition at line 118 of file vp_shade.c.

Referenced by InitNormalTables().

double* nx
 

Definition at line 200 of file vp_shade.c.

double * ny
 

Definition at line 200 of file vp_shade.c.

double * nz
 

Definition at line 200 of file vp_shade.c.

Referenced by activation_region(), adwarp_refashion_dataset(), AFNI_read_images(), AFNI_refashion_dataset(), apply_3shear(), apply_mask(), apply_xshear(), apply_yshear(), apply_zshear(), argmax_(), argnum_(), auto_initialize(), avg_epochs(), center_of_mass(), check_for_valid_inputs(), clustedit3D(), connectivity_tests(), create_row(), create_Tmask(), create_Tmask_byte(), create_Tmask_rgba(), cubic_spline(), DRAW_2D_circle(), DRAW_2D_expand(), DRAW_3D_expand(), DRAW_3D_sphere(), DRAW_into_dataset(), DRAW_receiver(), dset_to_mri(), EDIT_add_bricklist(), EDIT_aver_fvol(), EDIT_blur_volume(), EDIT_blur_volume_3d(), EDIT_filter_volume(), EDIT_main(), EDIT_one_dataset(), EDIT_volpad(), estimate_field(), estimate_gfw(), estpdf_initialize(), eval_registration(), extract_assign_directions(), extract_byte_fs(), extract_byte_liby(), extract_byte_lifl(), extract_byte_lix(), extract_byte_lixx(), extract_byte_nn(), extract_byte_speedtest(), extract_byte_ts(), extract_byte_tsx(), extract_rgba_nn(), find_extrema(), flip_xy(), flip_xz(), flip_yz(), gaussian_filter(), generate_image(), get_activation_region(), get_best_shift(), get_octant_clips(), get_options(), getplane_byte(), HISTO_main(), identify_clusters(), IMREG_main(), initialize(), initialize_options(), initialize_program(), main(), make_peel_mask(), MCW_build_mask(), MCW_cluster_to_vol(), MCW_erode_clusters(), MCW_find_clusters(), MCW_scale_to_max(), MCW_vol_amax(), mri_3dalign_edging_default(), mri_3dalign_setup(), MRI_5blur_inplace_3D(), MRI_autobbox(), mri_automask_image(), mri_brainormalize(), mri_get_cmass_3D(), mri_imcount(), mri_imcount_analyze75(), mri_imcount_dicom(), mri_medianfilter(), mri_new_7D_generic(), mri_new_vol(), mri_new_vol_empty(), mri_read3D_analyze75(), mri_read_3A(), mri_read_3D(), mri_read_3D_delay(), mri_read_analyze75(), mri_read_dicom(), mri_read_siemens(), mri_short2mask(), mri_try_7D(), mri_warp3D_align_edging_default(), mri_warp3d_align_one(), mri_warp3D_align_setup(), mri_warp3D_cubic(), mri_warp3D_get_delta(), mri_warp3D_linear(), mri_warp3D_NN(), mri_warp3D_quintic(), mri_warp3D_resize(), mri_watershedize(), NIH_find_clusters(), niml_to_mri(), output_results(), partial_cliplevel(), PC_read_opts(), pcalc(), pfit(), poly_field(), process_all_datasets(), process_as_floats(), process_data(), project_byte_mip(), putplane_byte(), r_fill_resampled_data_brick(), r_index2pt(), r_INT_cb_fill(), r_mri_read_dicom(), RCREND_cutout_blobs(), RCREND_load_dsl(), RCREND_reload_func_dset(), RCREND_xhair_overlay(), RCREND_xhair_underlay(), read_afni_data(), remove_field(), remove_isolated_stuff(), REND_cutout_blobs(), REND_load_dsl(), REND_reload_func_dset(), REND_xhair_overlay(), REND_xhair_underlay(), ROIPLOT_main(), RT_registration_2D_close(), RT_registration_2D_onevol(), RT_registration_2D_setup(), RT_registration_3D_setup(), segment_envelope(), segment_x_slices(), segment_y_slices(), segment_z_slices(), STAVG_main(), SUMA_FormAfnidset(), SUMA_GetVoxelsIntersectingTriangle(), SUMA_isSkin(), SUMA_make_vnlist(), SUMA_SurfGridIntersect(), swaptest(), T3D_fix_dataset_dimen(), T3D_read_images(), T3D_swap_CB(), T3D_type_av_CB(), target_into_dataset(), THD_3dim_dataset_to_brick(), THD_datablock_apply_atr(), THD_datablock_from_atr(), THD_dataset_rowfillin(), THD_dataset_zfillin(), THD_get_dset_row(), THD_init_datablock_brick(), THD_load_analyze(), THD_load_ctfmri(), THD_load_ctfsam(), THD_load_datablock(), THD_load_minc(), THD_load_mpeg(), THD_load_nifti(), THD_mask_clip_neighbors(), THD_mask_clust(), THD_mask_dilate(), THD_mask_distize(), THD_mask_erode(), THD_mask_fillin_completely(), THD_mask_fillin_once(), THD_open_analyze(), THD_open_ctfmri(), THD_open_ctfsam(), THD_open_mpeg(), THD_orient_guess(), THD_peel_mask(), THD_put_dset_row(), THD_rota_vol(), THD_rota_vol_2byte(), THD_rota_vol_byte(), THD_rota_vol_matvec(), THD_rota_vol_matvec_2byte(), THD_set_dataset_attributes(), THD_write_1D(), THD_write_datablock(), threshold_data(), TT_whereami(), voldif(), warp_image(), WINsorize(), write_bucket(), and zedit_mask().

unsigned char* scalar_data
 

Definition at line 360 of file vp_shade.c.

int scalar_field
 

Definition at line 362 of file vp_shade.c.

unsigned char* scalar_minus_y
 

Definition at line 253 of file vp_shade.c.

unsigned char* scalar_minus_z
 

Definition at line 255 of file vp_shade.c.

unsigned char* scalar_plus_y
 

Definition at line 254 of file vp_shade.c.

unsigned char* scalar_plus_z
 

Definition at line 256 of file vp_shade.c.

void* voxel_data
 

Definition at line 257 of file vp_shade.c.

 

Powered by Plone

This site conforms to the following standards: