Skip to content

A hybrid image generator that merges low-frequency and high-frequency features of two images using OpenCV.

Notifications You must be signed in to change notification settings

eesha12khan/Hybrid-Images_CV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hybrid-Images_CV

Hybrid Image Generator

This repository contains a Python implementation for creating hybrid images, where low-frequency components of one image are combined with the high-frequency components of another to produce an interesting visual effect. The project uses OpenCV for image processing and is intended to be run in Google Colab.

Features

i) Low-Frequency Image Generation: Applies Gaussian blur to create the low-frequency version of an image.

ii) High-Frequency Image Generation: Subtracts a blurred version from the original to isolate high-frequency details.

iii) Hybrid Image Creation: Combines the low-frequency and high-frequency images to produce a single hybrid image.

iv) Visualization: Displays the generated images in Google Colab using cv2_imshow.

v) File Output: Saves the low-frequency, high-frequency, and hybrid images as .jpg files.

Usage

  1. Clone the repository or copy the code.

  2. Provide the paths to your images by replacing:

boy_image_path = '/path/to/image1.png' # Replace with the first image path

girl_image_path = '/path/to/image2.png' # Replace with the second image path

  1. Run the code in Google Colab or any Python environment with OpenCV installed.

  2. The script will output:

low_freq_image.jpg

high_freq_image.jpg

hybrid_image.jpg

Requirements

o Python 3.x

o OpenCV

o NumPy

o Google Colab (optional, but preferred for displaying images)

About

A hybrid image generator that merges low-frequency and high-frequency features of two images using OpenCV.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published