How can I use lorentzian norm in 2D gray scale image segmentation?

조회 수: 5 (최근 30일)
I'm working on 2D image segmentation & I want to refine the image with lorentz as a preprocessing operation.
lorentzian norm equation is:
f(x)= sum(log(1+0.5(x/T))), where "x" is a distance.
my problem is how can I calculate the distance "x".
is it the distance between center pixel and just one neighbor?
or it's the distance between this pixel and its 8-neighbors?
"or is it the maximum or minimum distance"?
thanks

채택된 답변

Youssef  Khmou
Youssef Khmou 2013년 9월 7일
편집: Youssef Khmou 2013년 9월 7일
rasha
Lorentizian metric requires 4 dimensions x,y,z,t, but here for image processing the matrix is 2D so then where there is sum in your Function replicate it to 2 sums , try to discuss this prototype :
X=im2double(imread('circuit.tif'));
T=norm(X) ; % random number chosen here to be euclidean norm
FX=sum(sum(log(1+0.5*X/T)))
  댓글 수: 1
Rasha
Rasha 2013년 9월 8일
편집: Rasha 2013년 9월 8일
Youssef KHMOU, I'm so grateful for your addition,
in this prototype its suppose that X produce the whole image, but in my program X is a distance between two pixels.
I replicate the sum as your advice in my program, it produce the same result to me.
thanks

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

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 9월 7일
I have no idea. If you don't either, then why are you so sure you want to do it?
  댓글 수: 17
Rasha
Rasha 2013년 9월 8일
편집: Image Analyst 2013년 9월 8일
Youssef KHMOU, the both answers are helpful. and as I tell Image Analyst I wanted to accept both of them. next time I will post the code first. thanks
Rasha
Rasha 2013년 9월 8일
편집: Rasha 2013년 9월 9일
Image Analyst, all my regards to you and to Youssef KHMOU.
really it's a very good site and company.
thanks

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

Community Treasure Hunt

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

Start Hunting!

Translated by