Skip to content

Instantly share code, notes, and snippets.

View hazam's full-sized 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
@hazam
hazam / PerfTest.java
Created November 11, 2014 15:16
Dishomogeneous lists: cast vs wrapperclass
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));
}
Verifying that +hazam1234 is my blockchain ID. https://onename.com/hazam1234
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
Verifying that "hazam1234.id" is my Blockstack ID. https://onename.com/hazam1234