필터 지우기
필터 지우기

Percentage increase and decrease from two matrices

조회 수: 12 (최근 30일)
Joydeb Saha
Joydeb Saha 2022년 12월 22일
답변: Image Analyst 2022년 12월 22일
Attaching two matrices A1 and B1. I want to calculate the percentage increase and decrease
deltaSignal = (B1 - A1);
percentageDifference = deltaSignal ./ A1;
A1 from B1. Total percentage increase and the total percentage decrease. I have done some part which I am writing here.
  댓글 수: 5
Joydeb Saha
Joydeb Saha 2022년 12월 22일
Ok, let me explain more clearly. See the attached image of Ice. When I make the plot for D = B1 - A1, I have this image, where you may see that there are some blue pixels, these are the positive values (Indicates the ice increase). i want to have the percentage of increase of ice (blue pixels).
Jan
Jan 2022년 12월 22일
@Joydeb Saha: How do you define "the percentage of increase of ice" mathematically? The image does not clarify this.
A mathematical definition of "percentage" means: A number of X divided by a number of Y times 100. So what are your X and Y for "total percentage increase and the total percentage decrease".

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2022년 12월 22일
You need to convert the image from RGB values to values on the color bar. See attached demo where I did that for a thermal image.

Community Treasure Hunt

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

Start Hunting!

Translated by