1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/tboox-hnr

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
qimagescene.h 2.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
ruki Отправлено 02.07.2013 10:09 2c68758
#ifndef QIMAGESCENE_H
#define QIMAGESCENE_H
#include <QGraphicsScene>
#include <QList>
#include <QPainter>
#include <QPolygonF>
#include <QTime>
#include "prefix.h"
#include "imageconvector.h"
#include "qimage_painter.h"
//#include "sample_helper.h"
#include "sh_pp.h"
class QImageScene : public QGraphicsScene
{
Q_OBJECT
public:
QImageScene( QObject * parent = 0 );
public:
bool analyze();
void LoadImage(QString const& filename);
public:
pimages_info_row_type const& pimages_info_row() const { return m_pimages_info_row; }
pimages_info_row_type& pimages_info_row() { return m_pimages_info_row; }
protected:
void drawForeground(QPainter *painter, const QRectF &rect);
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
private:
void update_image();
public:
QImage& showedImage() { EXTL_ASSERT(NULL != m_showedImage); return *m_showedImage; }
QImage const& showedImage() const { EXTL_ASSERT(NULL != m_showedImage); return *m_showedImage; }
image_type& handledImage() { return m_handledImage; }
image_type const& handledImage() const { return m_handledImage; }
void handledImage(image_type const& image) { m_handledImage = image; }
void showImgs(scoped_buffer<image_type> const& imgs);
private slots:
// make gray
void gy_general();
void gy_stretch();
void gy_histogram();
void gy_part_histogram();
// smooth
void oh_mean_smooth();
// threshold
void th_global_basic_threshold();
void th_global_otsu_threshold();
void th_partial_basic_threshold();
void th_partial_otsu_threshold();
// denoising
void dn_median_denoising();
void dn_discrete_denoising();
// split
void cs_kmean_split();
void cs_fcm_split();
void cs_labeling_split();
// edge detect
void sobel();
void prewitt();
void kirsch();
void isotropic();
void marr();
// deskew
void deskew();
// thinning
void thinning();
// pre-process
void pp_preprocess();
private:
QImage* m_showedImage;
image_type m_handledImage;
pimages_info_row_type m_pimages_info_row;
bool m_is_pressed;
QPolygonF m_ploygon;
QTime m_release_time;
bool m_is_online;
};
#endif // QIMAGESCENE_H

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/tboox-hnr.git
git@api.gitlife.ru:oschina-mirror/tboox-hnr.git
oschina-mirror
tboox-hnr
tboox-hnr
master