Macros | Functions | Variables
pmghandling.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "pgmhandling.h"
Include dependency graph for pmghandling.c:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 
#define HI(num)   (((num) & 0x0000FF00) << 8)
 
#define LO(num)   ((num) & 0x000000FF)
 

Functions

int ** allocate_dynamic_matrix (int row, int col)
 
void deallocate_dynamic_matrix (int **matrix, int row)
 
void freePGM (const PGMData *data)
 
PGMDatainitPgm (int rows, int cols)
 
void PGMDrawCross (PGMData *data, int x0, int y0, unsigned char ucColor, int halfLen, int width)
 
void PGMEllipse (const PGMData *data, float xc, float yc, float *vecArr, unsigned char ucColor)
 
unsigned char PGMGetPixel (PGMData *data, int x0, int y0)
 
void PGMLine (PGMData *data, int x0, int y0, int x1, int y1, unsigned char ucColor)
 
void PGMPutText (PGMData *data, char *szText, int xPos, int yPos, unsigned char ucColor)
 
void PGMSet (PGMData *data, unsigned char ucColor)
 
void PGMSetPixel (PGMData *data, int x0, int y0, unsigned char ucColor)
 
PGMDatareadPGM (PGMData *data, const char *file_name)
 
void SkipComments (FILE *fp)
 
void writePGM (const PGMData *data, const char *filename)
 

Variables

unsigned char fontCharBlock8x12 []
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 5 of file pmghandling.c.

◆ HI

#define HI (   num)    (((num) & 0x0000FF00) << 8)

Definition at line 121 of file pmghandling.c.

◆ LO

#define LO (   num)    ((num) & 0x000000FF)

Definition at line 122 of file pmghandling.c.

Function Documentation

◆ allocate_dynamic_matrix()

int** allocate_dynamic_matrix ( int  row,
int  col 
)

Definition at line 89 of file pmghandling.c.

◆ deallocate_dynamic_matrix()

void deallocate_dynamic_matrix ( int **  matrix,
int  row 
)

Definition at line 111 of file pmghandling.c.

◆ freePGM()

void freePGM ( const PGMData data)

Definition at line 231 of file pmghandling.c.

◆ initPgm()

PGMData* initPgm ( int  rows,
int  cols 
)

Definition at line 236 of file pmghandling.c.

◆ PGMDrawCross()

void PGMDrawCross ( PGMData data,
int  x0,
int  y0,
unsigned char  ucColor,
int  halfLen,
int  width 
)

Definition at line 28 of file pmghandling.c.

◆ PGMEllipse()

void PGMEllipse ( const PGMData data,
float  xc,
float  yc,
float *  vecArr,
unsigned char  ucColor 
)

Definition at line 276 of file pmghandling.c.

◆ PGMGetPixel()

unsigned char PGMGetPixel ( PGMData data,
int  x0,
int  y0 
)

Definition at line 23 of file pmghandling.c.

◆ PGMLine()

void PGMLine ( PGMData data,
int  x0,
int  y0,
int  x1,
int  y1,
unsigned char  ucColor 
)

Definition at line 71 of file pmghandling.c.

◆ PGMPutText()

void PGMPutText ( PGMData data,
char *  szText,
int  xPos,
int  yPos,
unsigned char  ucColor 
)

Definition at line 248 of file pmghandling.c.

◆ PGMSet()

void PGMSet ( PGMData data,
unsigned char  ucColor 
)

Definition at line 12 of file pmghandling.c.

◆ PGMSetPixel()

void PGMSetPixel ( PGMData data,
int  x0,
int  y0,
unsigned char  ucColor 
)

Definition at line 51 of file pmghandling.c.

◆ readPGM()

PGMData* readPGM ( PGMData data,
const char *  file_name 
)

Definition at line 142 of file pmghandling.c.

◆ SkipComments()

void SkipComments ( FILE *  fp)

Definition at line 124 of file pmghandling.c.

◆ writePGM()

void writePGM ( const PGMData data,
const char *  filename 
)

Definition at line 192 of file pmghandling.c.

Variable Documentation

◆ fontCharBlock8x12

unsigned char fontCharBlock8x12

Definition at line 10 of file pmghandling.c.



sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13