pin_image Program Introduction

This is a small CERN ROOT macro (i.e script) that helps you to reproduce a graph by getting the data points on the graph. You will need to have an ROOT installed to run this macro. The video demonstration for this small macro can be found here.

The macro will read a image ( jpg, png, etc ), and when you click on the canvas, it shows the coordinates on the screen and also write them into a text file 'coordinate.txt'.



Run the code:

in the terminal:
root "pin_image.cxx (\" image_file_name \") "
or in the ROOT CINT prompt:
.x pin_image.cxx ("image_file_name")


The source code of pin_image.cxx can be found here and the .rootrc file can be found here.