Home | Develop | Download | Contact
example_matrix_export_bmp.cpp
1 
25 #include <cmath>
26 #include <Pds/Ra>
27 #include <Pds/Sp>
28 
29 int main(void)
30 {
31  std::vector<Pds::Matrix> Block;
32  Block=Pds::Matrix::ImportBmpFile("../manual/imagenes/Lenna_test_image.bmp");
33 
34  std::cout<<"Block.size(): "<<Block.size()<<std::endl;
35 
36  std::vector<Pds::Matrix> CC;
38  if(CC.size()!=0)
39  Pds::Matrix::ExportBmpFile(CC[0],CC[1],CC[2],"ColormapRGB_cc.bmp");
40 
41  std::vector<Pds::Matrix> WPI;
42  WPI=Pds::Image::WhitePatch(Block);
43  if(WPI.size()==3)
44  Pds::Matrix::ExportBmpFile(WPI[0],WPI[1],WPI[2],"ColormapRGB_wp.bmp");
45 
46  return 0;
47 }
std::vector< Pds::Matrix > ChromaticityCoordinates(const std::vector< Pds::Matrix > &Block, double factor=1.0)
Retorna un bloque de matrices en coordenadas cromáticas.
std::vector< Pds::Matrix > WhitePatch(const std::vector< Pds::Matrix > &Block)
Retorna un bloque de matrices con WhitePatch.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed