Operations - Image Processing

  • Arithmetic Operations on Digital Images
    • Performed pixel by pixel between two images or among many images
    • Types
      • Addition operation (Pixel addition)
        • Add two images in pixel by pixel fashion
        • Matlab Command
              ima1 = imread('image1.tif');
              ima2 = imread('image2.tif');
              sum = ima1+ima2;
              <!-- OR -->
              imadd(ima1,ima2);
          
        • Any integer value can be added to an image matrix
      • Subtraction operation (Pixel subtraction)
        • imsubtract(ima1,ima2);
      • Multiplication operation (Pixel multiplication)
        • Matlab Command
              ima1 = imread('image1.tif');
              ima2 = imread('image2.tif');
              sum = ima1.*ima2;
              <!-- OR -->
              immultiply(ima1,ima2);
          
      • Division operation (Pixel division)
        • Matlab Command
              ima1 = imread('image1.tif');
              ima2 = imread('image2.tif');
              sum = ima1./ima2;
              <!-- OR -->
              imdivide(ima1,ima2);
          
Share: