How to get the gradient of a pixel?

5 vues (au cours des 30 derniers jours)
Fego Etese
Fego Etese le 23 Avr 2020
Commenté : Fego Etese le 24 Avr 2020
I am doing block processing on a fingeprint image and I will like to get the gradient of all the pixels in their x and y components separately using a sobel filter. I am doing this block by block.
I saw the function imgradient() but after reading the documentation it seems to be getting the gradient for the whole image that is passed to it, which in my case will be the block, except i understood wrongly, and if i did please help me out or is there any function i can use to get the gradient of just one pixel in the image block.
  4 commentaires
darova
darova le 24 Avr 2020
  • i can use to get the gradient of just one pixel in the image block.
I don't understand this sentence
Fego Etese
Fego Etese le 24 Avr 2020
I may have confused you as i was confused myself too. Sory about that. But what i really wanted to get was the angle and magnitude using the gradient. I have tried it out and seen imgradient() can do it. I just didnt understand how to use the function. It will provide me with the angle of all the pixels in one matrix and the magnitude in the other.
But another issue is how can i use the quiver function to draw arrows like the one in the picture i sent using this angle and magnitude data?
thanks

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by