Current location - Recipe Complete Network - Dietary recipes - How to save salt and pepper noise?
How to save salt and pepper noise?
When using imwrite function to save images, the default way of Matlab is to simplify the data format of uint8.

For example, if your picture is in array h, use the inwrite command to save it as an image:

Imwrite(H,' F:\ graduation project \ noisy image. jpg’);

Output the array H as a picture in jpg format; Image name: the image after noise; Keep the path of F:\ graduation project. If you don't write the path, save it to the folder where the current program is located. The default is the working folder in the MATLAB installation folder.