Contrast stretch to bin file by parameters

1 次查看(过去 30 天)
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 个评论
Jan
Jan 2022-12-22
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"?

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2022-12-22
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