Bilinear interpolation
-
How to get the same intensity after stretching an image eg: Let intensity of a square of 1 unit = 1 x I1 If I stretch the square to 2 units then the intensity = 2 x I2 Both these intensities should be equal 1xI1 = 2xI2 = k(constant) I am using bilinear interpolation for stretching but the intensities arent equal. Is there some other method for stretching so that I ll get same intensity in both the images. Pls Help
-
How to get the same intensity after stretching an image eg: Let intensity of a square of 1 unit = 1 x I1 If I stretch the square to 2 units then the intensity = 2 x I2 Both these intensities should be equal 1xI1 = 2xI2 = k(constant) I am using bilinear interpolation for stretching but the intensities arent equal. Is there some other method for stretching so that I ll get same intensity in both the images. Pls Help
Well I guess you can solve the problem just by dividing Intensity in each pixel by a stretch factor. In above example- just divide it by 2. But I think your problem could be deeper- if you imagine an image, and you zoom in (for example you double the number of pixels in both directions -> you see 4 times more pixels), it means that you are watching sub-pixels, and they have area of 1/4 of original pixel. Therefore you have 4 times more pixels, but each of them has just 1/4 of unit area.
-
Well I guess you can solve the problem just by dividing Intensity in each pixel by a stretch factor. In above example- just divide it by 2. But I think your problem could be deeper- if you imagine an image, and you zoom in (for example you double the number of pixels in both directions -> you see 4 times more pixels), it means that you are watching sub-pixels, and they have area of 1/4 of original pixel. Therefore you have 4 times more pixels, but each of them has just 1/4 of unit area.