-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgerador_de_testes.h
36 lines (27 loc) · 1.54 KB
/
gerador_de_testes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*============================================================================*/
/* GERADOR DE CASOS DE TESTE PARA O PROBLEMA DO ESTIMADOR DE DISTANCIA */
/*----------------------------------------------------------------------------*/
/* Autor: Bogdan T. Nassu - [email protected] */
/*============================================================================*/
/** Um gerador de casos de teste para o problema do estimador de distancia.
* O gerador funciona abrindo uma imagem de referência e adicionando sobre ela
* a imagem de um veículo, além de algum ruído. A imagem é rotacionada. Cada
* teste contém 2 imagens, com o veículo em diferentes locais, além de uma
* estimativa da distancia. */
/*============================================================================*/
#ifndef __GERADOR_DE_TESTES_H
#define __GERADOR_DE_TESTES_H
/*============================================================================*/
#include "imagem.h"
/*============================================================================*/
typedef struct
{
Imagem* background;
Imagem** img_veiculos;
} GeradorDeTestes;
/*============================================================================*/
GeradorDeTestes* criaGeradorDeTestes ();
void destroiGeradorDeTestes (GeradorDeTestes* g);
double geraCasoDeTeste (GeradorDeTestes* g, int seed, Imagem** img1, Imagem** img2, Imagem** bg);
/*============================================================================*/
#endif /* __GERADOR_DE_TESTES_H */