help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with histogram


From: Francesco Potortì
Subject: Re: help with histogram
Date: Wed, 08 Jun 2011 13:35:20 +0200

> I need to show the histogram of an uint8 image ('im'), but octave only
>allows me to show it if the image type is changed to double. I don't want
>that, because I want every bin to be on the vector 1:256, not between 0 and
>1. I've tried to do imhist (im), imhist(im, 1:256)

Change it to double, then:

imhist(256*im, 1:256)

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

[Prev in Thread] Current Thread [Next in Thread]