Giter VIP home page Giter VIP logo

dct-lsb's Introduction

DCT-LSB

Repository for Multimedia & comp. visual. project

Launching project

!! Mathlab toolbox are required to launch the project which are not include in standart matlab version !!

  1. Configure matlab with mathab toolbox
  2. Clone the repository
git clone https://github.com/czomo/DCT-LSB.git
  1. Import project to matlab
  2. In order to execute DCT watermarking enter
dct_wtmark('./image/<image which is gonna be watermarked>','./image_wmark/<patter used to watermarking>')

Example

dct_wtmark('./image/lena.jpg','./image_wmark/bing.jpg')
  1. In order to execute LSB watermarking enter
dct_wtmark('./image/<image which is gonna be watermarked>','./image_wmark/<patter used to watermarking>')

Example

lsb_wtmark('./image/lena.jpg','./image_wmark.jpg')

Structure of the project

  • /image contains photos which are to watermarked
  • /image_result outut directory with ready watermarked images
  • /image_wmark pattern according to which protos are gonna be watermark
  • psnr.m - psnr method which is responsible for computing peak signal-to-noise ratio
  • dct_wtmark.m responsible for inserting and and processing DCT watermarking
  • dct_exwmark.m- transforming image into binary form,adding significant bits and finally exporting it
  • lsb_exwmark.m responsible for processing LSB waterwarking, file handling
  • lsb_wtmark.m processing image acording to LSB method

How the watermarking based on DCT watermaking

  • image is imported
  • transforming image to gray scale imgage
  • resizing image to resolution 512x512
  • image is divided to 8x8 blocks
  • watermark pattern is divaded in the same blocks of image
  • image and patern are forming in row of 32 by 8x8 elements
  • extracting watermark
  • formating colums into 32x32 matrix
  • inseritng colums back into blocks
  • recombining blocks into full image
  • displaying plot of image, watermark pattern, final resoult image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.