summaryrefslogtreecommitdiff
path: root/src/imagealgos.h
blob: 4fd9d53762e08e158cf070f31a65734096c01be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <QLineF>
#include <QList>

#include "image.h"
#include "pixels.h"

// size_t pgm_save(std::shared_ptr<Image> img,
size_t pgm_save(Image *img, FILE *outfile = nullptr, bool really_save = false);

// void unpack_10bit(uint8_t const *src, Image const &image, uint16_t *dest);
// void unpack_16bit(uint8_t const *src, Image const &image, uint16_t *dest);

// Pixels process_columns(Image & image);

QList<QLineF> pixelsToLines(const Pixels& rawProfile);
QList<QLineF> pointsToLines(const QList<QPointF>& points);