how to create a mat file
Mostrar comentarios más antiguos
can we enter images, characters and numbers in one matfile??... if yes can u please show how to create a matfile for the below data
1 image1.jpg, 1.23, 5.26, fruit
2 image2.jpg, 4.56, 7.25, vegetable
3 image3.jpg, 1.34, 6.77, fruit
4 image4.jpg, 1.96, 6.88, fruit
5 image5.jpg, 7.23, 2.33, vegetable
and so on...
image1.jpg... are the names of the images... next two column values are features extracted... and the last column is the text what that image is....
after creating this matfile when i select image2.jpg using imread i wanted it to get displayed that "it is a fruit"....
please do reply....
1 comentario
Sara Hafeez
el 30 de Nov. de 2012
save and then load.
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 30 de Nov. de 2012
Editada: Azzi Abdelmalek
el 30 de Nov. de 2012
Im1=imread('image1.jpg');
Im2=imread('image1.jpg');
save filename Im1 Im2
%to call your images
load filename
imshow(Im1)
imshow(Im2)
4 comentarios
Elysi Cochin
el 30 de Nov. de 2012
Azzi Abdelmalek
el 30 de Nov. de 2012
If you want, you can save whatever you want
v=[1.23 5.26;4.56 7.25]
text={'fruit','vegetable'}
save filename Im1 Im2 v text
Elysi Cochin
el 30 de Nov. de 2012
Azzi Abdelmalek
el 30 de Nov. de 2012
Suppose you want image1
text{1} % for image1
text{2} % for image2
Elys maybe you should read some basis matlab programming
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!