2D / 3D Interpolation (Linear or Spline ) for image - Matlab
Afficher commentaires plus anciens
Hi all
I have a image (Given Below) it is a 3d image have size 512x271x512 . I want to apply interpolation on the missing part.

I want to apply interpolation on that image to fill the gap and after it I have to calculate the edge points of the image like this
and want to get the edge of the surface like shown in output image

can anyone please guide me . how I can do this . Thanks in advance for your help
13 commentaires
- What is the 3rd dimension of the image? Is your array actually a stack of images. Your figures only show a 2D image.
- The gaps to be filled are the vertical black lines or the horizontal band in the middle, or something else?
- To identify your edge, can we assume that the middle band is always in the centre of the image and always the same width? Do you know the actual width?
- giving us an actual image instead of a figure would help
Alina tom
le 15 Mai 2018
Guillaume
le 15 Mai 2018
Your code is a bit confusing, there's a lot of variables you create that are not used. More importantly, it's not clear what the Img1 you pass to imshow is. It looks like you've unrolled each frame but it's not what the code you posted does.
Alina tom
le 15 Mai 2018
Alina tom
le 15 Mai 2018
Guillaume
le 15 Mai 2018
Can you attach, as a mat file, not a screenshot of a figure, the actual Img1 that you use to test your code? As it is, it is difficult to understand what each step is doing.
Note that since BW is a binary image, hence 2D, numberOfColorChannels is unneeded in:
[rows, columns, numberOfColorChannels] = size(BW);
This is simpler:
[rows, columns] = size(BW);
Also, you create a 2D output_img and fill it in a loop. Therefore,
imshow(squeeze(output_img(:,:,S,:)))
is just
imshow(output_img)
if S == 1, and an error otherwise.
Alina tom
le 16 Mai 2018
Alina tom
le 16 Mai 2018
Alina tom
le 16 Mai 2018
Guillaume
le 17 Mai 2018
This is the link For Img1 in mat formate
If I load that mat file and then do
imshow(Img1(:, :, 1)) %or using any other index for the 3rd dimension
I get nothing that resembles your image at all.
Alina tom
le 17 Mai 2018
Réponses (0)
Catégories
En savoir plus sur Blocked Images dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



