Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
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. | |
metriques.calculate_EDR_gray | ( | image, | |
alt_image ) |
This function calculates the Edge Detection Ratio (EDR) between two grayscale images.
image | The first grayscale image. |
alt_image | The second grayscale image. |
metriques.calculate_EDR_rgb | ( | image, | |
alt_image ) |
This function calculates the Edge Detection Ratio (EDR) between two RGB images.
image | The first image. |
alt_image | The second image. |
metriques.calculate_entropy_gray | ( | gray_image | ) |
This function calculates the entropy of a grayscale image.
gray_image | The input grayscale image. |
metriques.calculate_entropy_rgb | ( | image | ) |
This function calculates the entropy of an RGB image.
image | The input RGB image. |
metriques.calculate_NPCR | ( | image1, | |
image2 ) |
This function calculates the Number of Pixels Change Rate (NPCR) between two images.
image1 | The first image. |
image2 | The second image. |
metriques.calculate_UACI | ( | image1, | |
image2 ) |
This function calculates the Unified Average Changing Intensity (UACI) between two images.
image1 | The first image. |
image2 | The second image. |
metriques.extract_edges_gray | ( | image_Y | ) |
This function extracts the edges from a grayscale image.
image_Y | The input grayscale image. |
metriques.extract_edges_rgb | ( | image | ) |
This function extracts the edges from an RGB image.
image | The input image. |
metriques.get_binary_map | ( | edges | ) |
This function converts an edge map to a binary map.
edges | The edge map. |
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.
init_images | The initial set of grayscale images. |
alt_images | The set of altered grayscale images. |
mode | The mode of calculation. |
metriques.get_EDR_for_images_gray | ( | init_image, | |
alt_images ) |
This function calculates the Edge Detection Ratio (EDR) for a set of grayscale images.
init_image | The initial grayscale image. |
alt_images | The set of altered grayscale images. |
metriques.get_EDR_for_images_rgb | ( | init_image, | |
alt_images ) |
This function calculates the Edge Detection Ratio (EDR) for a set of RGB images.
init_image | The initial RGB image. |
alt_images | The set of altered RGB images. |
metriques.get_entropy_for_images_gray | ( | alt_images, | |
mode ) |
This function calculates the entropy for a set of grayscale images.
alt_images | The set of altered grayscale images. |
mode | The mode of calculation. |
metriques.get_entropy_for_images_rgb | ( | alt_images | ) |
This function calculates the entropy for a set of RGB images.
alt_images | The set of altered RGB 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.
init_image | The initial image. |
alt_images | The set of altered images. |
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.
init_images | The initial set of images. |
alt_images | The set of altered images. |
mode | The mode of calculation. |
metriques.get_PSNR_for_images | ( | init_image, | |
alt_images ) |
This function calculates the Peak Signal-to-Noise Ratio (PSNR) for a set of images.
init_image | The initial image. |
alt_images | The set of altered images. |
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.
init_images | The initial set of images. |
alt_images | The set of altered images. |
mode | The mode of calculation. |
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.
gray_base_images | The initial set of grayscale images. |
alt_images | The set of altered grayscale images. |
mode | The mode of calculation. |
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.
gray_base_image | The initial grayscale image. |
alt_images | The set of altered grayscale images. |
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.
init_image | The initial RGB image. |
alt_images | The set of altered RGB images. |
metriques.get_UACI_for_images | ( | init_image, | |
alt_images ) |
This function calculates the Unified Average Changing Intensity (UACI) for a set of images.
init_image | The initial image. |
alt_images | The set of altered images. |
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.
init_images | The initial set of images. |
alt_images | The set of altered images. |
mode | The mode of calculation. |