Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

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$1@newscl01ah.mathworks.com>...
> "sudesh" wrote in message <kf2v9j$8l3$1@newscl01ah.mathworks.com>...
> > 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]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.