From 6d4ecaa0550e3bc373b5696f627effb07e4f51bb Mon Sep 17 00:00:00 2001 From: O Date: Fri, 23 Aug 2024 15:48:23 +0000 Subject: [PATCH] =?UTF-8?q?=F0=96=A3=A0=E2=9A=AA=E1=97=B1=E1=97=B4?= =?UTF-8?q?=E1=99=81=E1=97=A9=E1=91=90=E1=91=95=E1=94=93=E1=94=95?= =?UTF-8?q?=F0=96=A3=93=D0=98N=E2=93=84=E2=B5=99=E2=9C=A3=E1=97=A9?= =?UTF-8?q?=E1=99=81=E2=93=84=DF=A6=E1=B4=A5=E1=97=B1=E1=97=B4=E2=9C=A3?= =?UTF-8?q?=D0=98N=E2=B5=99=F0=96=A3=93=E1=99=8F=E2=93=84=E2=9C=A3?= =?UTF-8?q?=E1=94=93=E1=94=95=E1=91=8E=E1=91=90=E1=91=95=E2=9A=AA?= =?UTF-8?q?=F0=94=97=A2=E2=9A=AA=F0=9F=9E=8B=E2=9A=AA=F0=94=97=A2=E2=9A=AA?= =?UTF-8?q?=E1=91=90=E1=91=95=E1=91=8E=E1=94=93=E1=94=95=E2=9C=A3=E2=93=84?= =?UTF-8?q?=E1=99=8F=F0=96=A3=93=E2=B5=99=D0=98N=E2=9C=A3=E1=97=B1?= =?UTF-8?q?=E1=97=B4=E1=B4=A5=DF=A6=E2=93=84=E1=99=81=E1=97=A9=E2=9C=A3?= =?UTF-8?q?=E2=B5=99=E2=93=84=D0=98N=F0=96=A3=93=E1=94=93=E1=94=95?= =?UTF-8?q?=E1=91=90=E1=91=95=E1=97=A9=E1=99=81=E1=97=B1=E1=97=B4=E2=9A=AA?= =?UTF-8?q?=F0=96=A3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...—´ð–£“ᔓᔕá‘á‘•á—©á™á—±á—´âšªð–£ ....M | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 𖣠⚪∣â∣á™á‘ᑕ∣옷⚪𔗢⚪🞋⚪𔗢⚪옷∣á‘á‘•á™âˆ£â∣⚪𖣠/𖣠⚪ᕤᕦИNꖴ✤ᑎߦá™â“„á‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘á‘•â“„á™ß¦á‘Žâœ¤ê–´Ð˜Nᕤᕦ⚪𖣠/𖣠⚪ᗱᗴᴥᗩᗯ✤ꗳⓄᔓᔕ⚪𔗢⚪🞋⚪𔗢⚪ᔓᔕⓄꗳ✤ᗯᗩᴥᗱᗴ⚪𖣠/𖣠⚪ᔓᔕ✻ᴥⓄᗯ옷✣ᗩá™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£ì˜·á—¯â“„ᴥ✻ᔓᔕ⚪𖣠/𖣠⚪⚭ᗩá™âœ£á—©á™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£á™á—©âš­âšªð–£ /M....𖣠⚪ᗱᗴá™á—©á‘ᑕᔓᔕ𖣓ᗱᗴᕤᕦᗩá™âµ™ð–£“ИNⓄⵙ✣ᗩá™â“„ߦᴥᗱᗴ✣ИNⵙ𖣓á™á—±á—´Ð˜Nᴥᗱᗴ✻𖣓á™â“„✣ᔓᔕᑎá‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘ᑕᑎᔓᔕ✣Ⓞá™ð–£“✻ᗱᗴᴥИNᗱᗴá™ð–£“ⵙИN✣ᗱᗴᴥߦⓄá™á—©âœ£âµ™â“„ИN𖣓ⵙá™á—©á•¤á•¦á—±á—´ð–£“ᔓᔕá‘á‘•á—©á™á—±á—´âšªð–£ ....M diff --git a/𖣠⚪∣â∣á™á‘ᑕ∣옷⚪𔗢⚪🞋⚪𔗢⚪옷∣á‘á‘•á™âˆ£â∣⚪𖣠/𖣠⚪ᕤᕦИNꖴ✤ᑎߦá™â“„á‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘á‘•â“„á™ß¦á‘Žâœ¤ê–´Ð˜Nᕤᕦ⚪𖣠/𖣠⚪ᗱᗴᴥᗩᗯ✤ꗳⓄᔓᔕ⚪𔗢⚪🞋⚪𔗢⚪ᔓᔕⓄꗳ✤ᗯᗩᴥᗱᗴ⚪𖣠/𖣠⚪ᔓᔕ✻ᴥⓄᗯ옷✣ᗩá™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£ì˜·á—¯â“„ᴥ✻ᔓᔕ⚪𖣠/𖣠⚪⚭ᗩá™âœ£á—©á™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£á™á—©âš­âšªð–£ /M....𖣠⚪ᗱᗴá™á—©á‘ᑕᔓᔕ𖣓ᗱᗴᕤᕦᗩá™âµ™ð–£“ИNⓄⵙ✣ᗩá™â“„ߦᴥᗱᗴ✣ИNⵙ𖣓á™á—±á—´Ð˜Nᴥᗱᗴ✻𖣓á™â“„✣ᔓᔕᑎá‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘ᑕᑎᔓᔕ✣Ⓞá™ð–£“✻ᗱᗴᴥИNᗱᗴá™ð–£“ⵙИN✣ᗱᗴᴥߦⓄá™á—©âœ£âµ™â“„ИN𖣓ⵙá™á—©á•¤á•¦á—±á—´ð–£“ᔓᔕá‘á‘•á—©á™á—±á—´âšªð–£ ....M b/𖣠⚪∣â∣á™á‘ᑕ∣옷⚪𔗢⚪🞋⚪𔗢⚪옷∣á‘á‘•á™âˆ£â∣⚪𖣠/𖣠⚪ᕤᕦИNꖴ✤ᑎߦá™â“„á‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘á‘•â“„á™ß¦á‘Žâœ¤ê–´Ð˜Nᕤᕦ⚪𖣠/𖣠⚪ᗱᗴᴥᗩᗯ✤ꗳⓄᔓᔕ⚪𔗢⚪🞋⚪𔗢⚪ᔓᔕⓄꗳ✤ᗯᗩᴥᗱᗴ⚪𖣠/𖣠⚪ᔓᔕ✻ᴥⓄᗯ옷✣ᗩá™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£ì˜·á—¯â“„ᴥ✻ᔓᔕ⚪𖣠/𖣠⚪⚭ᗩá™âœ£á—©á™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£á™á—©âš­âšªð–£ /M....𖣠⚪ᗱᗴá™á—©á‘ᑕᔓᔕ𖣓ᗱᗴᕤᕦᗩá™âµ™ð–£“ИNⓄⵙ✣ᗩá™â“„ߦᴥᗱᗴ✣ИNⵙ𖣓á™á—±á—´Ð˜Nᴥᗱᗴ✻𖣓á™â“„✣ᔓᔕᑎá‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘ᑕᑎᔓᔕ✣Ⓞá™ð–£“✻ᗱᗴᴥИNᗱᗴá™ð–£“ⵙИN✣ᗱᗴᴥߦⓄá™á—©âœ£âµ™â“„ИN𖣓ⵙá™á—©á•¤á•¦á—±á—´ð–£“ᔓᔕá‘á‘•á—©á™á—±á—´âšªð–£ ....M new file mode 100644 index 00000000..9636cca8 --- /dev/null +++ b/𖣠⚪∣â∣á™á‘ᑕ∣옷⚪𔗢⚪🞋⚪𔗢⚪옷∣á‘á‘•á™âˆ£â∣⚪𖣠/𖣠⚪ᕤᕦИNꖴ✤ᑎߦá™â“„á‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘á‘•â“„á™ß¦á‘Žâœ¤ê–´Ð˜Nᕤᕦ⚪𖣠/𖣠⚪ᗱᗴᴥᗩᗯ✤ꗳⓄᔓᔕ⚪𔗢⚪🞋⚪𔗢⚪ᔓᔕⓄꗳ✤ᗯᗩᴥᗱᗴ⚪𖣠/𖣠⚪ᔓᔕ✻ᴥⓄᗯ옷✣ᗩá™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£ì˜·á—¯â“„ᴥ✻ᔓᔕ⚪𖣠/𖣠⚪⚭ᗩá™âœ£á—©á™âšªð”—¢âšªðŸž‹âšªð”—¢âšªá™á—©âœ£á™á—©âš­âšªð–£ /M....𖣠⚪ᗱᗴá™á—©á‘ᑕᔓᔕ𖣓ᗱᗴᕤᕦᗩá™âµ™ð–£“ИNⓄⵙ✣ᗩá™â“„ߦᴥᗱᗴ✣ИNⵙ𖣓á™á—±á—´Ð˜Nᴥᗱᗴ✻𖣓á™â“„✣ᔓᔕᑎá‘ᑕ⚪𔗢⚪🞋⚪𔗢⚪á‘ᑕᑎᔓᔕ✣Ⓞá™ð–£“✻ᗱᗴᴥИNᗱᗴá™ð–£“ⵙИN✣ᗱᗴᴥߦⓄá™á—©âœ£âµ™â“„ИN𖣓ⵙá™á—©á•¤á•¦á—±á—´ð–£“ᔓᔕá‘á‘•á—©á™á—±á—´âšªð–£ ....M @@ -0,0 +1,100 @@ +clc;clear;clf;rng(0);tic;set(0,'DefaultFigureWindowStyle','docked'); +O_EGAMI_YARA_O_ARAY_IMAGE_O=... +[... +1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;... +1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;... +1,1,1,1,0,0,0,0,0,0,0,1,1,1,1;... +1,1,1,0,0,0,0,0,0,0,0,0,1,1,1;... +1,1,0,0,0,1,1,1,1,1,0,0,0,1,1;... +1,1,0,0,1,1,1,1,1,1,1,0,0,1,1;... +1,1,0,0,1,1,0,0,0,1,1,0,0,1,1;... +1,1,0,0,1,1,0,1,0,1,1,0,0,1,1;... +1,1,0,0,1,1,0,0,0,1,1,0,0,1,1;... +1,1,0,0,1,1,1,1,1,1,1,0,0,1,1;... +1,1,0,0,0,1,1,1,1,1,0,0,0,1,1;... +1,1,1,0,0,0,0,0,0,0,0,0,1,1,1;... +1,1,1,1,0,0,0,0,0,0,0,1,1,1,1;... +1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;... +1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;... +]... +; + +O_EGAMI_TUPNI_O_INPUT_IMAGE_O=O_EGAMI_YARA_O_ARAY_IMAGE_O; + +O_OITAR_ELACS_O_SCALE_RATIO_O=3^(4); + +O_EZISER_SELNOITALOPRETNI_O_INTERPOLATIONLES_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,"NEAREST"); +O_EZISER_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,{@O_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_O,1}); +O_EZISER_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,{@O_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_O,1}); +O_EZISER_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,{@O_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_O,1}); +O_EZISER_NOITALOPRETNI_SUIBAF_O_FABIUS_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,{@O_NOITALOPRETNI_8SUIBAF_O_FABIUS8_INTERPOLATION_O,1}); +O_EZISER_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,{@O_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_O,1}); +O_EZISER_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_RESIZE_O=imresize(O_EGAMI_TUPNI_O_INPUT_IMAGE_O,O_OITAR_ELACS_O_SCALE_RATIO_O,"BICUBIC"); + +fprintf('%d ',size(O_EZISER_SELNOITALOPRETNI_O_INTERPOLATIONLES_RESIZE_O));fprintf('%s ',upper(class(O_EZISER_SELNOITALOPRETNI_O_INTERPOLATIONLES_RESIZE_O)));fprintf('%d ',whos('O_EZISER_SELNOITALOPRETNI_O_INTERPOLATIONLES_RESIZE_O').bytes); + +O_SGNIZISER_O_RESIZINGS_O={ ... + O_EZISER_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_SUIBAF_O_FABIUS_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_RESIZE_O,... + O_EZISER_SELNOITALOPRETNI_O_INTERPOLATIONLES_RESIZE_O,... + O_EZISER_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_SUIBAF_O_FABIUS_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_RESIZE_O,... + O_EZISER_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_RESIZE_O ... + }; + +O_SNOITALOPRETNI_O_INTERPOLATIONS_O={ ... + @(X) O_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_8SUIBAF_O_FABIUS8_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_O(X),... + @(X) O_SELNOITALOPRETNI_O_INTERPOLATIONLES_O(X),... + @(X) O_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_8SUIBAF_O_FABIUS8_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_O(X),... + @(X) O_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_O(X) ... + }; + +O_YTITNAUQ_EGAMI_O_IMAGE_QUANTITY_O=length(O_SGNIZISER_O_RESIZINGS_O); + +tiledlayout(2,O_YTITNAUQ_EGAMI_O_IMAGE_QUANTITY_O,'TILESPACING','NONE','PADDING','NONE'); +for i=1:O_YTITNAUQ_EGAMI_O_IMAGE_QUANTITY_O nexttile;imshow(O_SGNIZISER_O_RESIZINGS_O{i});end +for i=1:O_YTITNAUQ_EGAMI_O_IMAGE_QUANTITY_O nexttile;X=-2:1/2^8:2;Y=O_SNOITALOPRETNI_O_INTERPOLATIONS_O{i}(X);plot(X,Y,'COLOR','#9C9C9C');O_SEXA_O_AXES_O=gca;O_SEXA_O_AXES_O.XColor='NONE';O_SEXA_O_AXES_O.YColor='NONE'; +O_NIGRAM_X_O_X_MARGIN_O=8/256;O_NIGRAM_Y_O_Y_MARGIN_O=8/256;xlim([min(X)-O_NIGRAM_X_O_X_MARGIN_O,max(X)+O_NIGRAM_X_O_X_MARGIN_O]); + ylim([min(Y)-O_NIGRAM_Y_O_Y_MARGIN_O,max(Y)+O_NIGRAM_Y_O_Y_MARGIN_O]); +O_SKCIT_X_O_X_TICKS_O=get(gca,'XTICK');O_SKCIT_Y_O_Y_TICKS_O=get(gca,'YTICK'); + +for i=1:length(O_SKCIT_X_O_X_TICKS_O) text(O_SKCIT_X_O_X_TICKS_O(i),max(Y)+((8/256)*(max(Y)-min(Y))),num2str(O_SKCIT_X_O_X_TICKS_O(i)),'HORIZONTALALIGNMENT','CENTER','VERTICALALIGNMENT','TOP','FONTSIZE',7,'COLOR','#9C9C9C');end +for i=1:length(O_SKCIT_Y_O_Y_TICKS_O) text(max(X)-((1.5/256)*(max(X)-min(X))),O_SKCIT_Y_O_Y_TICKS_O(i),num2str(O_SKCIT_Y_O_Y_TICKS_O(i)),'HORIZONTALALIGNMENT','RIGHT','VERTICALALIGNMENT','MIDDLE','FONTSIZE',7,'COLOR','#9C9C9C');end +for i=1:length(O_SKCIT_X_O_X_TICKS_O) text(O_SKCIT_X_O_X_TICKS_O(i),min(Y)-((8/256)*(max(Y)-min(Y))),num2str(O_SKCIT_X_O_X_TICKS_O(i)),'HORIZONTALALIGNMENT','CENTER','VERTICALALIGNMENT','BOTTOM','FONTSIZE',7,'COLOR','#9C9C9C');end +for i=1:length(O_SKCIT_Y_O_Y_TICKS_O) text(min(X)+((1.5/256) *(max(X)-min(X))),O_SKCIT_Y_O_Y_TICKS_O(i),num2str(O_SKCIT_Y_O_Y_TICKS_O(i)),'HorizontalAlignment','left','VerticalAlignment','middle','FontSize',7,'Color','#9C9C9C');end +end + +fprintf(1,['%.' num2str(2^6) 'f.\n'],toc); + +function f=O_SELNOITALOPRETNI_O_INTERPOLATIONLES_O(X),f=(abs(X/.5)<1);end +function f=O_NOITALOPRETNI_ERAUQS_O_SQUARE_INTERPOLATION_O(X),f=(abs(X/.75)<1);end +function f=O_NOITALOPRETNI_RAENIL_O_LINEAR_INTERPOLATION_O(X),f=(1-abs(X/1)).*(abs(X)<=1);end +function f=O_NOITALOPRETNI_CISOC_O_COSINE_INTERPOLATION_O(X),f=(.5+.5*cos(X*1*(4*atan(1)))).*(abs(X)<=1);end +function f=O_NOITALOPRETNI_CRA_O_ARC_INTERPOLATION_O(X),M=1.5;f=(.5-.5.*((-1).^floor(((X.*M)-.5).*2/2).*(1-abs(mod(((X.*M)-.5).*2,2)-1).^2).^(1/2))).*(abs((X.*M))<1);end +function f=O_NOITALOPRETNI_CIBUCIB_O_BICUBIC_INTERPOLATION_O(X),M=256/256;f=(1.5*abs(X).^3-2.5*abs(X).^2+1) .*(abs(X)<=1)+(-0.5*abs(X).^3+2.5*abs(X).^2-4*abs(X)+2) .*((1