Image Processing With Matrix Definition