Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
image placement

Subject: image placement

From: Jessica

Date: 25 Jul, 2012 19:56:08

Message: 1 of 3

Hi,

I have a 9 image files that I want to insert together at specific locations one one final image and then save the final image.

In particular, I want these images pasted to create a 3x3 matrix on a white image that is 1280 px by 1024 px with a resolution of 96 dpi. Each of the images is 293 px x 208 px with a 96 dpi. How can I specify the pixel coordinates of where to insert each of the 9 images?

Any suggestions would be helpful!

Thanks.

Subject: image placement

From: ImageAnalyst

Date: 26 Jul, 2012 02:23:32

Message: 2 of 3

bigImage(1:208, 1:293) = image1;
bigImage(209:416, 1:293) = image2;
bigImage(417:624, 1:293) = image3;
bigImage(1:208, 294:586) = image4;
bigImage(209:416, 294:586) = image5;
bigImage(417:624, 294:586) = image6;
bigImage(1:208, 587:879) = image7;
bigImage(209:416, 587:879) = image8;
bigImage(417:624, 587:879) = image9;

Subject: image placement

From: Jessica

Date: 26 Jul, 2012 11:00:14

Message: 3 of 3

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <8cfb0ca5-ed5e-42ab-b993-62c771772c4c@googlegroups.com>...
> bigImage(1:208, 1:293) = image1;
> bigImage(209:416, 1:293) = image2;
> bigImage(417:624, 1:293) = image3;
> bigImage(1:208, 294:586) = image4;
> bigImage(209:416, 294:586) = image5;
> bigImage(417:624, 294:586) = image6;
> bigImage(1:208, 587:879) = image7;
> bigImage(209:416, 587:879) = image8;
> bigImage(417:624, 587:879) = image9;

Thanks!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us