Questions tagged [bicubic]

Bicubic interpolation is an extension of cubic interpolation for interpolating data points on a two dimensional regular grid. The interpolated surface is smoother than corresponding surfaces obtained by bilinear interpolation or nearest-neighbor interpolation. Bicubic interpolation can be accomplished using either Lagrange polynomials, cubic splines, or cubic convolution algorithm.

80 questions
0
votes
1 answer

Bicubic interpolation results different from FFMPEG

I just implemented bicubic interpolation for resizing images. I have a test image 6x6 pixels (grayscale), its columns are black and white (x3). I am comparing the results of my code with the results from the tool ffmpeg and they are not correct. I…
Pedro Pereira
  • 312
  • 5
  • 21
0
votes
0 answers

Difficulty in Understanding Bicubic Image Interpolation

I need to write a MATLAB code for implementing three types of image interpolation : (i)nearest-neighbor,(ii) bi-linear, and (iii)bi-cubic. Even after searching the Internet thoroughly ,including both videos and text, I am finding difficulties in…
User
  • 1
0
votes
0 answers

Bicubic Interpolation Error in image

I have implemented Bicubic Interpolation taking the reference of these slides. Slide number 118 gives the formulation to compute the Bicubic Interpolation. I have implemented my code in the same way keeping P(dr-m) and P(n-dc) as: P_dr = 1/6*(…
0
votes
1 answer

Multiple rotation problems

Here is my problem. I have to move a torus along a circular trajectory on a bicubic surface. However the vertical axis of the torus must be aligned with the surface normal at the given point Moreover the torus must face it's circular…
Jonathan
  • 1
  • 2
0
votes
1 answer

Cubic interpolation for specific points using interp2 in Matlab

Given the following example is there a way to achieve bicubic interpolation without generating an entire finely-spaced grid?: years = [5,10,20,25,40]; service = 1:3; wage = [50 99 787.685 779 795 850 803 779 388 …
Mary
  • 788
  • 6
  • 19
  • 43
0
votes
1 answer

Bicubic interpolation with EasyBMP does not working properly

I am writing a program which is using bicubic interpolation, and I am using EasyBMP, but i have a problem. While input image are peppers. My output looks like this. #define BOUNDS(val, min, max) if (val < min) { val = min; } else if (val > max) {…
rrrrroo
  • 23
  • 3
0
votes
1 answer

Image Resampling Bicubic Interpolation Java

I have resized image but its quality is low. i heard of bicubic interpolation but i cant get any implementation code. Here is my code: private static BufferedImage resize(BufferedImage image, int width, int height) { int w = image.getWidth(),…
0
votes
3 answers

Fill in the gaps of a 2D array

I have a sparsely populated array like the following. Is there an algorithm that can fill in all the blanks with values that make sense linearly? ie. deduced from the surrounding original values. I've looked at bilinear interpolation and bicubic…
Fidel
  • 7,027
  • 11
  • 57
  • 81
0
votes
1 answer

Resize images client-side to thumbnails results in jaggy and ugly pictures

Im trying to use thumbnails on the fly so I won't have to have both thumbs and actual images. I had em done with PHP (with the excellent imagecopyresampled function) which worked great. Now I'm looking to do something similar without PHP and I'm…
fast-reflexes
  • 4,891
  • 4
  • 31
  • 44
0
votes
1 answer

Fill the boundaries of a matrix using Bicubic interpolation

I have a matrix of size 28x22. The first row, last two rows, first column and last two columns (marked in red and green color) are empty. These columns and rows are supposed to be filled by bicubic interpolation. I have read several posts on SO and…
skm
  • 5,015
  • 8
  • 43
  • 104
0
votes
0 answers

bicubic interpolation function do wrong indexing (reference negative index)

I'm recently working on bicubic interpolation for college term-project. I looked up some other codes in web and run it. But 'every' codes has a same problem of indexing. I thought there must be fault of me, but I can't find any. inline unsigned char…
pjh
  • 123
  • 1
  • 7
0
votes
1 answer

Patchwork Image interpolation

I have manually generated a depthmap based on the vertices of my 3D-Model (no, i can't use the z-buffer in this case). Unfortunately the depthmap is like a patchwork with many holes. This is how it looks like: https://i.stack.imgur.com/ZHCKr.png I…
White Noise
  • 373
  • 2
  • 13
0
votes
0 answers

Grid-like artifact in bicubic interpolation

I'm trying to implement a bicubic interpolation for image resizing as described here. When I try the Triangular or Bell kernel, the result seems reasonable. But when i try the B-Spline or the CatMull-Rom kernel, I'm getting this grid like artifact…
Václav Pruner
  • 310
  • 1
  • 11
0
votes
0 answers

Image processing: interpolation using intensity values of pixels in the input image

When we do image interpolation, I think we will use intensity values of pixels in the input image. (A) I am reading the code of cubic interpolation from GPU Gems Chapter 24. High-Quality Filtering. Here is a snippet of their code: Example 24-9.…
user1914692
  • 3,033
  • 5
  • 36
  • 61
0
votes
2 answers

Bicubic interpolation for multiple dimensions?

There is a Wikipedia article on bicubic interpolation fro 2D functions. Is it possible to generate the same/similar matrices for ND function interpolation?
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385