Creating Image Strips

From CwWiki

Jump to: navigation, search

Introduction

This is an outline of one elementary method for creating the image strips from a set of core photos. The image strips are necessary as a form of registration of data and pictorial display in Corelyzer.

This description comes from experience gained during the creation of strips from a set of piston cores obtained from the deep Gulf of Mexico by the team of Bill Bryant at Texas A&M University, College Station TX. A web reference to the cores is: [M.K. Meyer Ph.D. Thesis listed at "http://www-ocean.tamu.edu/Research/MS_Theses.html"].

For this method you will need Microsoft PAINT, WORDPAD and EXCEL. Also IMAGEMAJICK [1]installed. It also helps to have Windows Picture and Fax Viewer.

Procedures

1. Obtain the core photos. Here is an example: Image:plp002-photo.jpg

2. Obtain the pixel coordinates Using MS Paint and MS Excel manually measure the: (i) top LH X pixel coordinate of core sections 1 onwards ... (ii) top LH Y pixel coordinate of core sections 1 ... (iii) bottom Y pixel coordinate of core sections 1 ... (iv) the typical spacing in pixels between the core sections in the photos. We will assume that the spacings between the core sections are approx. equal, and that the sections are straight and true. This is not always the case.

3. Making the image cutting script Open and save with a new name the EXCEL file Image:CwSTRIP.xls and enter the pixel coordinates in the bold part. The calculation boxes will compute the correct coordinates for the Imagemagick script. When finished select and copy the calculation part of the worksheet, including the mkdir line just above. Open MS Wordpad and paste as text. You may need to replace all tabs with "" or spaces. Save the script with a ".bat" extension. Image:CwSTRIP bat.txt

4. Running Imagemagick Double click on the script file. It makes the strips in the subfolder "scripts". Here are the strips from the example core photo: Image:plp002-photo_1.jpg Image:plp002-photo_2.jpg Image:plp002-photo_3.jpg Image:plp002-photo_4.jpg Windows Picture and Fax Viewer is a good way to scroll through the results, checking that they are good.

5. The Next Step to Corelyzer This involves attaching the depth coordinates per section to the image strips. TBA.

Personal tools