volcamcore  2019 march
Biblioteca volcamcore
Clases
Referencia del Archivo imagenes_wc.h

Clase para el manejo de los registros/archivos de imágenes y de sus parámetros en un periodo de tiempo determinado. Más...

#include <QObject>
#include <QtWidgets>
#include <QtSql>
#include "conf_stndevices.h"
#include "imagepro_all.h"
#include "timeseries_analysis.h"

Ir al código fuente de este archivo.

Clases

struct  ImgsWC
 
class  Imagenes_WC
 

Descripción detallada

Clase para el manejo de los registros/archivos de imágenes y de sus parámetros en un periodo de tiempo determinado.

Versión
1.0
Fecha
2019 march
Autor
Carlos Alberto Ospina Caicedo (SGC-OVSPo)

Con esta clase, es posible buscar imágenes desde una ruta de archivos o desde una base de datos (geodata)

y obtener la información de cada una de estas imágenes en la estructura ImgsWC

Además es posible obtener la estructura ImgsWC_params (imagepro_all.h) para la vigencia de las imágenes

Para aprender a usar esta clase puedes ejecutar la función getHelp()

Help to use Imagenes_WC.h

This class is based on a structure called ImgsWC (images web cams)

When you use this class you should work with this structure

This structure contains the follow fields:

QString stations; Stations stored at one structure splitted by ;

QList of int ids; List of ids getted from database or randomly

QList of QDateTime datetime; List of datetime getted from database or image names on the catalog structure

QStringList path; List of path getted from database or the catalog structure

QStringList second_path; List of second_path getted from database or the catalog structure

QStringList station; List of station getted from database or the catalog structure

QStringList edition; List of edition (general or selection) optinos edditable to specify if you want to make a processing on this image

QList of int paramsrelated_id; List of paramsrelated_id. Parameters getted from Conf_StnDevices.h using the imagepro_all.h structure

QStringList classification; List of classification data in json format

  1. Set the Config structure or the Catalog_directory

DB: Set the Db_geodata data base structure if you will use data base

Then, use the function getImageWCList_db to get the image list from data base

Catalog: Use the function getImageWCList to get the image list from the catalog files structure

Use the function getImgsWC_params to get a ImgsWC_params structure that is an important related to the image list

Use the function getImageWCList_text to get a text of the complete image list in a csv formatted string

Use the function saveImagesWCList to save file with the complete image list in a Text(csv formatted file) or Json formatted file or a json Binary file

Use the function getImageWCList_json to read a file with a image list in a Text(csv formatted file) or Json formatted file or a json Binary file

Example to get imgwc:

imgwc_class = new Imagenes_WC();
ui->textEdit->append(imgwc_class->getHelp());
imgwc_class->setCatalog_directory(vquery->config_global.catalogDir);
imgwc_class->setDb_geodata(vquery->config_global.db_geodata);
imgwcp = imgwc_class->getImgsWC_params(vquery->dlb,dt_start,dt_end);
imgwc_class->setImgsWC_params(imgwcp);
imgwc = imgwc_class->getImageWCList_db(vquery->config_global.offsetFromUTC,
\"tafwc\",
dt_start,
dt_end);

Example to get imgwc_params:

imgwc_class = new Imagenes_WC();
ui->textEdit->append(imgwc_class->getHelp());
imgwc_class->setCatalog_directory(vquery->config_global.catalogDir);
imgwc_class->setDb_geodata(vquery->config_global.db_geodata);
QDateTime dt_start = QDateTime(QDate::currentDate().addDays(0));
QDateTime dt_end = dt_start.addDays(1);
imgwcp = vquery->imgwc_class->getImgsWC_params(vquery->config_global.offsetFromUTC,vquery->dlb,dt_start,dt_end);
ui->textEdit->append(vquery->imgwc_class->getImgsWC_params_text(imgwcp,-1));