Borrar filtros
Borrar filtros

image compression for binary images

4 visualizaciones (últimos 30 días)
Newman
Newman el 11 de Ag. de 2015
Comentada: Walter Roberson el 14 de Ag. de 2015
Hi i have a binary image in the file format .pbm its a 640x480 image and i want to compress the image to 32x32 How to do i do it?
  3 comentarios
Newman
Newman el 11 de Ag. de 2015
@walter roberson Hi yes they have to be binary only as i need to apply ANN on them but i need to resize/compress them to 32x32 without any significant loss of data.I want to train them to recognise a human being.I am attaching the binary image.
Walter Roberson
Walter Roberson el 14 de Ag. de 2015
For pattern recognition you should be creating feature vectors rather than submitting the scaled-down image directly.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 11 de Ag. de 2015
Try imresize() function in the Image Processing Toolbox:
smallImage = imresize(binaryImage, [32, 32], 'Nearest');
Obviously you will have loss of data. Not sure how you define "significant". I guess if your algorithm can still recognize what's in the scene, despite being smaller, then it's not significant.
  2 comentarios
Newman
Newman el 11 de Ag. de 2015
can this be done with the help of PCA(principal component analysis)? i was going through this link but couldnt understand what has been written http://stackoverflow.com/questions/31884985/what-does-selecting-the-largest-eigenvalues-and-eigenvectors-in-the-covariance-m/31885685#31885685
Image Analyst
Image Analyst el 14 de Ag. de 2015
That would get the main axis going through the body.
I don't know much about this field, but there is a whole field of image processing involved in looking at silhouettes of human bodies or body parts. Go here to VisionBib to find all the papers on it.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by