Upgrade to Pro — share decks privately, control downloads, hide ads and more …

image manipulation in ruby

image manipulation in ruby

It deals with the basics of image manipulation. It also covers few gems present in ruby for this purpose

Avatar for seemajha

seemajha

July 31, 2013

Other Decks in Programming

Transcript

  1. INTRODUCTION • Image is a function of two real variables.The

    co-ordinates can be used to depict various entities for eg. the amplitude of the function can be used to depict the associated brightness. • It is a two dimensional signal ,so normal signal processing techniques can be used to process the signal
  2. ADVANTAGES OF RASTER IMAGES • Easy to create • Cost

    effective • Pixel position can be easily calculated by cell matrix and hence can be easily manipulated DISADVANTAGES OF RASTER IMAGES • Upward scaling: blurred pictures • Higher resolution and anti alaising required
  3. ADVANTAGES OF VECTOR IMAGES • Scalability : clarity is maintained

    even after zooming in • Size : they have a much smaller size as compared to corressponding bitmaps DISADVANTAGES OF VECTOR IMAGES • Scalability : can be scaled only upto 20% • Noise interferance : can be easily contaminated by noise (like any other analog signal)
  4. IMAGE MANIPULATION • Image manipulation is done basically to achieve

    three goals – Image processing – Image analysis – Image description
  5. IMAGE MANIPULATION TECHNIQUES IN RUBY • There are variety of

    gems available for image processing and manipulation – RMagick – Chunky_png – Phashion
  6. RMAGICK • RMagick = Ruby + Image Magick • Compatible

    with .png as well as .jpeg files • Easy to use • Faster implimentation
  7. CHUNKY_PNG • Effective for .png files only • Pure ruby

    based • Doesnot have any special dependencies
  8. PROBLEMS?? • Can be used with PNG images only •

    Size compatibility • Detecting duplicate images