MathGroup Archive 2010

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

Search the Archive

Re: non rectangular crop

  • To: mathgroup at
  • Subject: [mg110727] Re: non rectangular crop
  • From: Patrick Scheibe <pscheibe at>
  • Date: Sat, 3 Jul 2010 08:19:45 -0400 (EDT)


> is it possible to have a not rectangular image in Mathematica?

no. You can of course use SparseArray to create one and therefore you
could create an image where you don't have to specify the whole image

Image[SparseArray[{{1, 1} -> 0.3, {7, 2} -> 0.5, {9, 9} -> 1}, {10, 

but internally it stores the whole matrix


> 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.

but if the outside of your circular region is black then it is already
croped in some way because filters like binarization, blur-filters,
segmentation, registration, ... will ignore the black regions. I don't
see your concerns.


  • Prev by Date: how to tell Mathematica to display x^-1 as x^-1 and not as 1/x
  • Next by Date: Re: How to edit a help reference page (e.g. NIntegrate.nb)?
  • Previous by thread: Re: non rectangular crop
  • Next by thread: Re: non rectangular crop