From b640029d631b4e3a8a3bf0cb7b5747cc116c0bbc Mon Sep 17 00:00:00 2001 From: ankanghosh101 <132755922+ankanghosh101@users.noreply.github.com> Date: Thu, 30 May 2024 18:35:09 +0530 Subject: [PATCH] optimized for better tabular representation an extention of previous commit for having better readability of csv file --- .ipynb_checkpoints/coverdata-checkpoint.csv | 7 + coverdata.csv | 5 +- impercepCOVER.ipynb | 18 +- impercepWATER.ipynb | 312 ++++++++++---------- watermarkdata.csv | 22 +- 5 files changed, 187 insertions(+), 177 deletions(-) create mode 100644 .ipynb_checkpoints/coverdata-checkpoint.csv diff --git a/.ipynb_checkpoints/coverdata-checkpoint.csv b/.ipynb_checkpoints/coverdata-checkpoint.csv new file mode 100644 index 0000000..35a226e --- /dev/null +++ b/.ipynb_checkpoints/coverdata-checkpoint.csv @@ -0,0 +1,7 @@ +METRIC,PSNR,SSIM,CC,DATASET +Max,40.86297679,0.983252489,0.999381129,SIPI +Min,37.42230694,0.956893649,0.995526841,SIPI +Mean,39.29749284,0.97397383,0.997915209,SIPI +Max,40.862976791801245,0.9832524892556972,0.9993811288816858,SIPI +Min,37.42230694013433,0.9568936492232867,0.9955268406692906,SIPI +Mean,39.29749283694743,0.9739738302821098,0.9979152088287259,SIPI diff --git a/coverdata.csv b/coverdata.csv index 35a226e..7d48aca 100644 --- a/coverdata.csv +++ b/coverdata.csv @@ -1,7 +1,4 @@ METRIC,PSNR,SSIM,CC,DATASET -Max,40.86297679,0.983252489,0.999381129,SIPI -Min,37.42230694,0.956893649,0.995526841,SIPI -Mean,39.29749284,0.97397383,0.997915209,SIPI Max,40.862976791801245,0.9832524892556972,0.9993811288816858,SIPI Min,37.42230694013433,0.9568936492232867,0.9955268406692906,SIPI -Mean,39.29749283694743,0.9739738302821098,0.9979152088287259,SIPI +Mean,39.29749283694742,0.9739738302821098,0.9979152088287259,SIPI diff --git a/impercepCOVER.ipynb b/impercepCOVER.ipynb index f6740f4..cba0a0c 100644 --- a/impercepCOVER.ipynb +++ b/impercepCOVER.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 14, + "execution_count": 4, "id": "39c19660", "metadata": {}, "outputs": [], @@ -16,12 +16,14 @@ "from skimage.metrics import structural_similarity as ssim\n", "from skimage.metrics import peak_signal_noise_ratio as psnr\n", "\n", - "datasetNAME = 'SIPI'" + "datasetNAME = 'SIPI'\n", + "if not os.path.exists('coverdata.csv'):\n", + " pd.DataFrame(columns=['METRIC','PSNR','SSIM','CC','DATASET']).to_csv('coverdata.csv', index=False)" ] }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 5, "id": "37faf688-c42a-49bd-a7ad-dcce66a0f797", "metadata": {}, "outputs": [], @@ -49,7 +51,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "id": "f6cadd04", "metadata": {}, "outputs": [ @@ -57,8 +59,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 11.2 s\n", - "Wall time: 1.16 s\n" + "CPU times: total: 11.3 s\n", + "Wall time: 1.18 s\n" ] } ], @@ -139,7 +141,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 8, "id": "2a67abc7-6e85-4079-bfa4-9f8d300ab4ee", "metadata": {}, "outputs": [ @@ -207,7 +209,7 @@ "2 Mean 39.297493 0.973974 0.997915 SIPI" ] }, - "execution_count": 21, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } diff --git a/impercepWATER.ipynb b/impercepWATER.ipynb index 148226d..d5a241d 100644 --- a/impercepWATER.ipynb +++ b/impercepWATER.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 31, "id": "39c19660", "metadata": {}, "outputs": [], @@ -15,12 +15,16 @@ "from queue import Queue\n", "from skimage.metrics import structural_similarity as ssim\n", "from skimage.metrics import peak_signal_noise_ratio as psnr\n", - "watermark_DIR = \"watermark\\\\WaterM.png\"" + "\n", + "watermark_DIR = \"watermark\\\\WaterM.png\"\n", + "\n", + "if not os.path.exists('watermarkdata.csv'):\n", + " pd.DataFrame(columns=['METRIC','PSNR','SSIM','CC','ATTACK']).to_csv('watermarkdata.csv', index=False)" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 32, "id": "cf8ec1a6-3ab2-4416-80a4-344cc2f8c36b", "metadata": {}, "outputs": [], @@ -40,7 +44,7 @@ " })\n", " \n", " # Add a new column 'Dataset' with value 'newdata01'\n", - " output_df['attack'] = attackNAME\n", + " output_df['ATTACK'] = attackNAME\n", " output_df.to_csv('watermarkdata.csv', mode='a', header=False, index=False)\n", "\n", " return output_df" @@ -48,7 +52,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 33, "id": "f6cadd04", "metadata": {}, "outputs": [], @@ -118,7 +122,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 34, "id": "c409a192-d1bc-419d-9bd3-024ec7b3a0b4", "metadata": {}, "outputs": [ @@ -126,8 +130,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 547 ms\n", - "Wall time: 48 ms\n" + "CPU times: total: 375 ms\n", + "Wall time: 45 ms\n" ] }, { @@ -155,7 +159,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -188,13 +192,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 41.027525 0.987170 0.999813 NOattack\n", "1 Min 25.068264 0.977933 0.991896 NOattack\n", "2 Mean 39.060178 0.984119 0.999246 NOattack" ] }, - "execution_count": 4, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" } @@ -209,17 +213,17 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 35, "id": "4d07eccb", "metadata": {}, "outputs": [], "source": [ - "df.to_csv('fileWATER.csv')" + "#df.to_csv('fileWATER.csv')" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 36, "id": "5d4dfe64", "metadata": {}, "outputs": [ @@ -227,8 +231,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 688 ms\n", - "Wall time: 103 ms\n" + "CPU times: total: 281 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -256,7 +260,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -289,13 +293,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 10.823669 0.758112 0.846111 rotation\n", "1 Min 9.104525 0.608897 0.612454 rotation\n", "2 Mean 10.037417 0.689324 0.738998 rotation" ] }, - "execution_count": 5, + "execution_count": 36, "metadata": {}, "output_type": "execute_result" } @@ -309,7 +313,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 37, "id": "c05bb435-15ac-4652-9a38-e57d54fcef62", "metadata": {}, "outputs": [ @@ -317,8 +321,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 734 ms\n", - "Wall time: 104 ms\n" + "CPU times: total: 516 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -346,7 +350,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -379,13 +383,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 11.286221 0.671011 0.982107 downscale\n", "1 Min 10.991948 0.623446 0.933771 downscale\n", "2 Mean 11.180626 0.650758 0.967158 downscale" ] }, - "execution_count": 6, + "execution_count": 37, "metadata": {}, "output_type": "execute_result" } @@ -399,7 +403,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 38, "id": "c9ab349e-c0b7-4d5f-87b7-0576882982bd", "metadata": {}, "outputs": [ @@ -407,8 +411,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 107 ms\n" + "CPU times: total: 297 ms\n", + "Wall time: 48 ms\n" ] }, { @@ -436,7 +440,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -469,13 +473,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 15.872154 0.893262 0.997061 upscale\n", "1 Min 15.031373 0.869025 0.988221 upscale\n", "2 Mean 15.754584 0.881666 0.995430 upscale" ] }, - "execution_count": 7, + "execution_count": 38, "metadata": {}, "output_type": "execute_result" } @@ -489,7 +493,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 39, "id": "d8e33cb5-9ae6-4412-acc4-f2a91615e905", "metadata": {}, "outputs": [ @@ -497,8 +501,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 656 ms\n", - "Wall time: 114 ms\n" + "CPU times: total: 516 ms\n", + "Wall time: 44.5 ms\n" ] }, { @@ -526,7 +530,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -559,13 +563,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 10.443140 0.609192 0.982911 gaussblurr\n", "1 Min 10.201479 0.582515 0.964657 gaussblurr\n", "2 Mean 10.397685 0.595371 0.975619 gaussblurr" ] }, - "execution_count": 8, + "execution_count": 39, "metadata": {}, "output_type": "execute_result" } @@ -579,7 +583,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 40, "id": "6e51f7c7-6ff1-40e8-bd9b-53d4f62c4b6a", "metadata": {}, "outputs": [ @@ -587,8 +591,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 688 ms\n", - "Wall time: 106 ms\n" + "CPU times: total: 500 ms\n", + "Wall time: 43 ms\n" ] }, { @@ -616,7 +620,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -649,13 +653,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 19.791905 0.883578 0.971336 saltpepper\n", "1 Min 18.186226 0.846209 0.958080 saltpepper\n", "2 Mean 19.106710 0.870205 0.965904 saltpepper" ] }, - "execution_count": 9, + "execution_count": 40, "metadata": {}, "output_type": "execute_result" } @@ -669,7 +673,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 41, "id": "775f869b-3559-4646-ae39-3b6a546fc1a4", "metadata": {}, "outputs": [ @@ -677,8 +681,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 106 ms\n" + "CPU times: total: 375 ms\n", + "Wall time: 45 ms\n" ] }, { @@ -706,7 +710,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -739,13 +743,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 10.769013 0.618786 0.777135 jpeg30\n", "1 Min 9.269633 0.471354 0.704611 jpeg30\n", "2 Mean 10.163690 0.561979 0.741825 jpeg30" ] }, - "execution_count": 10, + "execution_count": 41, "metadata": {}, "output_type": "execute_result" } @@ -760,7 +764,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 42, "id": "5277ebf9-ac6b-4305-abeb-692da24e2ac3", "metadata": {}, "outputs": [ @@ -768,8 +772,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 104 ms\n" + "CPU times: total: 375 ms\n", + "Wall time: 49 ms\n" ] }, { @@ -797,7 +801,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -830,13 +834,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 12.849209 0.719683 0.877991 jpeg40\n", "1 Min 11.982337 0.670211 0.818624 jpeg40\n", "2 Mean 12.402728 0.689031 0.846461 jpeg40" ] }, - "execution_count": 11, + "execution_count": 42, "metadata": {}, "output_type": "execute_result" } @@ -852,7 +856,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 43, "id": "3bc4fdb7-e99f-41e9-a491-b7873677a599", "metadata": {}, "outputs": [ @@ -860,8 +864,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 688 ms\n", - "Wall time: 102 ms\n" + "CPU times: total: 406 ms\n", + "Wall time: 49 ms\n" ] }, { @@ -889,7 +893,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -922,13 +926,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 14.646523 0.777799 0.917236 jpeg50\n", "1 Min 13.525978 0.737587 0.874440 jpeg50\n", "2 Mean 13.990090 0.755407 0.894842 jpeg50" ] }, - "execution_count": 12, + "execution_count": 43, "metadata": {}, "output_type": "execute_result" } @@ -943,7 +947,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 44, "id": "eb2c4cb9-6f9c-408d-9c3d-3426804d5b0e", "metadata": {}, "outputs": [ @@ -951,8 +955,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 108 ms\n" + "CPU times: total: 406 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -980,7 +984,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1013,13 +1017,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 16.570882 0.827184 0.945969 jpeg60\n", "1 Min 14.622681 0.762977 0.901942 jpeg60\n", "2 Mean 15.721656 0.804361 0.929360 jpeg60" ] }, - "execution_count": 14, + "execution_count": 44, "metadata": {}, "output_type": "execute_result" } @@ -1035,7 +1039,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 45, "id": "653c19e8-b6de-46ef-b60a-876ede5435a5", "metadata": {}, "outputs": [ @@ -1043,8 +1047,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 719 ms\n", - "Wall time: 105 ms\n" + "CPU times: total: 281 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -1072,7 +1076,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1105,13 +1109,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 19.181898 0.865441 0.969102 jpeg70\n", "1 Min 16.134127 0.802668 0.932788 jpeg70\n", "2 Mean 17.833328 0.840158 0.956077 jpeg70" ] }, - "execution_count": 15, + "execution_count": 45, "metadata": {}, "output_type": "execute_result" } @@ -1127,7 +1131,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 46, "id": "f4547051-cfa3-4b8e-8a7f-6a74e9d94b88", "metadata": {}, "outputs": [ @@ -1135,8 +1139,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 101 ms\n" + "CPU times: total: 422 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -1164,7 +1168,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1197,13 +1201,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 21.618743 0.898234 0.982698 jpeg80\n", "1 Min 17.583858 0.829974 0.953353 jpeg80\n", "2 Mean 19.963099 0.868373 0.972898 jpeg80" ] }, - "execution_count": 16, + "execution_count": 46, "metadata": {}, "output_type": "execute_result" } @@ -1219,7 +1223,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 47, "id": "bf1873a4-7ef2-461e-827f-429ce5ae8b59", "metadata": {}, "outputs": [ @@ -1227,8 +1231,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 734 ms\n", - "Wall time: 103 ms\n" + "CPU times: total: 500 ms\n", + "Wall time: 46 ms\n" ] }, { @@ -1256,7 +1260,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1289,13 +1293,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 28.102185 0.927801 0.996111 jpeg95\n", "1 Min 22.701512 0.900107 0.985901 jpeg95\n", "2 Mean 25.831624 0.915281 0.992982 jpeg95" ] }, - "execution_count": 17, + "execution_count": 47, "metadata": {}, "output_type": "execute_result" } @@ -1310,7 +1314,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 48, "id": "0a62a4ae-8b89-4687-b2e1-835310b7f14e", "metadata": {}, "outputs": [ @@ -1318,8 +1322,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 107 ms\n" + "CPU times: total: 312 ms\n", + "Wall time: 45 ms\n" ] }, { @@ -1347,7 +1351,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1380,13 +1384,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 11.315497 0.661126 0.999454 bright05\n", "1 Min 11.010891 0.648183 0.991394 bright05\n", "2 Mean 11.284157 0.658718 0.998871 bright05" ] }, - "execution_count": 18, + "execution_count": 48, "metadata": {}, "output_type": "execute_result" } @@ -1402,7 +1406,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 49, "id": "e136d1fc-f32e-46e3-aa8a-ed32b5063ff7", "metadata": {}, "outputs": [ @@ -1410,8 +1414,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 891 ms\n", - "Wall time: 110 ms\n" + "CPU times: total: 625 ms\n", + "Wall time: 46 ms\n" ] }, { @@ -1439,7 +1443,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1472,13 +1476,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 13.255015 0.789651 0.999621 bright06\n", "1 Min 12.758414 0.775123 0.991556 bright06\n", "2 Mean 13.205817 0.786664 0.999048 bright06" ] }, - "execution_count": 19, + "execution_count": 49, "metadata": {}, "output_type": "execute_result" } @@ -1493,7 +1497,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 50, "id": "00538383-f260-4a73-b8a7-7c8d2eb6b6bd", "metadata": {}, "outputs": [ @@ -1501,8 +1505,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 688 ms\n", - "Wall time: 106 ms\n" + "CPU times: total: 391 ms\n", + "Wall time: 44 ms\n" ] }, { @@ -1530,7 +1534,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1563,13 +1567,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 15.772902 0.884180 0.999672 bright07\n", "1 Min 14.939028 0.870119 0.991657 bright07\n", "2 Mean 15.674387 0.880955 0.999084 bright07" ] }, - "execution_count": 20, + "execution_count": 50, "metadata": {}, "output_type": "execute_result" } @@ -1584,7 +1588,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 51, "id": "9e8bc3f7-e1ef-4924-a91c-c7b53b2a28ed", "metadata": {}, "outputs": [ @@ -1592,8 +1596,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 719 ms\n", - "Wall time: 107 ms\n" + "CPU times: total: 281 ms\n", + "Wall time: 47 ms\n" ] }, { @@ -1621,7 +1625,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1654,13 +1658,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 19.266971 0.945281 0.999702 bright08\n", "1 Min 17.741710 0.932592 0.991670 bright08\n", "2 Mean 19.119844 0.942300 0.999118 bright08" ] }, - "execution_count": 21, + "execution_count": 51, "metadata": {}, "output_type": "execute_result" } @@ -1675,7 +1679,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 52, "id": "3b23c49c-8e3c-40e7-9fe7-3a715128fafc", "metadata": {}, "outputs": [ @@ -1683,8 +1687,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 719 ms\n", - "Wall time: 114 ms\n" + "CPU times: total: 484 ms\n", + "Wall time: 48 ms\n" ] }, { @@ -1712,7 +1716,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1745,13 +1749,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 25.202541 0.976629 0.999710 bright09\n", "1 Min 21.464494 0.964808 0.991750 bright09\n", "2 Mean 24.841332 0.973849 0.999137 bright09" ] }, - "execution_count": 22, + "execution_count": 52, "metadata": {}, "output_type": "execute_result" } @@ -1766,7 +1770,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 53, "id": "a0d8712c-7c85-4c4f-aee2-7f75423c57c5", "metadata": {}, "outputs": [ @@ -1774,8 +1778,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 115 ms\n" + "CPU times: total: 406 ms\n", + "Wall time: 46 ms\n" ] }, { @@ -1803,7 +1807,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1836,13 +1840,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 29.944520 0.975831 0.998413 bright11\n", "1 Min 25.106523 0.956428 0.992004 bright11\n", "2 Mean 29.272953 0.970324 0.997614 bright11" ] }, - "execution_count": 23, + "execution_count": 53, "metadata": {}, "output_type": "execute_result" } @@ -1857,7 +1861,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 54, "id": "1a3bbd8a-0b96-460c-b1a0-ce72fa11ea2f", "metadata": {}, "outputs": [ @@ -1865,8 +1869,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 734 ms\n", - "Wall time: 106 ms\n" + "CPU times: total: 266 ms\n", + "Wall time: 46.2 ms\n" ] }, { @@ -1894,7 +1898,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -1927,13 +1931,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 26.877262 0.964636 0.996682 bright12\n", "1 Min 13.947314 0.794619 0.886584 bright12\n", "2 Mean 22.871136 0.915597 0.977620 bright12" ] }, - "execution_count": 24, + "execution_count": 54, "metadata": {}, "output_type": "execute_result" } @@ -1948,7 +1952,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 55, "id": "8cb3a224-2feb-4498-be02-dd613ebaa5f2", "metadata": {}, "outputs": [ @@ -1956,8 +1960,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 104 ms\n" + "CPU times: total: 297 ms\n", + "Wall time: 43 ms\n" ] }, { @@ -1985,7 +1989,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -2018,13 +2022,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 24.184520 0.951934 0.993549 bright13\n", "1 Min 8.868193 0.546938 0.624683 bright13\n", "2 Mean 16.757990 0.799753 0.911636 bright13" ] }, - "execution_count": 25, + "execution_count": 55, "metadata": {}, "output_type": "execute_result" } @@ -2039,7 +2043,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 56, "id": "b2a6c54d-772e-4c5c-8628-9a9ed4224ee4", "metadata": {}, "outputs": [ @@ -2047,8 +2051,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 703 ms\n", - "Wall time: 105 ms\n" + "CPU times: total: 297 ms\n", + "Wall time: 43.3 ms\n" ] }, { @@ -2076,7 +2080,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -2109,13 +2113,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 26.587281 0.941689 0.994818 bright14\n", "1 Min 7.769502 0.313805 0.511706 bright14\n", "2 Mean 14.159920 0.678815 0.844152 bright14" ] }, - "execution_count": 26, + "execution_count": 56, "metadata": {}, "output_type": "execute_result" } @@ -2130,7 +2134,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 57, "id": "ebb23ef7-afdd-4752-b4c2-7ec118aaf1a5", "metadata": {}, "outputs": [ @@ -2138,8 +2142,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: total: 719 ms\n", - "Wall time: 102 ms\n" + "CPU times: total: 297 ms\n", + "Wall time: 46 ms\n" ] }, { @@ -2167,7 +2171,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -2200,13 +2204,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 24.820982 0.933599 0.991357 bright15\n", "1 Min 6.749012 0.127481 0.474007 bright15\n", "2 Mean 12.386751 0.593277 0.786079 bright15" ] }, - "execution_count": 27, + "execution_count": 57, "metadata": {}, "output_type": "execute_result" } @@ -2221,7 +2225,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 58, "id": "c43dca42-0491-492f-8a97-e37b508f2f79", "metadata": {}, "outputs": [ @@ -2250,7 +2254,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -2283,13 +2287,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 12.298336 0.745813 0.844542 crop25UL\n", "1 Min 12.070299 0.736605 0.836257 crop25UL\n", "2 Mean 12.254204 0.741710 0.842831 crop25UL" ] }, - "execution_count": 28, + "execution_count": 58, "metadata": {}, "output_type": "execute_result" } @@ -2303,7 +2307,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 59, "id": "e58ecdd2-de05-4bbd-a4d1-3052d97ebaea", "metadata": {}, "outputs": [ @@ -2332,7 +2336,7 @@ " PSNR\n", " SSIM\n", " CC\n", - " attack\n", + " ATTACK\n", " \n", " \n", " \n", @@ -2365,13 +2369,13 @@ "" ], "text/plain": [ - " Metric PSNR SSIM CC attack\n", + " Metric PSNR SSIM CC ATTACK\n", "0 Max 41.027525 0.987170 0.999813 crop25W\n", "1 Min 25.068285 0.977933 0.991896 crop25W\n", "2 Mean 39.059917 0.984119 0.999246 crop25W" ] }, - "execution_count": 29, + "execution_count": 59, "metadata": {}, "output_type": "execute_result" } @@ -2384,7 +2388,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 60, "id": "58eef3b8-9413-4afc-9bc4-e019bd58e4ff", "metadata": {}, "outputs": [], diff --git a/watermarkdata.csv b/watermarkdata.csv index b4e1b68..78e447b 100644 --- a/watermarkdata.csv +++ b/watermarkdata.csv @@ -1,10 +1,10 @@ -Metric,PSNR,SSIM,CC,ATTACK +METRIC,PSNR,SSIM,CC,ATTACK Max,41.02752504604772,0.9871698859122401,0.999813046615389,NOattack Min,25.068264095554582,0.9779327582687767,0.9918958141972279,NOattack -Mean,39.060177850466516,0.9841190647394524,0.9992461165364881,NOattack +Mean,39.060177850466516,0.9841190647394525,0.9992461165364881,NOattack Max,10.823668846355783,0.7581118481568282,0.8461113797783216,rotation Min,9.104524816426597,0.608897373960455,0.6124538179126104,rotation -Mean,10.037417097332415,0.6893241826931825,0.7389983969329736,rotation +Mean,10.037417097332417,0.6893241826931825,0.7389983969329736,rotation Max,11.286221042519086,0.6710105143979807,0.9821072333068183,downscale Min,10.9919478509117,0.6234457931561675,0.9337714399941289,downscale Mean,11.180626463937333,0.6507581300421181,0.9671584363246661,downscale @@ -13,7 +13,7 @@ Min,15.031372783166521,0.8690245937785246,0.988221041018509,upscale Mean,15.754583745205164,0.8816660630145009,0.9954295389393575,upscale Max,10.443139841675473,0.6091922852035371,0.9829106123999645,gaussblurr Min,10.201478958367687,0.5825154525272552,0.9646565357968153,gaussblurr -Mean,10.397684521468678,0.5953705954389401,0.9756193277652088,gaussblurr +Mean,10.397684521468678,0.5953705954389401,0.9756193277652087,gaussblurr Max,19.791904883253295,0.8835783808786187,0.9713356739474295,saltpepper Min,18.18622575238622,0.8462089139261492,0.9580799217774375,saltpepper Mean,19.106710285341684,0.8702052206763204,0.9659044893929465,saltpepper @@ -31,7 +31,7 @@ Min,14.62268105190119,0.7629765088278967,0.9019415934640603,jpeg60 Mean,15.721655901212575,0.8043607989970459,0.9293598063179588,jpeg60 Max,19.18189814000128,0.8654405627698694,0.9691015611556628,jpeg70 Min,16.134126573622986,0.8026675681308847,0.9327877652226646,jpeg70 -Mean,17.8333282228742,0.8401581428746687,0.9560769547547978,jpeg70 +Mean,17.8333282228742,0.8401581428746686,0.9560769547547978,jpeg70 Max,21.61874301030093,0.8982338654204951,0.9826980419854315,jpeg80 Min,17.583857820199473,0.8299736330737154,0.9533525438900574,jpeg80 Mean,19.963098824267465,0.8683732105115082,0.9728981732857046,jpeg80 @@ -43,13 +43,13 @@ Min,11.010891402769525,0.6481832302034419,0.9913938945274224,bright05 Mean,11.28415746172534,0.6587183963188633,0.9988713556734621,bright05 Max,13.25501469312647,0.7896505824053053,0.9996213654991593,bright06 Min,12.75841359794095,0.7751233193714091,0.9915560589256791,bright06 -Mean,13.205817143797727,0.7866635331808675,0.9990483163546646,bright06 +Mean,13.205817143797727,0.7866635331808673,0.9990483163546646,bright06 Max,15.772902082311294,0.8841798404126718,0.9996723038805864,bright07 Min,14.9390284173761,0.8701190087886448,0.9916571702031455,bright07 Mean,15.67438727961341,0.8809552602331483,0.9990841823534021,bright07 Max,19.266970549042554,0.9452808707932322,0.999701909397461,bright08 Min,17.741709549626606,0.9325922324855044,0.9916704704074037,bright08 -Mean,19.119844079786372,0.942299568765354,0.9991177422975129,bright08 +Mean,19.119844079786372,0.942299568765354,0.999117742297513,bright08 Max,25.202541273399653,0.9766288632560043,0.9997095244002476,bright09 Min,21.464493584356884,0.9648081760928701,0.9917503825932737,bright09 Mean,24.841332116504056,0.9738493501482464,0.999137093584521,bright09 @@ -58,10 +58,10 @@ Min,25.106523291413097,0.9564276170721632,0.9920042283920192,bright11 Mean,29.272953408487943,0.9703236263854231,0.9976136817905069,bright11 Max,26.87726189628995,0.9646362095207254,0.9966816948531718,bright12 Min,13.947314265931388,0.7946194188827086,0.8865844457137657,bright12 -Mean,22.871136471389246,0.9155965466135666,0.977619806793093,bright12 +Mean,22.87113647138925,0.9155965466135666,0.977619806793093,bright12 Max,24.184520011076014,0.9519340348248466,0.9935488733506244,bright13 Min,8.868192609543446,0.54693799548989,0.6246834254604023,bright13 -Mean,16.757989584633833,0.7997534714484453,0.9116364651462444,bright13 +Mean,16.757989584633833,0.7997534714484453,0.9116364651462445,bright13 Max,26.58728119855465,0.9416892089072141,0.9948179524310533,bright14 Min,7.769502046665545,0.31380454448772993,0.511706281488784,bright14 Mean,14.159920233021293,0.6788151290124818,0.8441521336390829,bright14 @@ -70,7 +70,7 @@ Min,6.749011621897263,0.12748100116202943,0.47400743836770903,bright15 Mean,12.386751495832947,0.5932771188322825,0.7860788595483243,bright15 Max,12.298336412169139,0.7458133044862781,0.8445423850599459,crop25UL Min,12.07029911051563,0.7366052574732436,0.8362572860744371,crop25UL -Mean,12.25420403553365,0.7417102222182025,0.8428305085780929,crop25UL +Mean,12.254204035533649,0.7417102222182024,0.8428305085780928,crop25UL Max,41.02752504604772,0.9871698859122401,0.999813046615389,crop25W Min,25.068285047842384,0.9779327610971816,0.9918956838767445,crop25W -Mean,39.05991711586947,0.9841190659609348,0.9992461098853164,crop25W +Mean,39.05991711586946,0.9841190659609348,0.9992461098853164,crop25W