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 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by