How to reverse this normalization?

6 ビュー (過去 30 日間)
ML
ML 2016 年 4 月 18 日
回答済み: John D'Errico 2016 年 4 月 18 日
Can any one help me please to reverse the following normalization?
image_normalized = uint8(255*mat2gray(image));
This command normalizes a matrix values to 0-255. So, after doing some filtering, how can I transform the new filtered values from 0-255 to the original value space?

回答 (1 件)

John D'Errico
John D'Errico 2016 年 4 月 18 日
You cannot do so. Sorry, but the necessary information (i.e., the linear transformation used) was lost in the normalization, not to be regained. mat2gray does not return that information. PERIOD.
Of course, NOTHING stops you from doing the same linear transformation yourself. Then you can save the parameters of that linear transformation, and undo the transformation. Easy, peasy then.

Community Treasure Hunt

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

Start Hunting!

Translated by