To process the Images you have to convert the image files to sequence files.
You can process those sequence files to the process.
To convert the image files to sequence files you have to use the UDF in PIG.
Load the sequence files into by using SequenceFileLoader is class of org.apache.pig.piggybank.storage.
To use the SequenceFileLoader class you have to use the piggybank.jar file.
Piggybank is Pig’s repository of user-contributed functions. Piggybank functions are distributed as part of the Pig distribution, but they are not built in. You must register the Piggybank JAR to use.
packages correspond to the function type and currently are:
org.apache.pig.piggybank.comparison – for custom comparator used by ORDER operator
org.apache.pig.piggybank.evaluation – for eval functions like aggregates and column transformations
org.apache.pig.piggybank.filtering – for functions used in FILTER operator
org.apache.pig.piggybank.grouping – for grouping functions
org.apache.pig.piggybank.storage – for load/store functions
Please refer the below link to more details about piggybank jar file.
Please use the below link for the PIG UDF.
Hope you are able to understand the image processing by using PIG.