Can I fill empty pixels in a vector?

Hello
I try to explain my question better. I have an image in size of 466*700 and I have a vector on this image in size of 233*1, then some pixels of image hadn't been cover by vector, as you can see in figure1. Could you help me How can I fill these empty pixels on my vector and connect my vector?
Right know my vector is in size of 233*1 and by filling empty pixels I want to have a vector in size of 466*1.
I'll appreciate your help.

답변 (1개)

Image Analyst
Image Analyst 2014년 2월 23일

0 개 추천

I'd use interp1(). By the way, your figure is not showing up.

댓글 수: 4

bkshn
bkshn 2014년 2월 23일
편집: bkshn 2014년 2월 23일
Could you explain more?
How can I use interp1()? what about parameters of interp1()? Could I mail image to you please?
Image Analyst
Image Analyst 2014년 2월 23일
Try pasting your image into snag.gy and then using the image icon to insert it into your comment.
interp1() will let you get "in between" values for your 233 vector so that you will then have 466 values. See the help. Or search - I just uploaded code with it in the past few days.
bkshn
bkshn 2014년 3월 3일
Hello Image Analyst
I search again,But I don't know How can I apply interpolation ,when I don't have any function.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2014년 2월 23일

댓글:

2014년 3월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by