Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: sub-pixel shifting of a matrix
Replies: 14   Last Post: Feb 7, 2013 12:23 PM

 Messages: [ Previous | Next ]
 Rajesh Posts: 26 Registered: 2/22/10
Re: sub-pixel shifting of a matrix
Posted: Feb 26, 2010 5:24 AM

> You can extrapolate with zeros or any other desired value using the EXTRAPVAL option.
>

I already tried that but the background in the image has a certain mean and sd as would be the case for an image. moreover replacing it with a certain constant requires a knowledge of the actual pixl value of the background which will have to be obtained from the image itself by picking a certain area or certain pixel of the background in the image but that, i guess, would take further time (or no?) since i am handling mutliple images in a loop while translatng them.

Also, replacing them with a constant might give artefacts in futue reconstructions (rings in CT images)
>
> Result=zeros(size(Image));
> Result(1:end+1-k,1:end+1-j)=Image(k:end,j:end);

Thanks for this as well.

> If the object is completely surrounded by background values of zero, I don't see what's challenging about that. What I've outlined above will work.

thanks (appologies if this amounts to hijacking the original thrd)

Date Subject Author
9/17/09 Shalin Mehta
9/17/09 Shalin Mehta
10/30/09 Dumebi Okwechime
2/24/10 Shalin Mehta
2/24/10 Matt J
2/25/10 Rajesh
2/25/10 Matt J
2/25/10 Matt J
2/26/10 Rajesh
2/6/13 Bruno Luong
2/6/13 Matt J
2/6/13 Bruno Luong
2/7/13 Matt J
2/7/13 Bruno Luong