comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Histogram looks like spiky bars
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Histogram looks like spiky bars [message #53122 is a reply to message #53063] Mon, 19 March 2007 22:35 Go to previous message
Sven Geier is currently offline  Sven Geier
Messages: 17
Registered: July 2002
Junior Member
rpertaub@gmail.com wrote:

> Hi,
> I have an image for which I want to make a histogram. I just do plot,
> histogram(image) with xrange being my 14 bit image size (~16000).
> ANyway, what I get is a bunch of vertical lines of different lengths.
> I want a smooth curve, not discrete lines.
> How do i do that?
> thanks!!

At the risk of asking something stupid:

Are you sure that all the possible values actually occur in your image? I'm
asking because I once had a funky image that I didn't understand the
histogram of at all - until I realized that in the processing there was a
step where floats got truncated to integers and in that step I was losing
all non-integer values and in the end the values I was histogramming over
were integer multiples of some certain scaling factor (and the histogram
plotted thin spikes for those values and zeros for any other number).

Just an idea...

- S

--
http://www.sgeier.net
My real email address does not contain any "Z"s.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: spawn issue - was: open sockets
Next Topic: Pointers and Objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 15 16:18:45 PDT 2025

Total time taken to generate the page: 0.88192 seconds