using gradient function to calculate curvature of ridges in a fingerprint

조회 수: 1 (최근 30일)
divya r
divya r 2012년 11월 18일
I need to calculate the curvature of the ridges in a fingerprint image. I havent understood how to use the gradient function in matlab. I have used the :gradient(image) syntax of the function where "image" is a 281x231 logical matrix.
Error: g=zeros(size(image),class(image)); case of singleton dimention.
Is there any other way to calculate the curvature?
  댓글 수: 1
Jan
Jan 2012년 11월 18일
편집: Jan 2012년 11월 18일
Gradient of a logical matrix? Please read the documentation of gradient again and try the examples. A gradient is not defined on a logical matrix.
Please post some code, which reproduces the error. An exact copy of the error message would be helpful also. Currently we see the line, which causes the error, but not the message itself.

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

답변 (1개)

Image Analyst
Image Analyst 2012년 11월 18일
편집: Image Analyst 2012년 11월 18일
A few problems here. First of all DON'T use image as the name of your image variable since "image" is the name of a built-in function.
Second, don't preallocate an all zero matrix like that. zeros() doesn't take logical type. Use false. So instead of
g=zeros(size(image),class(image))
do this:
g = false(size(logicalImage));
Third, I don't know if you want the curvature in the x-y plane or the curvature in the intensity direction.
  댓글 수: 4
divya r
divya r 2012년 11월 18일
I guess I am trying to do this all wrong. I do want the radius of curvature in the xy plane. I need it to find the point where the curvature is the maximum which will be the core point in the finger print.
Can I get some pointers on how to go ahead on this?

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by