How to calculate gradient of 512*512*4 image?

9 visualizaciones (últimos 30 días)
Akshay Gore
Akshay Gore el 27 de Feb. de 2014
Comentada: Raghava S N el 23 de Oct. de 2024
Is this wrong or write?
If my output image is g(512*512*4) then gradient of g() is
gradver1=sqrt(g1(:,:,1).^2+g1(:,:,2).^2+g1(:,:,3).^2+g1(:,:,4).^2);
  1 comentario
Raghava S N
Raghava S N el 23 de Oct. de 2024
Hi,
From my understanding, you are looking to calculate the gradient of a 3D image.
Refer to this link which describes how to find the gradient magnitude and direction of 3-D image using the “imgradient3” function - https://www.mathworks.com/help/images/ref/imgradient3.html.
The directional gradients of a 3-D image can be found using theimgradientxyz” function. Refer to this link for more information - https://www.mathworks.com/help/images/ref/imgradientxyz.html.
Hope this helps!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox 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