I believe you're using a programming language but i don't know which now. If you use Java, you can open your images with the
ImagePlus class. Then you can call the
getProcessor() method that returns an ImageProcessor.
I'm pretty sure these methods exist in other languages too.