Skip to content

Instantly share code, notes, and snippets.

View pepgonzalez's full-sized avatar

José González pepgonzalez

View GitHub Profile
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<profiles>
<profile>
<id>compiler</id>
<properties>
<JAVA_HOME>C:\Program Files\Java\jdk1.8.0_92</JAVA_HOME>
</properties>
</profile>
</profiles>
-Xms128m
-Xmx512m
-Xverify:none
-Dosgi.requiredJavaVersion=1.6
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-vm
C:\Program Files\Java\jdk1.8.0_92\jre\bin\server\jvm.dll
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
set term png
set output 'porcentajeCompresion.png'
set lmargin 10
set rmargin 10
set title " Porcentaje de compresion respecto umbral"
set xlabel "Valor de umbral"
set ylabel "Porcentaje de compresion(%)"
plot "data.txt" using 1:2 with lines
from PIL import Image
import pywt
import numpy as np
import time
import matplotlib.pyplot as plt
import os
#clase que encapsula los procesos y la funcionalidad
#necesaria para el proceso de compresion de imagenes.
class Compresion():
@pepgonzalez
pepgonzalez / Wavelet.py
Created May 24, 2013 06:09
Wavelet, compresión de imágenes.
from PIL import Image
import pywt
import numpy as np
import matplotlib.pyplot as plt
import os
def filtroGrisesPromedio(imagen):
x, y = imagen.size
px = imagen.load()
<!DOCTYPE html>
<html>
<head>
<title>Geolocalizacion</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<!-- API Mapas y jquery-->
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
@pepgonzalez
pepgonzalez / tc.py
Created May 12, 2013 17:17
Código simulador de Geolocalizacion
#encoding utf-8
from math import sqrt, ceil, floor
from PIL import Image, ImageDraw
#normaliza un valor con decimales
def normaliza(valor):
if (valor - int(valor)) > 0.5:
valor = int(ceil(valor))
else:
valor = int(floor(valor))
from Tkinter import *
from sys import argv
from PIL import Image, ImageTk
from datetime import *
import random as R
def filtroGrisesPromedio(imagen):
x, y = imagen.size
px = imagen.load()
imagenGrises = Image.new('RGB',(x,y))