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


Groups > comp.soft-sys.math.mathematica > #13825

Cropping image parts through list of lists

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!newspump.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From TDMF HT <tdmfhtyoutube@appletv.cc>
Newsgroups comp.soft-sys.math.mathematica
Subject Cropping image parts through list of lists
Date Wed, 13 Mar 2013 08:18:03 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <khpcnr$mdb$1@smc.vnet.net> (permalink)
Lines 25
Organization Time-Warner Telecom
NNTP-Posting-Date 13 Mar 2013 08:18:22 GMT
NNTP-Posting-Host 213b8f3d.news.twtelecom.net
X-Trace DXC=bME`G[>>@k[@FLG6EfehdQC_A=>8kQj6]9BHNOcEA\@YOJ;0V3_ZLnPEFiONJ7[GoV:fn<P_OjOOY
X-Complaints-To abuse@twtelecom.net
Xref csiph.com comp.soft-sys.math.mathematica:13825

Show key headers only | View raw


Newbie with OOP way of thinking, so bear with me :) Thank you !

Given - list of lists:

myList = { { {0,100},{50,100},{800,600} } , { {{100,100},{150,100},{1024,768} } }

Using the above list of lists, I want to crop two different parts from a single image an resize the resulting partial image in the following way;

Cropped image 1:
cropXY: 0,100/50,100
resize: 800,600

Cropped image 2:
cropXY: 100,100/150,100
resize: 1024,768

My OOP way of thinking tells me to iterate/loop over the outer and inner lists.
This doesnt seem to be the Mathematica way, so I spent the last couple of hours messing around with
DO/TAKE etc. and all image related functions.

I dont seem to find the right way to sequentially go over the inner lists and crop/resize the two parts from the single image.
Id really appreciate a few tips on how to get this done.

Thanks a bunch !!!!

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Cropping image parts through list of lists TDMF HT <tdmfhtyoutube@appletv.cc> - 2013-03-13 08:18 +0000
  Re: Cropping image parts through list of lists Vince Virgilio <blueschi@gmail.com> - 2013-03-19 04:04 +0000
  Re: Cropping image parts through list of lists "Barrie Stokes" <Barrie.Stokes@newcastle.edu.au> - 2013-03-19 05:51 +0000

csiph-web