Contrast stretch to bin file by parameters

1 vue (au cours des 30 derniers jours)
Ron
Ron le 22 Déc 2022
Hey,
Im trying to make contrast stretch of .bin file that i have (array x on 1 dimension) by high and low precent of the image and make it to .png file.
For example: Take file that his type is .BIN file , take the top 2% higher , and 1% lower and stretch by this parameters and convert it to some image.
  1 commentaire
Jan
Jan le 22 Déc 2022
Are you able to import the "bin"-file? Note that "bin" is not an explicit file format. What does "array x on 1 dimension" mean? What exactly are the "top 2% higher , and 1% lower"? Higher and lower than what?
As in your other question I ask you, what "precent" is. Do you mean "percent"?

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 22 Déc 2022
Try using imadjust or rescale or mat2gray

Community Treasure Hunt

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

Start Hunting!

Translated by