Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: ImageTaker[img, {{x1,y1},{x2,y2}} ] useful toolfunction
Replies: 2   Last Post: Apr 2, 2013 3:26 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
roby.nowak@gmail.com

Posts: 87
Registered: 5/8/07
Re: ImageTaker[img, {{x1,y1},{x2,y2}} ] useful toolfunction
Posted: Apr 2, 2013 3:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Am Samstag, 30. M=E4rz 2013 09:07:02 UTC+1 schrieb roby:
> Just a little bit more compact version:
>
>
>
> ImageTaker[img_, c_] := ImageTake[img, Sequence @@ (
>
> c // Transpose // Reverse // Sort /@ #& //
>
> MapAt[First@ImageDimensions@img - Reverse@#&, #, 1]&)]
>
>
>
>
>
> Robert


Ok just, learned that starting with Mathematica 8

ImageTrim[]

does the miracle.

thx to Matthias Odisio

Robert




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.