What's the best way to assemble this image mosaic?



I have some large image sets. Each set is comprised by 100
images. Each image is 1280*960. Each image has a set of
coordinates, (x1,y1), (x2,y2) which specify the location of
the image. These images form a mosaic of 25 rows * 4
columns, although not a 'perfect' mosaic -- ie there is
some overlapping of each image and its neighbours.

I'd like to form a single composite image, at full
resolution. There is also some myriad annotation graphics
that would go along with this, eg arrows, circles, text,
etc.

As I see it, there's two ways to go about this:

1) Just display all the images in a single axes, along with
all of the annotation objects. Then do a screen capture
using getframe, saveas, or similar.

The problem with this method is my final image resolution
is limited by my screen resolution, which means my final
image is some 4% of the original resolution.

I've tried stuff like:

hf = figure('Units', 'pixels', 'Position', [0 0 25*960
4*1280]);
plot(hf, rand(1,10), rand(1,10))
saveas (hf, 'test.jpg')

But the resulting image is only 1200*900.


2) Preallocate the large image array and use standard
matlab indexing to fill it with the constituent images, eg:

imgSize = (max(y2)-min(y1)+1, max(x2)-min(y1)+1)
big = zeros([imgSize, 3], 'uint8')
for i = 1:numImages
big(y1(i):y2(i), x1(i):x2(i), :) = imgData(:,:,:,i);
end
imwrite(big, 'big.jpg');

But the major disadvantage of this approach is that there's
no way, as far as I know, to include any of the graphical
annotation.

Any thoughts, folks?



.



Relevant Pages

  • Re: Whats the best way to assemble this image mosaic?
    ... coordinates,, which specify the location of ... There is also some myriad annotation graphics ... The problem with this method is my final image resolution ...
    (comp.soft-sys.matlab)
  • Re: Whats the best way to assemble this image mosaic?
    ... I'd like to form a single composite image, ... There is also some myriad annotation graphics ... using getframe, saveas, or similar. ... The problem with this method is my final image resolution ...
    (comp.soft-sys.matlab)
  • Re: XP Professional: Not as bad as I expected, but still VERY primitive
    ... Things like screen capture (needed to write product mamuals) are low ... resolution and look terrible compared to those from the Mac. ...
    (comp.sys.mac.advocacy)
  • Re: Figure export (possible scope for a fix ? )
    ... Like i mentioned - The figure file generated using saveas ... width resolution and Y is the vertical resolution - height ... Set the 'PaperPositionMode' property of figure to 'auto', and use the print command with the resolution flag set to 0instead of saveas ...
    (comp.soft-sys.matlab)
  • Re: Encodeing the desktop
    ... image" is actually the "Screen Capture" in WME. ... transmitter and the receiver use resolution of 600x800. ... What are you using for the bitrate? ...
    (microsoft.public.windowsmedia.encoder)