Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: non rectangular crop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110734] Re: non rectangular crop
  • From: Helen Read <hpr at together.net>
  • Date: Sun, 4 Jul 2010 03:08:23 -0400 (EDT)
  • References: <i0kigf$19s$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

On 7/2/2010 7:28 AM, Alessandro wrote:
> is it possible to have a not rectangular image in Mathematica?
>
> I have a lot of images acquired by microscope - they are all squared,
> with the circular field of view surrounded by black.
> I'd like - for further processing - to crop all the black region
> outside the circle.
>
> Or perhaps images are all rectangular in M?

disk = Graphics[Disk[]]

ImageAdd[disk, pic]

Where pic is your original image. You might have to adjust the size of 
the disk.

See the Documentation for lots of other functions for working with images:

guide/ImageProcessing


-- 
Helen Read
University of Vermont


  • Prev by Date: Re: Need to Speed up Position[]
  • Next by Date: Is it possible to query current plot range values (or have
  • Previous by thread: Re: non rectangular crop
  • Next by thread: Re: non rectangular crop