How to get the gradient of a pixel?

조회 수: 1 (최근 30일)
Fego Etese
Fego Etese 2020년 4월 23일
댓글: Fego Etese 2020년 4월 24일
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
darova
darova 2020년 4월 24일
  • 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 2020년 4월 24일
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

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by