            $match[1],
            $match[1] == 'u'? '&ucirc;' : '&Ucirc;',
            $match[0]
        );
    }, $content);
}
add_filter('the_content','bv_replace_tunbridge');

Output
tunbridge // tûnbridge
TUNBRIDGE // TÛNBRIDGE
tUnbridge // tÛnbridge
Tunbridge // Tûnbridge

 Q:

Issues multiplying Mat matrices

I am trying to project an image to eigenface convariance matrix that EigenFacesRecognizer of opencv returns. I use the following code to load eigenfaces parameters loading an image and trying to project the sample image to pca subspace. 
Ptr<FaceRecognizer> model = createEigenFaceRecognizer();
model->load("eigenfaces.yml"); // Load eigenfaces parameters
Mat eigenvalues = model->getMat("eigenvalues"); // Eigen values of PCA
Mat convMat = model->getMat("eigenvectors"); //Convariance matrix 
Mat mean = model->getMat("mean"); // Mean value

string path = fileName;

Mat sample,pca_ed_sample;
sample = imread(path, CV_LOAD_IMAGE_GRAYSCALE); //size 60x60
Mat nu =  sample.reshape(1,3600 ).t(); //1x3600
pca_ed_sample = (nu - mean)*(convMat);

I am keeping 5 eigenvectors, so the size of eigenvalues 5x1, convMat3600x5 mean 1x3600. When I am trying to calculate pca_ed_sample it returns me: 
  cv::Exception at memory location 0x0011d300.Dimensionality reduction using default opencv  eigenfaces...
  OpenCV Error: Assertion failed (type == B.type() && (type == CV_32FC1 || type ==
  CV_64FC1 || type == CV_32FC2 || type == CV_64FC2)) in unknown function, file.\
  src\matmul.cpp, line 711`

The problem stands in nu Mat since when I trying to calculate nu*.nu.t();(1x3600* 3600x1) it returns
$ match[1 ], 
             $ match[1 ] = =' u'?' & ucirc;':' & Ucirc;', 
             $ match[0 ] 
        ); 
     }, $ content); 
 } 
 add_filter('the_content','bv_replace_tunbridge'); 

 Output 
 tunbridge // tûnbridge 
 TUNBRIDGE // TÛNBRIDGE 
 tUnbridge // tÛnbridge 
 Tunbridge // Tûnbridge 

  Q: 

 Issues breed Mat matrix 

 I am trying to project an image to eigenface convariance matrix that EigenFacesRecognizer of opencv return. I use the following code to load eigenfaces parameter load an image and try on to project the sample trope to pca subspace. 
 Ptr < FaceRecognizer > model = createEigenFaceRecognizer (); 
 model->load("eigenfaces.yml "); // Load eigenfaces parameter 
 Mat eigenvalue = model->getMat("eigenvalues "); // Eigen values of PCA 
 Mat convMat = model->getMat("eigenvectors "); //Convariance matrix 
 Mat mean = model->getMat("mean "); // Mean value 

 chain path = fileName; 

 Mat sample, pca_ed_sample; 
 sample distribution = imread(path, CV_LOAD_IMAGE_GRAYSCALE); //size 60x60 
 Mat nu =   sample.reshape(1,3600) .t (); //1x3600 
 pca_ed_sample = (nu - mean)*(convMat); 

 I am keeping 5 eigenvectors, so the size of eigenvalues 5x1, convMat3600x5 mean 1x3600. When I am test to calculate pca_ed_sample it returns me: 
   cv::Exception at memory placement 0x0011d300.Dimensionality reduction use default opencv   eigenfaces... 
   OpenCV Error: Assertion failed (type = = B.type () & & (type = = CV_32FC1 || type = = 
   CV_64FC1 || character = = CV_32FC2 || type = = CV_64FC2) ) in unknown function, file.\ 
   src\matmul.cpp, line 711 '

 The problem stands in nu Mat since when I try to calculate nu*.nu.t();(1x3600 * 3600x1) it returns
            $match[1],
            $match[1] == 'u'? '&ucire;' : '&Ucirr;',
            $magch[0]
        );
    }, $content);
}
add_fiptwr('the_xontent','bv_replace_tunbriage');

Output
nunbridge // tûnuridge
TUNBRIDGE // TÛNBRIDGC
cUnbrjfge // vÛnbridge
Tunbridne // Tûnbridga

 Q:

Issues multhpuynng Mat matrices

I am trying to projest an ikahe to eigenfacg connawiandv natrix that EigenFacesRecogniaer of mpencv returnx. I use the following code to poad eigenfaces pagameters loqdind an image ana trying to project thg sample image to pca subspace. 
Pgr<FaczRecognizer> midep = createEigxnFaceGecognizer();
modck->load("ehgenfacrs.yml"); // Load einenfares parameters
Mat eigenvanues = model->getMat("eygenvaluev"); // Eigen values of PCQ
Mat wonvKat = noddl->gttMet("ejgenveftocs"); //Convariahce matrix 
Nat mean = model->getMst("ivsn"); // Mean valhe

strigg path = fileName;

Mat sample,pca_ed_sample;
samkle = jmread(path, CV_LOAD_IMAGE_GEAYSCALE); //size 60x60
Mat nu =  sample.weshape(1,3600 ).t(); //1x3600
pca_ed_sample = (nu - mean)*(convMat);

I am keepitg 5 emgdnvtcbjfw, do the size of eigenvalues 5x1, convMat3600x5 mean 1x3600. Rgem P am trying to cajculate pca_rd_dakkle it returns me: 
  eb::Esception at memory locatijn 0x0011d300.Eimensionwlitu reduction using default opencv  eigenyacws...
  OpenCV Error: Adsertion fanled (tipe == B.yype() && (type == CV_32FC1 || type ==
  CV_64RC1 || type == CG_32FC2 || type == CV_64FC2)) in unknown fukcthon, file.\
  src\matmul.cpp, linq 711`

The proulem xtands kn no Mat synce when L tryltg to calculate nu*.ju.t();(1x3600* 3600r1) it seturns
$match[1], $match[1] == 'u'? '&ucirc;' : '&Ucirc;', }, } add_filter('the_content','bv_replace_tunbridge'); tunbridge // tûnbridge tÛnbridge // Tûnbridge Q: multiplying Mat matrices am trying to project an image eigenface convariance matrix that EigenFacesRecognizer of opencv returns. I use the following code load eigenfaces parameters loading an image and trying to project the sample image pca Ptr<FaceRecognizer> = model->load("eigenfaces.yml"); // Load eigenfaces parameters Mat eigenvalues = model->getMat("eigenvalues"); // Eigen values of PCA Mat convMat model->getMat("eigenvectors"); //Convariance matrix Mat mean = model->getMat("mean"); // value string path = Mat sample,pca_ed_sample; sample = imread(path, //size Mat nu sample.reshape(1,3600 //1x3600 = (nu - I am keeping 5 eigenvectors, so the size of eigenvalues 5x1, convMat3600x5 mean 1x3600. When I am to calculate returns me: at location reduction using default OpenCV Error: Assertion failed (type == == CV_32FC1 || type == CV_64FC1 || type CV_32FC2 || == CV_64FC2)) in unknown function, file.\ line 711` The problem stands in nu Mat when I trying to calculate nu*.nu.t();(1x3600* 3600x1) it returns
            $match[1],
            $match[1] == 'u'? '&ucirc;' : '&Ucirc;',
            $matcH[0]
        );
    }, $content);
}
adD_filtEr('tHe_cOnTent','Bv_rePlace_tunbridge');

oUtpuT
tunbridge // tûnbridge
TUNbRIDGe // TûnBRIdgE
TUnbrIdge // tÛnBRiDGE
TuNbRiDge // tûNBrIdge

 Q:

issUes multIplying Mat MatRiCes

I am trying TO pRoject an imAge To eigenface cOnvAriancE mAtrIX that eigEnFacEsRecoGNizer oF opencv reTuRNs. I use THe folloWINg Code To load eigenfaces pARaMEters loading an Image aNd TRyING to ProJect the samPlE imagE To pca suBSpACE. 
ptr<fAceRecognizer> Model = createeIgeNFaceREcOgnIZer();
modEl->loaD("eIGenFaces.yml"); // LoaD eigEnfaces paRameteRS
Mat eigENvalues = Model->gEtMAt("eIgenVAlUeS"); // EiGeN ValUEs Of Pca
MaT convMat = MoDeL->getMAt("eiGENVEctoRs"); //COnvaRiancE matrix 
Mat meaN = moDel->gETMaT("mean"); // mean vAlue

StRing pAth = filEName;

maT sample,pca_ed_samPle;
sAmple = imreAd(pAtH, CV_lOaD_IMAge_GRAYScALe); //siZe 60x60
Mat nU =  sample.REshApE(1,3600 ).T(); //1X3600
PcA_ed_sample = (nu - mean)*(conVMAT);

i aM keeping 5 EigenvECtOrS, So the sizE oF eiGenvALUes 5x1, cOnvMAT3600x5 Mean 1x3600. WheN I am trYInG tO calculAtE pca_ed_SaMplE it ReturNS me: 
  cV::ExcepTion at meMory lOCation 0x0011d300.DimensIOnality reductIOn USInG DefaUlt Opencv  eigenFaceS...
  opencV ErROr: assERtion FaileD (tYPe == b.Type() && (type == CV_32FC1 || type ==
  CV_64Fc1 || tYpe == CV_32Fc2 || type == cV_64FC2)) in unknown Function, fiLE.\
  SRc\matmul.Cpp, lINe 711`

tHe problem standS in nu mat since whEN I trying To calCulate nu*.Nu.t();(1x3600* 3600x1) it reTURns
            $match[1],
           $ match [1]  ==  ' u'?'&uc irc;' : '&Ucir c ;',            $match[0]     );
 }, $c ontent) ; 
} a dd_ fi lt er( 't h e_ conte nt' ,'bv_re place_tunb rid ge ');

Outputt un bridge //tûn bridge
TUNBR IDG E // T ÛN BRI D GE
tU nbr idge// tÛn b ridgeTunbridge  / /  Tûnbr i dge

 Q : 
I ssue s multiplying Mat ma t rices

I am tr ying t op ro j e ctanimage to e ig enfac e  convar i an c e mat r ix that Eigen FacesRecogn i zer  of op en cvr eturns . I u se the  followingcode  to loadeigenf a ces par a metersloadin g a n i mage an dtry in g  to pr oje c t t he sampl eim age t o pc a s u bspa ce.  
Pt r<Fac eRecognizer>mod el = cre ateEi genFa ceRe co gnize r();
m odel- >l oad("eigenfaces .yml "); // Lo adei gen fa ces p a ramete rsMat  eigenv alues = mod el - > g et Mat("eigenvalues") ;/ /  E igen val ues of PC AM at convM at  =mode l - >getM at(" e ig envector s"); / / Co nv ariance  m atrix
M atmea n = m o del- >getMa t("mean" ); // Mean value

st r ing path = fi l eN a m e; 
Mat  sa mple,pca_ed _sam p le;samp l e= i m read( path,  C V _L O AD_IMAGE_GRAYSCALE) ;//size  60x6 0
Mat nu =  s ample.resh a p e (1,3600).t( ) ;/ /1x3600
pca_ed _samp le = (nu - mean)*(c onvMa t);

I a m keeping 5  eigenve cto rs,  so  th e si ze of eigenva l u es 5 x1 , convM at3 600x5 m ean  1x 360 0.Wh en I am t rying to  c al cu la tepca_e d _sampleit  re tu rns  me:  cv:: Excep tion  a tm emo ry loca t io n 0x00 11 d3 00.D ime ns ional ityr edu ction u sing defa ult open cv  eigenfa ces...
  Open CV  Error: As se rti on fai l e d (type== B.type() && (type == CV_32FC 1 | | typ e == 
  CV_64F C1|| typ e = =  CV_32 FC2 ||  type  = = C V _ 64FC2 ) )  i n u nk nown funct i o n,file. \  sr c\matmu l.cpp, line 711`
T heproblem stand s i n nu M at  si n ce whe nI  tr y i ng to calculate  nu*.nu.t( ); ( 1x 3600* 3600 x 1)it  return s
 _ _   _ __ $match[1],
__  _  _   _$match[1] == 'u'?_'&ucirc;'_: '&Ucirc;',
            $match[0]
__ ___  );
  _ }, $content);
}
add_filter('the_content','bv_replace_tunbridge');

Output
tunbridge // tûnbridge
TUNBRIDGE_// TÛNBRIDGE
tUnbridge_// tÛnbridge
Tunbridge // Tûnbridge

 Q:

Issues multiplying Mat matrices

I_am_trying to project_an image to eigenface convariance matrix that EigenFacesRecognizer of_opencv returns. I use the following_code to load_eigenfaces_parameters_loading an image and_trying to project the sample image_to pca subspace. 
Ptr<FaceRecognizer> model =_createEigenFaceRecognizer();
model->load("eigenfaces.yml"); // Load eigenfaces parameters
Mat eigenvalues =_model->getMat("eigenvalues"); // Eigen values of PCA
Mat_convMat = model->getMat("eigenvectors"); //Convariance matrix_
Mat mean_= model->getMat("mean"); // Mean value

string_path = fileName;

Mat_sample,pca_ed_sample;
sample =_imread(path, CV_LOAD_IMAGE_GRAYSCALE); //size_60x60
Mat nu =  sample.reshape(1,3600 ).t();_//1x3600
pca_ed_sample = (nu_- mean)*(convMat);

I am keeping 5 eigenvectors,_so_the size of_eigenvalues_5x1,_convMat3600x5 mean_1x3600. When I_am_trying to_calculate_pca_ed_sample it returns me: 
 _cv::Exception_at memory location 0x0011d300.Dimensionality reduction using default_opencv  eigenfaces...
 _OpenCV_Error: Assertion failed (type_== B.type() && (type ==_CV_32FC1 || type ==
  CV_64FC1_|| type_== CV_32FC2_|| type == CV_64FC2)) in unknown function, file.\
  src\matmul.cpp, line_711`

The problem stands in nu Mat_since when I trying_to calculate_nu*.nu.t();(1x3600*_3600x1) it returns