From b11e2f3e6d77ff9538c6d60eba508e72eaa2eeb9 Mon Sep 17 00:00:00 2001 From: josemartin117 Date: Mon, 25 Oct 2021 22:50:52 -0500 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20carga=20de=20imagen=20y=20Statis?= =?UTF-8?q?tical=20regional=20merging,=20a=C3=B1adido=20adaptative=20media?= =?UTF-8?q?n=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/classes/filtro_chido/Filtrado$1.class | Bin 769 -> 769 bytes build/classes/filtro_chido/Filtrado$2.class | Bin 769 -> 769 bytes build/classes/filtro_chido/Filtrado$3.class | Bin 769 -> 769 bytes build/classes/filtro_chido/Filtrado$4.class | Bin 541 -> 541 bytes build/classes/filtro_chido/Filtrado.class | Bin 8163 -> 8402 bytes build/classes/filtro_chido/Imagen.class | Bin 0 -> 1149 bytes nbproject/private/private.properties | 2 ++ nbproject/private/private.xml | 11 ++++++++ src/Imagen.java | 0 src/filtro_chido/Filtrado.java | 6 +++-- src/filtro_chido/Imagen.java | 27 ++++++++++++++++++++ 11 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 build/classes/filtro_chido/Imagen.class create mode 100644 nbproject/private/private.xml create mode 100644 src/Imagen.java create mode 100644 src/filtro_chido/Imagen.java diff --git a/build/classes/filtro_chido/Filtrado$1.class b/build/classes/filtro_chido/Filtrado$1.class index 5b7dfc0ec6340316f696fe22af12029e93ecc348..291093c4ba22be07da36eb59c49c43deb19591c7 100644 GIT binary patch delta 23 ecmZoF{$ix^nxroV&HG+YIA#(CTCIF{$ix^rxroV&HJpKiA!71DCIF{$i$d1xroV&HHm?PA$jsaCIF{$ix^wxroV&HIadXA!+hKCIF{$i$dFxroV&HIspZA#3tMCIF{$i$d7xroV&HG_eJA#?IUCIWYP#o delta 23 fcmbQsGM8n;JVwTgljk!!vtDN4X1Fr>Iinc>WS9s- diff --git a/build/classes/filtro_chido/Filtrado.class b/build/classes/filtro_chido/Fil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vZHQ9k$lhYjLaXJw>zGUI7>MDmb zIx*j5fy0?Bba+4W9r`88)!y{DStg4d7IU`AIS%J?p2HH(55DWIi(KHalnaC9b|0gR ziyF7s7Zl4I1MSx;PX&<_+!~$KI4Jr{#m>Rgv7HtNeU7LsVlmI7n(v{8mr%1Jvs!FUY~jrHmsJgLs3PF=)P>T_&RUkT2YfPh}bM#I7; zqa&U+y5bol9-ECsY%%)bS>tXzXWS$DVA)H<3&tpHH8Sy{F%H{|sn~AJ#16wRda>-y z#Y@Hl)Vnz!hzP(a4d;BLIDZHMse{XEnWQcN#ocVd!w3Xmi1T7RB8wiZkUEGGvz79! zngLefQ7ILfQKIY8OBb$$M@ZTETFcIM7k3K4%dYphkWtvXm`kZV?!GEBFAS9`FiM<) ztvHdg2Pq+4wIK{%$KZ7g8J=N`w&6@@g$aezAmKE&fr_{e^}leucp`xHAuLvlxttl+ z?Zd?EjafJ) zncAA&(2Tnv^X&t1`C*$3cMNCPf*0FlBI#O{D83Io|mm51Ij(UP{n*C zm>;*n^Ipdzet;i>(H35k1`CBcB#alCl-vxXHNH?0cWQ$Zi66P67jm3G){P)IJ3}~9 z|1vm3fw@5H{{?#a<^kQ%RW}c)Bpi{1uuDQw*p2zZC(37$U%0-!hPoUw=R>~%VO}TS mQcuZApFjd{8_`X^yApUi$Q0psc_`UQpuVa;;b@K-(e1x_9}&O+ diff --git a/build/classes/filtro_chido/Imagen.class b/build/classes/filtro_chido/Imagen.class new file mode 100644 index 0000000000000000000000000000000000000000..0ac15d404e16d26b31fa225a8dd6237898009ff2 GIT binary patch literal 1149 zcmZuwYflqF6g|@i3(HDr%fq*Tg6$%#sQ4=40|k~eU_c@I#Z23=9nx;e?()!oWdbG9 z#2?^~GTxajP$Es{?##V&&$;*9&Y!TCp{U?GYsd7+kB57IKjU3s?N%L?umLK zzsZnTXjTM6swh3Ny4xrT{{t`8$&)EI%e=nHeW}iEXCkc0fMKxsRn|kl`K4Twm8Ro1 zcvW}>24h zC(LT5+NW|fap#n&y^7EG+exz>|C%VrrC-FXvZT^HLR%{Z!rv2qA^#a8^m& zrevWeN;U@400U$P=_C->cSh}FFnh9v*b(CDn>a$!wh!rWh-3?0KXmF4*&!s!rjQ_D ziy#LGc!VH_bxaYC;xew#SM9Fi8c{J^$Bj1S9zEX##U_5i_++=xo#|=8JVx*8 + + + + + file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/SRM.java + file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/Filtro_Chido.java + file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/Filtrado.java + + + diff --git a/src/Imagen.java b/src/Imagen.java new file mode 100644 index 0000000..e69de29 diff --git a/src/filtro_chido/Filtrado.java b/src/filtro_chido/Filtrado.java index 27a198b..e714136 100644 --- a/src/filtro_chido/Filtrado.java +++ b/src/filtro_chido/Filtrado.java @@ -7,6 +7,7 @@ package filtro_chido; import com.HIT.weisongzhao.AdaptiveMedian; + /** * * srm1.setup = bufferredImage ; @@ -25,7 +26,7 @@ public class Filtrado extends javax.swing.JFrame { public Filtrado() { initComponents(); } - + /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always @@ -171,7 +172,8 @@ public class Filtrado extends javax.swing.JFrame { }//GEN-LAST:event_jButton1ActionPerformed private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed - + Imagen image = new Imagen(jPanel3); + jPanel3.add(image).repaint(); }//GEN-LAST:event_jButton3ActionPerformed private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed diff --git a/src/filtro_chido/Imagen.java b/src/filtro_chido/Imagen.java new file mode 100644 index 0000000..7358eb2 --- /dev/null +++ b/src/filtro_chido/Imagen.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package filtro_chido; +import java.awt.Graphics; +import javax.swing.ImageIcon; +import javax.swing.JPanel; + +class Imagen extends javax.swing.JPanel { + int x, y; + + public Imagen(JPanel jPanel1) { + this.x = jPanel1.getWidth(); + this.y = jPanel1.getHeight(); + this.setSize(x, y); + } + + public void paint(Graphics g, String img) { + + ImageIcon Img = new ImageIcon(getClass().getResource("/Images/imagen1.png")); + g.drawImage(Img.getImage(), 0, 0, x, y, null); + } + +} \ No newline at end of file