Skip to content

Instantly share code, notes, and snippets.

private static void fb_add() {
String s1="5.4";
String s2="0.98";
String[] s1_array = s1.split(".");
String[] s2_array = s2.split(".");
String pre_s1=s1_array[0];
String pre_s2=s2_array[0];
@aaphadke
aaphadke / MazeBFS
Last active October 14, 2018 18:19
private static int searchMazeBFS() {
int[][] a = {{0,0,0,0},
{0,1,0,0},
{0,1,0,0},
{1,0,1,0}};
Point start = new Point(2,0);
Point end = new Point(2,2);
LinkedList<Point> queue = new LinkedList<Point>();
queue.add(start);

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results