30 Pds::SampleBlock In=Pds::Matrix::ImportBmpFile(
"../manual/imagenes/pimienta-gray3.bmp");
34 Pds::Matrix Gabor=Pds::Kernel2D::Gabor(L,6.0,5.5,Pds::Ra::Pi/4,8.0,0.0)/3;
35 Pds::Octave::Plot::ImageSc(Gabor,
"testando.m",
"gabor5.png");
38 Pds::Matrix Mean=Pds::Kernel2D::Mean(L)/3;
41 Pds::TensorBlock W={{Gabor,Gabor,Gabor},{Mean,Mean,Mean}};
47 for(
unsigned int n=0;n<Out.size();n++)
48 Out[n].ExportBmpFile(Pds::Colormap::Gray,
"out"+std::to_string(n)+
".bmp");
La clase tipo Pds::Conv2DLayer . Esta clase genera un objeto con parametros. Para usar incluir <Pds/C...
std::vector< Pds::Matrix > Predict(const std::vector< Pds::Matrix > &Input) const
Evalua la capa de la Conv2D.