newton divided difference interpolation

i have dicom image and converted into jpg now i want to apply newton divided difference interpolation. please anyone suggest the answer.

13 个评论

The question contains too few information to be answered. Please edit it and add details.
my question is how i can apply newton divided difference interpolation method in image. please any one suggest the solution.
Thanks in advance
Flagging doesn't solve the issue Jan identified.
Have a read here and here. It will greatly improve your chances of getting an answer.
i have read an image using imread and apply segmentation method for detection of disease, now i want to use newton divided difference interpolation method on segmented image to find the tumor region. using newton divided interpolation to estimate value i have to specify X and Y coordinates to estimate missing value of Y. Now, my question is that how i can use image pixel values in place of X And Y coordinates. i have to pick image pixel value in place of x and y coordinates and calculate missing value using newton divided difference interpolation method.
This is my code. plz solve my problem. Thanks in advance.
%READ AN INPUT IMAGE
IMG=imread('C:\Users\DELL\OneDrive\Documents\MRI-images\Folder1\image-1.jpg');
%IMG = ind2rgb(IMG.X, IMG.map);
X=1:256;
Y=1:256;
[Dx, Dy] = meshgrid(X, Y);
x=Dx;
y=Dy;
size=length(x);
d=zeros(size,size);
xlength=length(x);
DDlim=length(x)-1;
D=zeros(xlength,xlength);
D(:,:,1)=y;
for i=1:DDlim
for j=1:i
D(i+1,j+1)=(D(i+1,j)-D(i,j))/(x(i+1)-x(i-j+1));
end
end
a=diag(D)
A flag is meant to attract the attention of a site admin. Not to label a comment.
Also, you have read either page I linked to, as evident from the lack of formatting in your comment. Since you didn't bother reading my advice, why should I bother reading your comment to try to help you?
Click IMAGE buttion to insert your image. We cannot access the sample image in your OneDrive.
C:\Users\DELL\OneDrive\Documents\MRI-images\Folder1\image-1.jpg
Click SIGMA button to insert formula of the Newton's divided differences interpolation polynomial. Not everyone knows the math.
Click the CODE button to insert your attempted MATLAB code in the proper format.
%READ AN INPUT IMAGE
IMG=imread('C:\Users\DELL\OneDrive\Documents\MRI-images\Folder1\image-1.jpg');
%IMG = ind2rgb(IMG.X, IMG.map);
X=1:256;
Y=1:256;
[Dx, Dy] = meshgrid(X, Y);
x=Dx;
y=Dy;
size=length(x);
d=zeros(size,size);
xlength=length(x);
DDlim=length(x)-1;
D=zeros(xlength,xlength);
D(:,:,1)=y;
for i=1:DDlim
for j=1:i
D(i+1,j+1)=(D(i+1,j)-D(i,j))/(x(i+1)-x(i-j+1));
end
end
a=diag(D);
expr = poly2sym(a) ;% This create polynomial from the coefficient matrix
fpe = fplot(expr);
title(fpe.DisplayName)
hold on
plot(x,y,'*')
I have to apply below formula on above image. The below given formula is of newton divided difference interpolation.
Suppose f(x0), f(x1), f(x2)………f(xn) be the (n+1) values of the function y=f(x) corresponding to the arguments x=x0, x1, x2…xn, where interval differences are not same
Then the first divided difference is given by
The second divided difference is given by
and so on…
Divided differences are symmetric with respect to the arguments i.e independent of the order of arguments.
so,
f[x0, x1]=f[x1, x0]
f[x0, x1, x2]=f[x2, x1, x0]=f[x1, x2, x0]
By using first divided difference, second divided difference as so on .
Thank You sam chak sir for for your advice.
Edit and Move the image, code, and formula from the COMMENT to your original QUESTION above will increase the chances of all MATLAB experts to directly view the problem and attract their interest.
ok sir Thanks once again.
if anyone understand my problem can give me the code thank you in advance.
SUB-PIXEL EDGE DETCTION FOR PHOTOGRAMMETRY USING LAPLACE DIFFERENCE OF GAUSSIAN AND 4TH ORDER ENO INTERPOLATION
anyone has code for this paper?
Please, @image-pro, provide the names of the author or even better the DOI: https://doi.org/10.1109/ICIP.2010.5652041 . Do not let the readers search your paper.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

标签

编辑:

Jan
2022-5-5

Community Treasure Hunt

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

Start Hunting!

Translated by