33 std::vector<Pds::Array<unsigned char>> Block;
34 Pds::Array<unsigned char> Gray;
35 Pds::Array<unsigned char>
LBP;
36 Pds::Array<unsigned char>
LBPU;
38 Block=Pds::Array<unsigned char>::ImportBmpFile(
"../manual/imagenes/pattern2.bmp");
40 std::cout<<
"Block.size(): "<<Block.size()<<std::endl;
42 Gray=Pds::Array<unsigned char>::MeanBlock(Block);
43 Gray.ExportBmpFile(Pds::Colormap::Gray,
"pattern_lbp2_gray.bmp");
46 LBP.ExportBmpFile(Pds::Colormap::Gray,
"pattern_lbp2.bmp");
49 LBPU.ExportBmpFile(Pds::Colormap::Gray,
"pattern_lbpu2.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.