4 #include <qapplication.h> 16 #include <qerrormessage.h> 17 #include <qmessagebox.h> 18 #include <qstatusbar.h> 20 #include <Q3PointArray> 26 #include <Q3PaintDeviceMetrics> 27 #include <Q3ButtonGroup> 31 #include "../include/Matematica.h" 32 #include "../include/Draw.h" 33 #include "../include/VarDatFile.h" 55 void DReshape(
int weight,
int height);
56 void DrEkeyboard(
unsigned char key);
57 void PrintIntensity();
60 int Noise(
unsigned char *
Picture,
unsigned char *OutPicture,
int width,
int height);
61 int SwapBlocks(
unsigned char *Picture,
unsigned char *OutPicture,
int width,
int height,
PERMUTE *Perm,
int NGridw,
int NGridh,
int *Sequence1,
int NPartition);
62 int ShiftBlocks(
unsigned char *Picture,
unsigned char *OutPicture,
int width,
int height,
int *Sequence,
int NGridw,
int NGridh,
int *Sequence1,
int NPartition);
63 int Discretize(
unsigned char *Picture,
unsigned char *OutPicture,
int ImWidth,
int ImHeight,
int WWidth,
int WHeight,
int Blockw,
int Blokh);
64 int Edges(
unsigned char *Picture,
unsigned char *OutPicture,
int width,
int height);
65 int IncreaseResolution(
unsigned char *Picture,
unsigned char *OutPicture,
int ImWidth,
int ImHeight,
int Times);
66 int BuffSize(){
return ImWidth*ImHeight;};
69 unsigned char Median[4];
70 unsigned char Quart1[4];
71 unsigned char Quart3[4];
80 void setXRotation(
int angle);
81 void setYRotation(
int angle);
82 void setZRotation(
int angle);
83 void NomeFile(
const QString &);
84 void NomeFile(
char *ExtName);
90 void ImpGrana(
int Grana);
91 void FilterCoarseGrain();
92 void FilterIncrease();
93 void FilterContrast();
101 void xRotationChanged(
int angle);
102 void yRotationChanged(
int angle);
103 void zRotationChanged(
int angle);
105 void PuntaCoord(
double **,
int,
int,
int);
111 void keyboard(
unsigned char key,
int x,
int y);
115 void DrMessage(
const char * s, ...);
130 virtual void initializeGL();
131 virtual void paintEvent(QPaintEvent (event));
132 virtual void paintGL();
133 virtual void resizeGL(
int width,
int height);
134 void mousePressEvent(QMouseEvent *event);
135 void mouseMoveEvent(QMouseEvent *event);
Draw provides the basic configuration of the openGL libraries used in every derived program...
void Run()
Create an animation.
void EffectCoarseGrain(int Grana)
Defocus the images in blocks.
Indices for the permutation.
int Picture()
Write a tiff file of the data in pixel.
void EffectMotion()
Shifting of pixels.
int ImWidth
Width and height of the image.
int MainWindow
Refers to optional different windows.
void EffectMC()
Applies a random disposition of blocks.
void InitConstant()
Initializes all the view constants.
void EffectFilter()
Applies a filter to pixel.
Reads and stores a data file to be elaborated via Matematica.
void EffectIncrease()
Increase the resolution.
Implementation of useful algorythms.