The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Spline smoothing in images
Replies: 2   Last Post: Feb 8, 2013 11:26 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 15
Registered: 11/2/11
Re: Spline smoothing in images
Posted: Feb 8, 2013 11:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks Bruno..
Now I got the point. here x and y are vector of row/column of Image.
If I need to apply spline smoothing on a 3X3 local window of image then in that case if I take only non noisy pixels of image(for example pixels apart from 0 and 255 in that window) then x and y would be coordinates of those pixels? and after interpolation using those pixels only I can get the interpolated value at noisy coordinates? Is that so?
Can you point me to any link that is related to splines in this context?
I have tried searching for this but failed to find something related to this in MATLAB.
Again thanks for your reply.

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kf30u4$ep0$>...
> "sudesh" wrote in message <kf2v9j$8l3$>...
> > Can anyone guide me how we use splines for interpolation in images?
> > I mean how we relate value of x,y of spline function in an image that has its spatial coordinates and intensity values.

> Straightforward use of INTERP2.
> A=peaks(10);
> [m n] = size(A);
> x = 1:n;
> y = 1:m;
> xi = linspace(1,n,100);
> yi = linspace(1,m,100);
> Ai = interp2(x, y', A, xi, yi', 'spline');
> subplot(1,2,1); surf(A);
> subplot(1,2,2); surf(Ai);
> % Bruno

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.