problm on imwrite fuction...
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ARJUN K P
el 21 de Sept. de 2015
Comentada: ARJUN K P
el 21 de Sept. de 2015
here i cant get what iam write on the pixel value.. what to do?
1 comentario
Respuesta aceptada
Guillaume
el 21 de Sept. de 2015
Please post snippets of code (using the {} Code formatting button) instead of images.
ffwinread is not a matlab function so there may very well be a problem with it.
Another possibility is that your orignal rebuilt is of type double. You can check that easily with
whos rebuilt
Images of type double are assumed by matlab to be in the range 0-1. When it comes to writing a double image to bmp, matlab maps 0 and below to uint8 0 and 1 and above to uint8 255. This could explain what you're seeing. In that case,
imwrite(uint8(rebuilt), 'as.bmp');
should fix it. Even better would be to declare rebuilt as uint8 in the first place.
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!