I have extracted an image and transformed it into integer values and stored it in 2D array. My question is that is it possible to recreate a pixel from any value?
Mostrar comentarios más antiguos
Hello. I have described a situation above. In addition to the above information, I have transformed the image into binary valued image and stored it into an array. Now i want to recreate the image but only specific part of the image, so I want to know that is there any method we can use to pick particular pixel , select it and then convert it into an image?
I would really appreciate your help.
Thanks...
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 30 de Dic. de 2012
0 votos
Depending on what you mean, this is possible. If you mean that you have an image (can be any type: uint8, double, binary, whatever), and you somehow binarize it (generate a logical class image from it), then you can use ginput() or other methods (imrect, imfreehand, etc.) to manually indicate pixels or regions on the binary image, then use those manually indicated locations to read the pixel values from the original image. You can't get original image values from the binary/logical image, but presumably you still have the original image available in a variable still, and you can use that. If, for some reason, you no longer have the original image, then no, you can't get it back.
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!