A novel algorithm for all-optical interconnection between 2D and 2D patterns is proposed. With use of random phase encoding, a quasi 2D-2D interconnection is performed. The capacity of the quasi 2D-2D interconnection is obtained as high as 34 image pairs