Borrar filtros
Borrar filtros

how to avoid changes of image edges?

1 visualización (últimos 30 días)
Jack Moriss
Jack Moriss el 7 de Sept. de 2016
Comentada: Jack Moriss el 7 de Sept. de 2016
hi . i have changed the pixels of an image in edges and then i have saved it.and when i read the image and want to extract that pixels the palace of edges have changed.why this happen and how can i prevent them? and i use canny edge detection
  2 comentarios
Adam
Adam el 7 de Sept. de 2016
You need to post some code. It is too difficult to know what exactly you did otherwise. If you save an image then reload it you will generally get exactly what you started with, provided you use the correct parameters for reading and writing.
Jack Moriss
Jack Moriss el 7 de Sept. de 2016
my image is an rgb image and i select red channel and find the edges b=edge(red,'canny') and change pixels in edges and again rejoin channels but after that my image is double and i save it as png format im = im - min(im(:)); im = im / max(im(:)); imwrite(im,'rgg.png','Bitdepth',16); i =imread('rgg.png'); and in this step both the location of edges has changed and the pixel value is not exatly like befor saving the image

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by