Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4274 > unrolled thread

How to merge images that are exterior to each other?

Started byGilmar Rodriguez-pierluissi <peacenova@yahoo.com>
First post2011-08-10 10:52 +0000
Last post2011-08-16 05:29 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  How to merge images that are exterior to each other? Gilmar Rodriguez-pierluissi <peacenova@yahoo.com> - 2011-08-10 10:52 +0000
    Re: How to merge images that are exterior to each other? Yves Klett <yves.klett@googlemail.com> - 2011-08-16 05:29 +0000

#4274 — How to merge images that are exterior to each other?

FromGilmar Rodriguez-pierluissi <peacenova@yahoo.com>
Date2011-08-10 10:52 +0000
SubjectHow to merge images that are exterior to each other?
Message-ID<j1tnta$pp4$1@smc.vnet.net>
Imagine that you are designing the cover of a book. The main picture on your bookcover
is an image (call this image "img1") with ImageDimensions[img1]={p,q}. Now you wish to put another image (containing the title of your book; call this image "img2") on top and exterior to img1. Here ImageDimensions[img2]=
{r,q}, i.e.; img1 and img 2 have different heights but, the same length. How can we build an "imagepad" above img1 with the same area as imag 2, so that we can insert img2 in that area above img1. We want to do this using Mathematica; without the aid of Paintbrush, Photoshop or similar softwares.  Wouldn't be nice to have a Mathematica function, perhaps called "Outset" (as opposed to "Inset"; and different from "Offset") to do this sort of trick?  Thank you for your help!  Gilmar Rodriguez-Pierluissi

[toc] | [next] | [standalone]


#4431

FromYves Klett <yves.klett@googlemail.com>
Date2011-08-16 05:29 +0000
Message-ID<j2cv84$hh3$1@smc.vnet.net>
In reply to#4274
There are many ways to achieve this. You could use Grid or GraphicsGrid
(which produces a list of Insets), which offer a lot of placing and
formatting options, or e.g. ImageAssemble, perhaps in conjuction with
Rasterize.

Depending on what exactly you want to achieve, ImageCompose or Overlay
could also be helpful.

Regards,
Yves

Am 10.08.2011 12:52, schrieb Gilmar Rodriguez-pierluissi:
> Imagine that you are designing the cover of a book. The main picture on your bookcover
> is an image (call this image "img1") with ImageDimensions[img1]={p,q}. Now you wish to put another image (containing the title of your book; call this image "img2") on top and exterior to img1. Here ImageDimensions[img2]=
> {r,q}, i.e.; img1 and img 2 have different heights but, the same length. How can we build an "imagepad" above img1 with the same area as imag 2, so that we can insert img2 in that area above img1. We want to do this using Mathematica; without the aid of Paintbrush, Photoshop or similar softwares.  Wouldn't be nice to have a Mathematica function, perhaps called "Outset" (as opposed to "Inset"; and different from "Offset") to do this sort of trick?  Thank you for your help!  Gilmar Rodriguez-Pierluissi
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web