How to find slope for each pixel?

조회 수: 2 (최근 30일)
Hana
Hana 2014년 11월 4일
답변: Mikhail 2014년 11월 4일
I have two tiff files. Tb.tif is on y axis and s.tif is onx axis.
A = imread('Tb.tif');
S =imread('s.tif');
I want to calculate slope using A = b*S for each pixel
  댓글 수: 1
Image Analyst
Image Analyst 2014년 11월 4일
You forgot to attach them. And without them I have no idea what you mean by slope or what it means for an entire image to be "on y axis" or "on x axis".

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

답변 (1개)

Mikhail
Mikhail 2014년 11월 4일
As i understood, you need to find b=S/A in each point, so you need to use term-by-term division:
b=S./A;

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by