Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
metriques Namespace Reference

Functions

 calculate_NPCR (image1, image2)
 This function calculates the Number of Pixels Change Rate (NPCR) between two images.
 
 calculate_UACI (image1, image2)
 This function calculates the Unified Average Changing Intensity (UACI) between two images.
 
 extract_edges_rgb (image)
 This function extracts the edges from an RGB image.
 
 get_binary_map (edges)
 This function converts an edge map to a binary map.
 
 calculate_EDR_rgb (image, alt_image)
 This function calculates the Edge Detection Ratio (EDR) between two RGB images.
 
 extract_edges_gray (image_Y)
 This function extracts the edges from a grayscale image.
 
 calculate_EDR_gray (image, alt_image)
 This function calculates the Edge Detection Ratio (EDR) between two grayscale images.
 
 calculate_entropy_rgb (image)
 This function calculates the entropy of an RGB image.
 
 calculate_entropy_gray (gray_image)
 This function calculates the entropy of a grayscale image.
 
 get_PSNR_for_images (init_image, alt_images)
 This function calculates the Peak Signal-to-Noise Ratio (PSNR) for a set of images.
 
 get_PSNR_for_images_and_origins (init_images, alt_images, mode)
 This function calculates the Peak Signal-to-Noise Ratio (PSNR) for a set of images and their origins.
 
 get_SSIM_for_images_rgb (init_image, alt_images)
 This function calculates the Structural Similarity Index Measure (SSIM) for a set of RGB images.
 
 get_SSIM_for_images_gray (gray_base_image, alt_images)
 This function calculates the Structural Similarity Index Measure (SSIM) for a set of grayscale images.
 
 get_SSIM_for_images_and_origins_gray (gray_base_images, alt_images, mode)
 This function calculates the Structural Similarity Index Measure (SSIM) for a set of grayscale images and their origins.
 
 get_NPCR_for_images (init_image, alt_images)
 This function calculates the Number of Pixels Change Rate (NPCR) for a set of images.
 
 get_NPCR_for_images_and_origins (init_images, alt_images, mode)
 This function calculates the Number of Pixels Change Rate (NPCR) for a set of images and their origins.
 
 get_UACI_for_images (init_image, alt_images)
 This function calculates the Unified Average Changing Intensity (UACI) for a set of images.
 
 get_UACI_for_images_and_origins (init_images, alt_images, mode)
 This function calculates the Unified Average Changing Intensity (UACI) for a set of images and their origins.
 
 get_EDR_for_images_rgb (init_image, alt_images)
 This function calculates the Edge Detection Ratio (EDR) for a set of RGB images.
 
 get_EDR_for_images_gray (init_image, alt_images)
 This function calculates the Edge Detection Ratio (EDR) for a set of grayscale images.
 
 get_EDR_for_images_and_origins_gray (init_images, alt_images, mode)
 This function calculates the Edge Detection Ratio (EDR) for a set of grayscale images and their origins.
 
 get_entropy_for_images_rgb (alt_images)
 This function calculates the entropy for a set of RGB images.
 
 get_entropy_for_images_gray (alt_images, mode)
 This function calculates the entropy for a set of grayscale images.
 

Function Documentation

◆ calculate_EDR_gray()

metriques.calculate_EDR_gray ( image,
alt_image )

This function calculates the Edge Detection Ratio (EDR) between two grayscale images.

Parameters
imageThe first grayscale image.
alt_imageThe second grayscale image.
Returns
The EDR value.
Author
Norman Hutte
Date
2024

◆ calculate_EDR_rgb()

metriques.calculate_EDR_rgb ( image,
alt_image )

This function calculates the Edge Detection Ratio (EDR) between two RGB images.

Parameters
imageThe first image.
alt_imageThe second image.
Returns
The EDR value.
Author
Norman Hutte
Date
2024

◆ calculate_entropy_gray()

metriques.calculate_entropy_gray ( gray_image)

This function calculates the entropy of a grayscale image.

Parameters
gray_imageThe input grayscale image.
Returns
The entropy value.
Author
Norman Hutte
Date
2024

◆ calculate_entropy_rgb()

metriques.calculate_entropy_rgb ( image)

This function calculates the entropy of an RGB image.

Parameters
imageThe input RGB image.
Returns
The entropy value.
Author
Norman Hutte
Date
2024

◆ calculate_NPCR()

metriques.calculate_NPCR ( image1,
image2 )

This function calculates the Number of Pixels Change Rate (NPCR) between two images.

Parameters
image1The first image.
image2The second image.
Returns
The NPCR value.
Author
Norman Hutte
Date
2024

◆ calculate_UACI()

metriques.calculate_UACI ( image1,
image2 )

This function calculates the Unified Average Changing Intensity (UACI) between two images.

Parameters
image1The first image.
image2The second image.
Returns
The UACI value.
Author
Norman Hutte
Date
2024

◆ extract_edges_gray()

metriques.extract_edges_gray ( image_Y)

This function extracts the edges from a grayscale image.

Parameters
image_YThe input grayscale image.
Returns
The edge map of the image.
Author
Norman Hutte
Date
2024

◆ extract_edges_rgb()

metriques.extract_edges_rgb ( image)

This function extracts the edges from an RGB image.

Parameters
imageThe input image.
Returns
The edge map of the image.
Author
Norman Hutte
Date
2024

◆ get_binary_map()

metriques.get_binary_map ( edges)

This function converts an edge map to a binary map.

Parameters
edgesThe edge map.
Returns
The binary map.
Author
Norman Hutte
Date
2024

◆ get_EDR_for_images_and_origins_gray()

metriques.get_EDR_for_images_and_origins_gray ( init_images,
alt_images,
mode )

This function calculates the Edge Detection Ratio (EDR) for a set of grayscale images and their origins.

Parameters
init_imagesThe initial set of grayscale images.
alt_imagesThe set of altered grayscale images.
modeThe mode of calculation.
Returns
The EDR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_EDR_for_images_gray()

metriques.get_EDR_for_images_gray ( init_image,
alt_images )

This function calculates the Edge Detection Ratio (EDR) for a set of grayscale images.

Parameters
init_imageThe initial grayscale image.
alt_imagesThe set of altered grayscale images.
Returns
The EDR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_EDR_for_images_rgb()

metriques.get_EDR_for_images_rgb ( init_image,
alt_images )

This function calculates the Edge Detection Ratio (EDR) for a set of RGB images.

Parameters
init_imageThe initial RGB image.
alt_imagesThe set of altered RGB images.
Returns
The EDR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_entropy_for_images_gray()

metriques.get_entropy_for_images_gray ( alt_images,
mode )

This function calculates the entropy for a set of grayscale images.

Parameters
alt_imagesThe set of altered grayscale images.
modeThe mode of calculation.
Returns
The entropy values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_entropy_for_images_rgb()

metriques.get_entropy_for_images_rgb ( alt_images)

This function calculates the entropy for a set of RGB images.

Parameters
alt_imagesThe set of altered RGB images.
Returns
The entropy values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_NPCR_for_images()

metriques.get_NPCR_for_images ( init_image,
alt_images )

This function calculates the Number of Pixels Change Rate (NPCR) for a set of images.

Parameters
init_imageThe initial image.
alt_imagesThe set of altered images.
Returns
The NPCR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_NPCR_for_images_and_origins()

metriques.get_NPCR_for_images_and_origins ( init_images,
alt_images,
mode )

This function calculates the Number of Pixels Change Rate (NPCR) for a set of images and their origins.

Parameters
init_imagesThe initial set of images.
alt_imagesThe set of altered images.
modeThe mode of calculation.
Returns
The NPCR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_PSNR_for_images()

metriques.get_PSNR_for_images ( init_image,
alt_images )

This function calculates the Peak Signal-to-Noise Ratio (PSNR) for a set of images.

Parameters
init_imageThe initial image.
alt_imagesThe set of altered images.
Returns
The PSNR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_PSNR_for_images_and_origins()

metriques.get_PSNR_for_images_and_origins ( init_images,
alt_images,
mode )

This function calculates the Peak Signal-to-Noise Ratio (PSNR) for a set of images and their origins.

Parameters
init_imagesThe initial set of images.
alt_imagesThe set of altered images.
modeThe mode of calculation.
Returns
The PSNR values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_SSIM_for_images_and_origins_gray()

metriques.get_SSIM_for_images_and_origins_gray ( gray_base_images,
alt_images,
mode )

This function calculates the Structural Similarity Index Measure (SSIM) for a set of grayscale images and their origins.

Parameters
gray_base_imagesThe initial set of grayscale images.
alt_imagesThe set of altered grayscale images.
modeThe mode of calculation.
Returns
The SSIM values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_SSIM_for_images_gray()

metriques.get_SSIM_for_images_gray ( gray_base_image,
alt_images )

This function calculates the Structural Similarity Index Measure (SSIM) for a set of grayscale images.

Parameters
gray_base_imageThe initial grayscale image.
alt_imagesThe set of altered grayscale images.
Returns
The SSIM values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_SSIM_for_images_rgb()

metriques.get_SSIM_for_images_rgb ( init_image,
alt_images )

This function calculates the Structural Similarity Index Measure (SSIM) for a set of RGB images.

Parameters
init_imageThe initial RGB image.
alt_imagesThe set of altered RGB images.
Returns
The SSIM values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_UACI_for_images()

metriques.get_UACI_for_images ( init_image,
alt_images )

This function calculates the Unified Average Changing Intensity (UACI) for a set of images.

Parameters
init_imageThe initial image.
alt_imagesThe set of altered images.
Returns
The UACI values for each altered image.
Author
Norman Hutte
Date
2024

◆ get_UACI_for_images_and_origins()

metriques.get_UACI_for_images_and_origins ( init_images,
alt_images,
mode )

This function calculates the Unified Average Changing Intensity (UACI) for a set of images and their origins.

Parameters
init_imagesThe initial set of images.
alt_imagesThe set of altered images.
modeThe mode of calculation.
Returns
The UACI values for each altered image.
Author
Norman Hutte
Date
2024