[PLS HELP] Error using horzcat CAT arguments dimensions are not consistent.with debug error image attached

1 view (last 30 days)
i got an error mentioning about dimension not consistent while trying on the LBP operator. i'm running in a loop for 4 images. I have 2 loops in my program, I suppose to change the convector= 1800 x 1 into data = 450 x4 (4 images) but since it happen in a loop how can i do it? i need to store it into the data. the error occur on the last command , any advise will greatly appreciated
for f=1:blockSizeR
for g=1:blockSizeC
blockVectorR = (f -1) * wholeBlockRows+1 ;
blockVectorC = (g-1) * wholeBlockCols+1 ;
blockRR = blockVectorR + wholeBlockRows-1;
blockCC = blockVectorC + wholeBlockCols-1;
Ism = X(blockVectorR:blockRR , blockVectorC:blockCC);
feature_vector = lbp(Ism,3,24,MAPPING,'hist');
convector=[convector;feature_vector];
end
end
data =[data ,convector];

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!