Browse Source

Añadido carga de imagen y Statistical regional merging, añadido adaptative median filter

master
josemartin117 3 years ago
parent
commit
b11e2f3e6d
11 changed files with 44 additions and 2 deletions
  1. BIN
      build/classes/filtro_chido/Filtrado$1.class
  2. BIN
      build/classes/filtro_chido/Filtrado$2.class
  3. BIN
      build/classes/filtro_chido/Filtrado$3.class
  4. BIN
      build/classes/filtro_chido/Filtrado$4.class
  5. BIN
      build/classes/filtro_chido/Filtrado.class
  6. BIN
      build/classes/filtro_chido/Imagen.class
  7. +2
    -0
      nbproject/private/private.properties
  8. +11
    -0
      nbproject/private/private.xml
  9. +0
    -0
      src/Imagen.java
  10. +4
    -2
      src/filtro_chido/Filtrado.java
  11. +27
    -0
      src/filtro_chido/Imagen.java

BIN
build/classes/filtro_chido/Filtrado$1.class View File


BIN
build/classes/filtro_chido/Filtrado$2.class View File


BIN
build/classes/filtro_chido/Filtrado$3.class View File


BIN
build/classes/filtro_chido/Filtrado$4.class View File


BIN
build/classes/filtro_chido/Filtrado.class View File


BIN
build/classes/filtro_chido/Imagen.class View File


+ 2
- 0
nbproject/private/private.properties View File

@ -1,6 +1,8 @@
compile.on.save=true compile.on.save=true
do.depend=false do.depend=false
do.jar=true do.jar=true
file.reference.Adaptive_Median_Filter-0.1.0.jar=C:\\Users\\humme\\Documents\\NetBeansProjects\\Filtro_Chido\\Adaptive_Median_Filter-0.1.0.jar
file.reference.ij-1.50e.jar=C:\\Users\\humme\\Documents\\NetBeansProjects\\Filtro_Chido\\ij-1.50e.jar
javac.debug=true javac.debug=true
javadoc.preview=true javadoc.preview=true
user.properties.file=C:\\Users\\humme\\AppData\\Roaming\\NetBeans\\8.0\\build.properties user.properties.file=C:\\Users\\humme\\AppData\\Roaming\\NetBeans\\8.0\\build.properties

+ 11
- 0
nbproject/private/private.xml View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/SRM.java</file>
<file>file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/Filtro_Chido.java</file>
<file>file:/C:/Users/humme/Documents/NetBeansProjects/Filtro_Chido/src/filtro_chido/Filtrado.java</file>
</group>
</open-files>
</project-private>

+ 0
- 0
src/Imagen.java View File


+ 4
- 2
src/filtro_chido/Filtrado.java View File

@ -7,6 +7,7 @@
package filtro_chido; package filtro_chido;
import com.HIT.weisongzhao.AdaptiveMedian; import com.HIT.weisongzhao.AdaptiveMedian;
/** /**
* *
* srm1.setup = bufferredImage ; * srm1.setup = bufferredImage ;
@ -25,7 +26,7 @@ public class Filtrado extends javax.swing.JFrame {
public Filtrado() { public Filtrado() {
initComponents(); initComponents();
} }
/** /**
* This method is called from within the constructor to initialize the form. * 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 * 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 }//GEN-LAST:event_jButton1ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed 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 }//GEN-LAST:event_jButton3ActionPerformed
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed


+ 27
- 0
src/filtro_chido/Imagen.java View File

@ -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);
}
}

Loading…
Cancel
Save