nstats_raw

Synopsis

Print a brief description of the node data in a field.


  module nstats_raw <src_file="nstats/node_stats_vxp.c",
    c_src_files="nstats/node_stats.c cp_utils/avs_err.c
    cp_utils/data_field.c",
    hdr_dirs="nstats cp_utils">
    {
      Mesh_Unif+Node_Data &input<NEportLevels={2,0},export=2>;
      string info<NEportLevels={1,2}>;
      omethod+notify_inst+req update
        (input+read+notify+req,
        info+write) = "node_stats_vxp";
    };

Description

nstats_raw prints a brief description of the node data in a uniform field. The information includes the field's dimensions, number of nodes, and for each component, the vector length, data type, number of non-zero nodes and sum of the node data values.

Inputs

&in

Reference to a uniform field with Node_Data of any type.

Outputs

info

The string containing the description of the field data.

Utility Macros

The low-level module nstats_raw is used in the Functional Macro nstats and the User Macro node_statistics. The latter also uses the UI Macro nstats_UI.

Example

An example application Node_Stats_Eg is provided that uses the AVS/Express sample image mandrill.x to display the node data statistics.

Files

iac_proj/nstats/ns_mods.v contains the nstats_raw module V definitions.

iac_proj/cp_utils contains source code for functions called by nstats_raw.

Prerequisites

This project relies on the successful installation of the following components. Without them it will not function correctly.

Other Notes

By default the low-level library NStatsMods, which needs to be compiled, has the process set to express.

This module uses functions in the cp_utils library (available from IAC). It must be installed before compiling this project.

Author

Chris Pudney

Biomedical Confocal Microscopy Research Centre
Department of Pharmacology
The University of Western Australia
Nedlands, W.A. 6907
AUSTRALIA

E-mail: cpudney@alphapharm.pharm.uwa.edu.au
Phone, Fax: (+61 8) 9346 4571, (+618) 9346 3469

See Also

nstats, node_statistics, nstats_UI and Node_Stats_Eg.