PandA-2024.02
Macros | Functions
mypgm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_IMAGESIZE   256
 
#define MAX_BRIGHTNESS   255 /* Maximum gray level */
 
#define GRAYLEVEL   256 /* No. of gray levels */
 
#define MAX_FILENAME   256 /* Filename length limit */
 
#define MAX_BUFFERSIZE   256
 

Functions

void load_image_data (const char *file_name, unsigned char *image1, unsigned int *x_size1, unsigned int *y_size1)
 
void save_image_data (const char *file_name, unsigned char *image2, unsigned int x_size2, unsigned int y_size2)
 

Macro Definition Documentation

◆ GRAYLEVEL

#define GRAYLEVEL   256 /* No. of gray levels */

Definition at line 9 of file mypgm.h.

◆ MAX_BRIGHTNESS

#define MAX_BRIGHTNESS   255 /* Maximum gray level */

Definition at line 8 of file mypgm.h.

Referenced by laplacian(), load_image_data(), make_inverse_image(), save_image_data(), sharpen(), and sobel().

◆ MAX_BUFFERSIZE

#define MAX_BUFFERSIZE   256

Definition at line 11 of file mypgm.h.

Referenced by load_image_data().

◆ MAX_FILENAME

#define MAX_FILENAME   256 /* Filename length limit */

Definition at line 10 of file mypgm.h.

Referenced by main().

◆ MAX_IMAGESIZE

#define MAX_IMAGESIZE   256

Function Documentation

◆ load_image_data()

void load_image_data ( const char *  file_name,
unsigned char *  image1,
unsigned int *  x_size1,
unsigned int *  y_size1 
)

Definition at line 9 of file mypgm.c.

References MAX_BRIGHTNESS, MAX_BUFFERSIZE, MAX_IMAGESIZE, NULL, and x.

Referenced by main().

Here is the caller graph for this function:

◆ save_image_data()

void save_image_data ( const char *  file_name,
unsigned char *  image2,
unsigned int  x_size2,
unsigned int  y_size2 
)

Definition at line 76 of file mypgm.c.

References MAX_BRIGHTNESS, MAX_IMAGESIZE, and x.

Referenced by main().

Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:09 for PandA-2024.02 by doxygen 1.8.13