IPB1

Eamonn Murray 2002

Files which should be included in this -
ipb1.exe  - the executable
ipb1.c  - the source file (uncommented - sorry I always forget that).
ipb1readme.txt  - what you're reading now.

This is open source freeware. Do what you like with it.

This program will take a 24-bit bmp and output intensity data, based on the options
you choose.

The program will not except image formats other than 24-bit bmp. If you have an image in
another format, you should be able to use paint or internet explorer to convert it, or
failing that try downloading the very useful irfanview program - just search for the name
and you should be able to find it.

When the program is started initially it will ask you to enter the input file name.
It will then check that the file is a valid bitmap, and that it is 24-bit encoded and
will also output the length and width of the image.

If the file is valid it will then ask you whether to find the intensity of
Columns, Rows, or each pixel (enter c, r, or p).
Columns will give a give a 2*width data set which will give intensity of the image vs pixel
number going from left to right.
Similarly Rows will give a 2*length data set going from top to bottom.
Pixels will output a length*width data set giving the intensity of each pixel in the form
of a big matrix.

If you choose columns or rows, you will then be asked whether to find the total intensity
of each column/row or just along the column/row containing the pixel of maximum intensity -
I think this is pretty self explanitory.

You are then given the option to adjust the minimum intensity to zero - this will find the
lowest value and subtract it from the entire data set.

You are then asked for the output file name. If the file given does not exist it will be
created, otherwise you are given the option to overwrite or append the file.

You are then given the option of outputing the data in the form of a mathematica array.
I should point out here that mathematica can do basically everything this program can do,
although it takes a bit more know how and not everyone has it available to them.
Visit http://library.wolfram.com/howtos/images/ to see how.

You will also be asked whether or not to normalise the data set. Normalising will set the
maximum intensity to 1, and all other values will be expressed as fractions of this.
If the data is not normailised the values output for intensity will just be as calculated
from the image with each pixel being given a brightness between 0 and 765 (red, green and
blue added together with each running from 0 to 255).

And then you're finished.

I hope this is some use to someone out there. I use it for looking at diffraction patterns.
Send any comments or bugs to eamonn81@yahoo.com.