Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: Image color ratio

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131844] Re: Image color ratio
  • From: Matthias Odisio <matthias at wolfram.com>
  • Date: Wed, 16 Oct 2013 05:00:56 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20131010205157.9194A6A7E@smc.vnet.net> <20131013052833.DDFC86A40@smc.vnet.net>

Hussain,

On 10/13/13 12:28 AM, Hussain AlQahtani wrote:
> Thanks Matthias
> 
> Your reply is very helpfull. Another question: if i have two images, one is
> light grey and the other one is darker. The darker the more concentration
> of nano particles. How to quantitively measure the ratio between the two
> images in terms of brightness.
> 
> Thanks for your help.
> 
> On Friday, October 11, 2013, Matthias Odisio wrote:
> 
>> Good morning,
>>
>> On 10/10/13 3:51 PM, KFUPM wrote:
>>> Dear All
>>>
>>> I have a grey image with darker dots and spots. I want to measure the
>> ratio of the darker spots  to the remaining light gray area.
>>>
>>>
>>> I appreciate your help in anticipation.
>>>
>>>
>>> Best,
>>>
>>> -HMQ
>>>
>>
>> That sounds straightforward.
>>
>> You could use ImageLevels and identify the bins corresponding to the
>> darker spots and to the lighter areas.
>>
>> Alternatively, you could threshold your image (using Binarize) to
>> create a mask of the dark spots, and then call ImageLevels to compute
>> the fraction or ratio you are looking for.
>>
>> Matthias
>>

You seem to be looking for the ratio of the average intensity in the
two images. This is easily achieved using ImageMeasurement. Check
this out:

	ImageMeasurements[image, "MeanIntensity"]

Matthias




  • Prev by Date: Finding branches where general solution is possible
  • Next by Date: Re: very odd failure of Solve
  • Previous by thread: Re: Image color ratio
  • Next by thread: universal shortcut