How to find slope for each pixel?

2 visualizaciones (últimos 30 días)
Hana
Hana el 4 de Nov. de 2014
Respondida: Mikhail el 4 de Nov. de 2014
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 comentario
Image Analyst
Image Analyst el 4 de Nov. de 2014
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".

Iniciar sesión para comentar.

Respuestas (1)

Mikhail
Mikhail el 4 de Nov. de 2014
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;

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by