Kernels

Header file defining Kernels struct.

Author

Venkata Mukund Kashyap Yedunuthala

Date

23 January 2024

struct Kernels
#include <kernels.h>

Public Functions

Kernels()

Default constructor for the Kernels struct.

void setIdentity(int **identityNew)

Sets the identity kernel.

Parameters:

identityNew – New identity kernel to set.

void setEdgeDetection(int **edgeDetectionNew)

Sets the edge detection kernel.

Parameters:

edgeDetectionNew – New edge detection kernel to set.

void setSharpen(int **sharpenNew)

Sets the sharpening kernel.

Parameters:

sharpenNew – New sharpening kernel to set.

void setGBlur(double **gaussBlurNew)

Sets the Gaussian blur kernel.

Parameters:

gaussBlurNew – New Gaussian blur kernel to set.

void setMatSize(unsigned short matSizeNew)

Sets the common size for all the kernels.

Parameters:

matSizeNew – New common size for the kernels.

void setInstances(unsigned short edge, unsigned short blur, unsigned short sharp)

Sets the number of instances for each type of kernel.

Parameters:
  • edge – Number of instances for edge detection kernel.

  • blur – Number of instances for Gaussian blur kernel.

  • sharp – Number of instances for sharpening kernel.

Public Members

int **identity

2D array representing the identity kernel.

int **edgeDetection

2D array representing the edge detection kernel.

int **sharpen

2D array representing the sharpening kernel.

double **gaussBlur

2D array representing the Gaussian blur kernel.

unsigned short *instancesArray

Array storing the number of instances for each type of kernel.

unsigned short matSize

Common size for all the matrices (kernels).