The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

Just a little bit more compact version:

ImageTaker[img_, c_] := ImageTake[img, Sequence @@ (
c // Transpose // Reverse // Sort /@ #& //
MapAt[First@ImageDimensions@img - Reverse@#&, #, 1]&)]


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.