PandA-2024.02
Macros | Functions
boxfilter.c File Reference
#include <stdio.h>
#include "boxfilter.h"
Include dependency graph for boxfilter.c:

Go to the source code of this file.

Macros

#define DIMENSION_X   1000
 
#define DIMENSION_Y   8
 
#define BOX1   3
 
#define BOX2   3
 
#define BOX3   3
 
#define BOX4   3
 
#define BOX5   3
 
#define BOX6   3
 
#define BOX7   3
 
#define BOX8   3
 
#define BOX9   3
 

Functions

void filter (int y, int input[][DIMENSION_X], int *output)
 a 3x3 box filter. Filter an entire row of the matrix in one call. More...
 
int main ()
 

Macro Definition Documentation

◆ BOX1

#define BOX1   3

Definition at line 15 of file boxfilter.c.

Referenced by filter().

◆ BOX2

#define BOX2   3

Definition at line 16 of file boxfilter.c.

Referenced by filter().

◆ BOX3

#define BOX3   3

Definition at line 17 of file boxfilter.c.

Referenced by filter().

◆ BOX4

#define BOX4   3

Definition at line 18 of file boxfilter.c.

Referenced by filter().

◆ BOX5

#define BOX5   3

Definition at line 19 of file boxfilter.c.

◆ BOX6

#define BOX6   3

Definition at line 20 of file boxfilter.c.

Referenced by filter().

◆ BOX7

#define BOX7   3

Definition at line 21 of file boxfilter.c.

Referenced by filter().

◆ BOX8

#define BOX8   3

Definition at line 22 of file boxfilter.c.

Referenced by filter().

◆ BOX9

#define BOX9   3

Definition at line 23 of file boxfilter.c.

Referenced by filter().

◆ DIMENSION_X

#define DIMENSION_X   1000

Definition at line 1 of file boxfilter.c.

Referenced by filter().

◆ DIMENSION_Y

#define DIMENSION_Y   8

Definition at line 2 of file boxfilter.c.

Referenced by filter(), and main().

Function Documentation

◆ filter()

void filter ( int  y,
int  input[][DIMENSION_X],
int *  output 
)

a 3x3 box filter. Filter an entire row of the matrix in one call.

Definition at line 26 of file boxfilter.c.

References BOX1, BOX2, BOX3, BOX4, BOX6, BOX7, BOX8, BOX9, checksum(), DIMENSION_X, DIMENSION_Y, input, sum, and x.

Referenced by add_filter(), main(), and stencil().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 85 of file boxfilter.c.

References checksum_expected, checksum_output, DIMENSION_Y, filter(), original, result, and x.

Here is the call graph for this function:

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