I need to be able to load picture files from an Access database an
run a color histogram algorithm on it. I will then be saving th
histograms values and searching using there values

Can anyone help with this? Histogram algorithm or ..

Thanks

Re: Color Histograms by mr

mr
Mon May 03 17:53:58 CDT 2004

hi Paul,

I am assuming that when you say "color histogram" you mean an accounting of
the different colors in the picture, and the frequency of use of each color
in the picture.

As a picture in this context is a "binary file", it is rather tough to deal
with in script. However, there are ways, which can be found using
google/group search. The most straight-forward approach is to regard the
picture file as a "text" file, and scan it byte-by-byte using MidB. As long
as you know the format of a picture file (dib sections and all that stuff),
you can detect the different colors and make an array of them with the
number of times used.

As far as presenting a histogram, that is nothing more than a bar chart.
There are several ways to draw a bar chart. Probably the easiest from
script, is to use the Microsoft Office - Office Web Components package. If
you have msOfc, then you probably have it. If not, then you may download it
from the web.


http://www.microsoft.com/downloads/details.aspx?FamilyID=982b0359-0a86-4fb2-a7ee-5f3a499515dd&displaylang=en

The OWC package has a graphics component ("owc.chart"), with a multitude of
chart types, of which bar charts is one.

cheers, jw

"paul11559" <paul@soik-dot-com.no-spam.invalid> wrote in message
news:%23MYR0VoLEHA.2396@TK2MSFTNGP12.phx.gbl...
> I need to be able to load picture files from an Access database and
> run a color histogram algorithm on it. I will then be saving the
> histograms values and searching using there values.
>
> Can anyone help with this? Histogram algorithm or ...
>
> Thanks!
>