issue with specifying X/Y axis for image/imagesc functions

Has anyone developed an m-file to perform the image/imagesc function on non-uniformly spaced X and Y data.
For example, if I have a 512x512 image and I want my x-axis to be a function of time. Maybe time increases by 1 sec for the first 256 columns and then jumps by 60 secs and then returns back to 1 sec intervals.
Currently, it appears the image/imagesc functions take the min and max value of the X/Y inputs and creates a vector evenly spaced between the min/max values. I don't believe there is a Matlab warning and therefore can lead to misinterpretation of the data. What I would expect to see is an image with a "hole" in the middle (user specified fill value?) with the x-axis from min_time to max_time. (PS - It would be nice if I didn't have to actually insert zeroes into the array where the time jumps are).
Thanks!
Tom

Answers (1)

I'd probably use TriScatteredInterp or interp2 to create a uniformly-spaced image.

1 Comment

Thanks for the response!!
FYI - There is a user contributed function called xyimagesc.m(<http://www.mathworks.com/matlabcentral/fileexchange/32732-xyimagesc-m)>. Functionally, it looks like this is what I want. However, when I use the function, it slows my computer down to a crawl. It looks like it is using "patches".

Sign in to comment.

Categories

Find more on Images in Help Center and File Exchange

Products

Asked:

on 17 Sep 2012

Community Treasure Hunt

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

Start Hunting!