Skip to content

Instantly share code, notes, and snippets.

View csukuangfj's full-sized avatar
👀
I may be slow to respond.

Fangjun Kuang csukuangfj

👀
I may be slow to respond.
  • Xiaomi Corporation
  • Peking
View GitHub Profile
@csukuangfj
csukuangfj / project_1.md
Created October 17, 2017 10:41 — forked from anonymous/project_1.md
Project READMEs - 3D Reconstruction with Computer Vision

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

@csukuangfj
csukuangfj / QGraphicsSceneTest.cpp
Last active June 23, 2023 19:30 — forked from benjbaron/QGraphicsSceneTest.cpp
Qt QGraphicsScene click, select, move, resize, delete QGraphicsItems
// Copyright 2017. All Rights Reserved.
// Author: csukuangfj@gmail.com (Fangjun Kuang)
#include <QtGui>
#include <QGraphicsRectItem>
#include <QGraphicsView>
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
class CustomItem : public QGraphicsEllipseItem
HEAD is now at c48807c Merge pull request #9418 from borisfom:cuda9
-- The CXX compiler identification is GNU 4.8.4
-- The C compiler identification is GNU 4.8.4
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
@csukuangfj
csukuangfj / build.log
Created August 19, 2017 15:08 — forked from iley/build.log
OpenCV build log
macserver:build_device iley$ SDK_VERSION=4.3 ../opencv_cmake.sh device ../OpenCV-2.1.0
Starting cmake...
Target SDK = iPhoneOS
iOS SDK Version = 4.3
iOS Deployment Target = 3.0
OpenCV Root = ../OpenCV-2.1.0
OpenCV Install Prefix = /Users/iley/Sources/iphone_opencv_test/build_device/../opencv_device
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
@csukuangfj
csukuangfj / idea-reset-evaluation.sh
Created May 12, 2017 22:03
reset intellij idea 14 evaluation
#!/bin/bash
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
@csukuangfj
csukuangfj / aux.c
Created April 6, 2017 10:28 — forked from mina86/aux.c
Code reading auxiliary vector present in executable binary.
#include <stdio.h>
#include <stdlib.h>
#include <linux/auxvec.h>
static unsigned long *getauxv(char **env) {
while (*env++ != NULL) {
/* nop */
}
return (void*)env;
@csukuangfj
csukuangfj / default-linker-script.txt
Last active February 13, 2023 18:50
This file shows the default linker script of `ld`, use `ld --verbose` to show it.
GNU ld (GNU Binutils for Ubuntu) 2.25.1
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1om
elf_k1om
i386pep
i386pe
//File comment
/**
* @file headerfile.h
* @author my name
* @date 31 Mar 2017
* @brief A bried description of headfile.h
*
* A more detailed descriptions goes here.
* Bla bla
* bla bla
// a 2-d mat
cv::Mat mat1(2,2,CV_8UC1);
int sz[] = {2,3,4};
// a 3-d mat
cv::Mat mat2(3, sz, CV_8UC1);
cv::UMat m1 = mat1.getUMat(cv::ACCESS_RW);
enum { LOCAL=1, READ_ONLY=2, WRITE_ONLY=4, READ_WRITE=6, CONSTANT=8, PTR_ONLY = 16, NO_SIZE=256 };