blockproc error...

1 visualización (últimos 30 días)
remo
remo el 29 de Feb. de 2012
hi all,
i have cropped an image to be 162x125 ...i want to pass it to blockproc function which divide image to 3x3 and do some processing...since, the cropped image doesnt satisfy 3x3 mask it gives error during blockproc function.
So,is there anyway to rectify this problem?
i cannot alter cropped image size since it is automatically done using another function (face image). And i cannot change the block size since Local Binary Pattern operate in 3x3 neighbourhood only..
  1 comentario
Ashish Uthama
Ashish Uthama el 30 de Mzo. de 2012
doesnt the padding option in blockproc help?

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Feb. de 2012
padding = zeros(162,1,class(YourImage));
padding = padding + realmax; %saturate it in a class-dependent way
paddedImage = [YourImage, padding];
Now run blockproc() over paddedImage, and have fun making sense of the LPB at the right-hand edge.
  1 comentario
remo
remo el 1 de Mzo. de 2012
Sir,
thank you for ur time in answering my question.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by