This book deals with image-processing problems that arise in the pro cess of automating some aspects of well log analysis. Each problem is first described in log analysis terms - that is, what task is performed by a log analyst and how it is accomplished in manual processing. Then algorithms for automating each function are presented and their meanings from the point of view of log analysis and image processing are explained. The term image processing is understood here, in its broadest sense, as any processing of any images. I developed many of the algorithms presented in this book for par ticular independent applications. Later, when I realized that they used some common techniques for analysis of logging curves, I applied these techniques in designing new algorithms. To present the algorithms here, I first formulate a minimization principle that has proved useful in a number of applications. Then I describe image-processing problems and their solutions based on this principle and some other common techniques. Finally, I describe al ternative approaches. At first reading, readers may choose to skip the chapter describing the minimization principle and come back to it later when they have seen how the principle can be applied. This order of reading is further justified by the fact that the formulas that apply the general principle are different for each application, so their derivation is repeated each time independently.