#include <stdio.h>
#include "lissom.h"
#include "file_io.h"
Include dependency graph for ppm_draw.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | IMG_SIZE_X 1024 |
| Max image bitmap width. More... | |
| #define | IMG_SIZE_Y 240 |
| Max image bitmap height. More... | |
Typedefs | |
| typedef int | LOff |
| Functions with this return type return the number of pixels advanced horizontally. More... | |
Functions | |
| void | ppm_init_hook (void) |
| void | ppm_bitmap_initialize ( void ) |
| Call this routine before drawing anything into the bitmap, each time you start a new plot. More... | |
| int | ppm_cortex_height (void) |
| void | ppm_draw_afferent_weight_map (const char* filename, int eye, int baseline_eye=Uninitialized) |
| Draws afferent weights from all (or a subset of) the neurons in the given eye. More... | |
| LOff | ppm_draw_activity (double activity[NMAX][NMAX], int left_offset) |
| LOff | ppm_draw_afferent_weights (int center_x, int center_y, a_weight weights[WTMAX][WTMAX], int ui, int uj, int left_offset) |
| LOff | ppm_draw_angle_histogram ( OrientationHistogram histo, int symmetric, int left_offset) |
| Draw a histogram of activation values for each angle. More... | |
| LOff | ppm_draw_angle_histogram_difference ( OrientationHistogram poshisto, OrientationHistogram neghisto, int left_offset) |
| LOff | ppm_draw_lateral_weights (int ui, int uj, l_weight *weights, int radius, int ar_width, int left_offset, int isInhWts, int mark_neuron) |
| LOff | ppm_draw_ocular_dominance (double od_pref_array[NMAX][NMAX]) |
| Draws od_prefs with a border. More... | |
| LOff | ppm_draw_or_pref (int or_preferences[NMAX][NMAX], double or_selectivities[NMAX][NMAX], bool selectivity_only, int left_offset) |
| LOff | ppm_draw_or_color_key (int num_examples, int key_length, int vertical, int left_offset) |
| LOff | ppm_draw_orientations (int or_preferences[EYE_ARRAY_SIZE][NMAX][NMAX], double or_selectivities[EYE_ARRAY_SIZE][NMAX][NMAX], bool selectivity_only=false) |
| Draws or_prefs with a border and histogram. More... | |
| LOff | ppm_draw_presentation (double input_v[RNMAX*RNMAX], double init[NMAX][NMAX], double settled[NMAX][NMAX] ) |
| LOff | ppm_draw_retina (int eye, double input_v[RNMAX*RNMAX], int left_offset) |
| Draw the current activity on the retina. More... | |
| LOff | ppm_draw_weights (int ui, int uj ) |
| Draws all weights for a single neuron. More... | |
| int | ppm_presentation_height (void) |
| Returns maximum height of combined plot of retina and cortex (typical). More... | |
| int | ppm_write_to_file ( const char* filename, const char *comments, int width, int height, int max_val ) |
| Writes bitmap in memory to a ppm file; assumes data is in global variable "image". More... | |
Definition in file ppm_draw.h.
|
|
Max image bitmap width.
Definition at line 17 of file ppm_draw.h. |
|
|
Max image bitmap height.
Definition at line 22 of file ppm_draw.h. |
|
|
Functions with this return type return the number of pixels advanced horizontally.
Definition at line 30 of file ppm_draw.h. |
|
|
Call this routine before drawing anything into the bitmap, each time you start a new plot.
Definition at line 759 of file ppm_draw.c. |
|
|
Definition at line 863 of file ppm_draw.c. |
|
|
Draws afferent weights from all (or a subset of) the neurons in the given eye. This one is separate from all other PPM plots and was written later than most (using C++); it uses its own image buffer since the image is typically much different in size from the regular plots. Definition at line 1533 of file ppm_draw.c. |
|
|
Definition at line 1175 of file ppm_draw.c. |
|
|
Draw a histogram of activation values for each angle. If symmetric is true, assumes both positive and negative values are allowed, each at half-scale. Definition at line 1244 of file ppm_draw.c. Referenced by ppm_draw_orientations(), ppm_draw_presentation(), and ppm_draw_weights(). |
|
|
Definition at line 1273 of file ppm_draw.c. |
|
|
Definition at line 1060 of file ppm_draw.c. |
|
|
Draws od_prefs with a border.
Definition at line 1438 of file ppm_draw.c. |
|
|
Definition at line 1292 of file ppm_draw.c. |
|
|
Definition at line 908 of file ppm_draw.c. |
|
|
Draws or_prefs with a border and histogram.
Definition at line 1384 of file ppm_draw.c. |
|
|
Draw the current activity on the retina. Assumes input vector starts at index zero, so e.g. the right eye will need to be passed as a vector that starts at RN*RN. Definition at line 1126 of file ppm_draw.c. Referenced by ppm_draw_presentation(). |
|
|
Draws all weights for a single neuron. Draws afferent weights to left eye, then inhibitory weights, excitatory weights, and afferent weights to rest of the eyes, if any. Definition at line 1471 of file ppm_draw.c. |
|
|
Definition at line 294 of file ppm_draw.c. |
|
|
Returns maximum height of combined plot of retina and cortex (typical).
Definition at line 817 of file ppm_draw.c. |
|
|
Writes bitmap in memory to a ppm file; assumes data is in global variable "image".
Definition at line 1916 of file ppm_draw.c. Referenced by save_presentation_image(). |
1.2.1 written by Dimitri van Heesch,
© 1997-2000