31 std::vector<Pds::Array<unsigned char>> Block;
32 Pds::Array<unsigned char>
LBP;
33 Pds::Array<unsigned char>
LBPU;
35 Block=Pds::Array<unsigned char>::ImportBmpFile(
"../manual/imagenes/pattern.bmp");
36 if(Block.size()==0) {std::cout<<
"Error\n";
return 0;}
38 std::cout<<
"Block.size(): "<<Block.size()<<std::endl;
41 LBP.ExportBmpFile(Pds::Colormap::Gray,
"pattern_lbp.bmp");
44 LBPU.ExportBmpFile(Pds::Colormap::Gray,
"pattern_lbpu.bmp");
Pds::Array< unsigned char > LBP(const Pds::Array< unsigned char > &Gray, unsigned int T=0)
Local Binary Patterns : 0->255.
Pds::Array< unsigned char > LBPU(const Pds::Array< unsigned char > &Gray, unsigned int T=0)
Local Binary Patterns Uniforms : 0->58.