Image Compression Using Bit-plane Slicing — OpenCvSharp(Without Pre-defined Functions)

Bit-plane Heirarchy of 256-Level Image
E.g. 1
E.g. 2
E.g. 3

Let’s look at how to implement this in practical without using pre-defined functions for creating and combining Bit-planes.

Convert Pixel Value Into Its Binary Format

Final Output

Separated Bit-planes And Combined Output (bp5 + bp6 + bp7 + bp8)





Associate Software Engineer @ Virtusa

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Machine learning basics

Fast, Visual, and Explainable ML Modeling With PerceptiLabs

MLOps: Market Map & Thesis

Feature selection using FRUFS and VevestaX

Predicting Credit Default with Random Forest Classification

Synthetic Data and Autonomous Vehicles

Understanding Hinton’s Capsule Networks. Part I: Intuition.

Numerical Integration: Romberg Integration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Janitha Bandara

Janitha Bandara

Associate Software Engineer @ Virtusa

More from Medium

Git gud, Using Git Flow to it’s Best Capabilities

Knuth-Morris-Pratt Pattern Matching Algorithm

Implementing Docker

Maintain Your Python Project with Cutting-Edge Tools