Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
We climb the walls of Hell one centimetre at a time

Emanuele Di Saverio hazam

🖖
We climb the walls of Hell one centimetre at a time
  • frog
  • Milan, Italy
View GitHub Profile
View gist:980d228737c0da5faecddeef99a8b4fc
Verifying that "hazam1234.id" is my Blockstack ID. https://onename.com/hazam1234
View gist:7edd89250840feef171bc9709cfc6d03
Core.inRange(mHsvMat, ncb.lowerBound, ncb.upperBound, mMask)
Imgproc.dilate(mMask, mDilatedMask, kernel)
val contours = ArrayList<MatOfPoint>()
Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE)
// Imgproc.drawContours(rgbaImage, contours, -1, new Scalar( 0,255, 0, 255));
// Find max contour area
View gist:c2d6b6522297109b9c5a
Verifying that +hazam1234 is my blockchain ID. https://onename.com/hazam1234
@hazam
hazam / PerfTest.java
Created Nov 11, 2014
Dishomogeneous lists: cast vs wrapperclass
View PerfTest.java
public class PerfTest extends TestCase {
private static final int RUNS = 1000000;
private ArrayList<Object> dishomo = new ArrayList<Object>();
{
dishomo.add(Integer.valueOf(3));
dishomo.add(Double.valueOf(3.0d));
}