[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

5283.0. "Image Processing" by COMET::BELLMJ () Wed Dec 18 1991 01:13

    OK, I've got a hefty order here.  I need some advice or technical help
    to get me through this.
    
    A friend of mine and I have a pretty cool setup.  I have a 500 and he
    has a 2000 and DCTV.  We both have ADPro.  When he's not digitizing
    through DCTV with his black and white camera, we hook our machines up
    with ParNet.
    
    Ok, here's the deal:  We only have a black and white camera, but we
    figure somehow we can do color compositions.  So, we put our old
    DigiView celophane over the camera eye and scan our separations, saving
    them in 24-bit ILBM format because ADPro doesn't have a DCTV loader yet
    {grumble grumble}.
    
    So, I get in ADPro and load each 24-bit color (albeit gray "color")
    separation in, convert it to gray, then colorize it using the
    value-variance setting of HSV colorization.  So basically, I make
    whatever separation there was into the 24-bit color it should be (if
    you preview the 'red' separation, it looks red).
    
    I then resave them, and then start loading using composition.  The
    problem is, because each separation file has black (0's) in all the
    other colors, when I compose two colors (say red and green) each gets
    averaged with black, meaning they're half as bright.  Which also means
    that their dynamic range (assuming it was at full) moves down by half,
    or you lose a bit.  I can raise the brightness level back to what it
    was, but now each color only has 7 bits of resolution, not 8.  Do it
    again for blue, and you're in the same boat.
    
    So, I end up with a picture that's only got anywhere from 18-21 bits,
    depending on how much time I spend between loads to dynamic range them
    out.
    
    I need to find a way to replace the black data instead of mixing it.
    
    Or, I need a conversion program to make 8 bit IFF gray scale pictures
    into raw, SCULPT 4D files.  IFF 8 bits have header information, and
    from what I can tell, have some sort of compression (various files of
    same picture size are different file sizes).  SCULPT files (from what I
    gather from ADPro manual) are pure raw data and you have to specify the
    picture size, etc.
    
    If anyone can point me to a converter, or a way that ADPro will load
    three 8 bit separations into one 24 bit composite without the problems
    I encountered above, I'd really appreciate it.
    --------------------------------
    
    I posted this as a reply on note 4508, but figured it would get more
    attention here by itself.  I figure that I would bring up the need for
    a well organized second AMIGA notesfile, as I have looked to no avail
    for such an IFF->raw reply and it just takes too long.
    
    Thus I submit the topic of Image Processing in general to be in the top
    100 notes of the next, hopefully coming soon....
    
    I would also like to ask if there are any notes, books, or people that
    could spend time explaining the IFF standards for picture
    representation (including 24 and 8 bit formats).
    Mike
T.RTitleUserPersonal
Name
DateLines
5283.1Let's open up image processingCOMET::BELLMJWed Dec 18 1991 02:4722
    Ok, I answered my own question.  I simply save the image using the
    Sculpt saver when it's a b&w image.  Then compose the three using the
    Sculpt loader.
    
    The reason I didn't think of this right off the bat is because I'm used
    to TAD, and TAD doesn't have the Sculpt saver included, so...
    
    But I'd like to see this note keep running on the topic of image
    processing.
    
    My next question is:  Are there any good books or people who know etc.
    how a convolution matrix works on a picture?  There are the preset ones
    in the manual, but they don't explain what the numbers do.  Can someone
    help me figure out the math behind making a convolve matrix?
    
    I'm very good at math, by the way, I've been through Calc III and
    Linear Algebra I&II (although II is pretty shaky; I still have the
    books though).
    
    Again, any help would be greatly appreciated.
    
    Mike
5283.2from the hipPIANST::JANZENThomas MLO21-4/E10 223-5140Wed Dec 18 1991 10:5728
There is an image processing program free on a Fish disk, I have it, called
ImageLab on disk 452.

The van dam graphics bible probably has examples of convolution in it.
I think that the matrix just multiplies corresponding elements around the
pixel and adds them up, but I'm unclear.  I've written s/w for convolution
and deconvolution on 'scope waveforms in one dimension, and that's how
it works there.

the asterisks are pixels in the image.  The | are boundaries showing where
the matrix (only 3*3 here) is applied.  The corresponding elements of the
matrix and images are multiplied and summed and put into the pixel in the
center.  At least I think so.  This is done for every element.  The matrix
can be as big as you like, but it's easier if it's square and odd sized.


* * * * * * * * * * * * * * * * * * * * * *
* * * * * * *|* * *|* * * * * * * * * * * * 
* * * * * * *|* * *|* * * * * * * * * * * *
* * * * * * *|* * *|* * * * * * * * * * * *
* * * * * * * * * * * * * * * 


Laplacians are probably a quotient of adjacent pixels to find a rate of
change.  A differencing would be close enough.

Tom
wild guesser
5283.3convolution examplesPIANST::JANZENThomas MLO21-4/E10 223-5140Wed Dec 18 1991 11:214
The manual imagelab.doc with imagelab on fish 452 describes all the different
matrices for convolution, I was close.
I have it now and am building a sepaerate imagelab lharc file for myself.
Tom
5283.4TENAYA::MWMWed Dec 18 1991 14:598
I've seen a couple of references to "Convolution Matrices" in adpro, but
no description of what the feature really is/does. Could someone give
a description of that feature? If it's as powerfull as the software in
"The Digital Darkroom" (which I tried to talk ASDG into adding to ADPro),
then that's an important addition to ADPro...

	Thanx,
	<mike
5283.5Will post as foundCOMET::BELLMJWed Dec 18 1991 15:1811
    RE: -.1
    
    Right, Mike, that's what I was asking about in .1.  I'm figuring out
    some stuff (will download ff452) but from what I can see the matrix is
    just dot producted across a set of nine pixels, and then that value is
    divided by the ABS of the matrix (to account for linear scaling).  I
    have cross posted this note in Imaging, so if I get a real clear
    cookbook formula for all the equations underneath, I'll post 'em here.
    
    Mike
    
5283.6PIANST::JANZENThomas MLO21-4/E10 223-5140Wed Dec 18 1991 16:2718
	In terms of the image, convolution ordinary smooths out the image.
	It can act to anti-alias an image.  It blurs lines.  This matrix can
	just have all equal=1 members.  Oscilloscopes that are samplers and
	have smoothing functions work like that in one dimension to
	disguise noise.
	However, special values in the
	matrix can also perform other functions.  A Laplacian matrix
	(negative numbers in pixels around the pixel of interest and positive
	in the pixel balanced to subtract weighted values for surrounding
	values), acts like solarization, leaving only an outline.  Using
	a laplacian matrix a little out of balance in favor
	of the pixel being processed can just sharpen an image.
	Using the same matrix overbalanced for the neighboring pixels
	highlights the big flat areas.
	You can make this matrices assymetrical and make them act only	
	horizontally or vertically.

tom
5283.7examplesSALEM::LEIMBERGERThu Dec 19 1991 07:127
    I don't know a thing about how convolution works, but in avid it gave
    some examples of what it could be used for. 
    	Convolution matrices- sharpen images
    	Deep press- make you pic appear as if it was pressed into a deep
    	material like leather.
    Avid has a very article on ADPro 2.0 this month.
    							bill
5283.8MathVISION fun...TFH::KIRKa simple songThu Dec 19 1991 13:086
MathVISION from Seven Seas Software (originally Doug's Math Aquarium) has some 
hooks available for setting up your own convolution matrices.

FWIW,

Jim
5283.9IP from Black BeltSDOGUS::WILLIAMSTOPGUNFri Dec 20 1991 15:105
    Check out Black Belt Systems' Image Processor.  It will do sep RGB
    files, merge, etc!  Very powerful, and virtually free!  Call their BBS
    or you can get it from CompUServe, etc.
    
    Clark