Home | Develop | Download | Contact
test_matrix_resize.cpp
1
24#include <cmath>
25#include <Pds/Ra>
26
27int main(void)
28{
30
31 std::vector<Pds::Matrix> Block;
32 Block= Pds::Matrix::ImportBmpFile("image.bmp");
33 std::cout<<"Block.size(): "<<Block.size()<<std::endl;
34
35 if(Block.size()>0)
36 {
37 Block[0].ExportBmpFile(Pds::Colormap::Gray,"image_copy.bmp");
38 Block[0].Resize(1.2).ExportBmpFile(Pds::Colormap::Gray,"image_resize.bmp");
39 }
40}
La clase tipo Pds::Matrix . Esta clase genera una matriz de Nlin lineas y Ncol columnas....
Definition: Matrix.hpp:96
static std::vector< Pds::Matrix > ImportBmpFile(const std::string &bmpfilename)
Lee matrices de un archivo binario en formato BMP.
const unsigned char Gray[256][3]
Definition: Colormap.hpp:66

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed