MATLAB image processing -- Otsu threshold segmentation (with code)
catalogue
Otsu threshold
Algorithm flow
Flow chart representation
result
code
Otsu threshold
Otsu threshold, also known as the maximum variance threshold, was proposed by Otsu zhanzhi of Japan in 1979. It is derived based on the principle of discrimination and least square method. Its basic idea is to maximize the variance between cla ...
Added by dysonline on Sat, 29 Jan 2022 22:22:56 +0200
Application of hash -- bitmap
bitmap
Bitmap concept
Give 4 billion non repeating unsigned integers, which have not been sorted. Given an unsigned integer, how to quickly judge whether a number is in these 4 billion numbers. [Tencent]
Idea 1: traversal, time complexity
O
(
N
...
Added by phphunger on Sat, 29 Jan 2022 20:58:50 +0200
Algorithm design and analysis
summary
Violent recursion is an attempt (local attempt)The problem is transformed into a sub problem of the same kind of problem with reduced scaleSpecify the condition for the end of recursion (base case)After getting the results of the subproblem, there is a decision-making processDo not record the solution of each sub problem, try the m ...
Added by meckr on Sat, 29 Jan 2022 18:37:32 +0200
OJ topic -- 1. Create an array to store the number of characters in the string
1. Find the first character in the string that appears only once: The first character that appears only once_ Niuke Tiba_ Niuke (nowcoder.com)
Since the characters in the computer are ultimately represented by the asker code, you can create an array, and the number of times each character appears will be placed in the subscript position corres ...
Added by Chicken Little on Sat, 29 Jan 2022 18:21:07 +0200
[ZStack] automatic test system 3 -- model-based test
Model testing system is a sub project of ZStack woodpecker. Through the finite state machine and behavior selection strategy, it can generate random API operations and run until a defect or predefined exit condition is encountered. ZStack relies on model testing to test boundary use cases that are difficult to meet in the real world, and comple ...
Added by s_shrum on Sat, 29 Jan 2022 15:02:06 +0200
Algorithm basis: common sorting algorithms
Memory formula: select bubbles and insert them. Go back to the bucket and count the base. EN Fang, en Lao, en wants to disperse, en Jia K, en multiply K. Unstable, unstable, unstable, unstable
How to debug a bug?: Read through program - > output intermediate value - > shear function. The core is positioning
Select sort:
Selection ...
Added by hustler on Sat, 29 Jan 2022 14:49:43 +0200
Four ways to generate random numbers in Java!
In Java, there are many scenarios for generating random numbers, so in this article, we will take an inventory of the four ways to generate random numbers, the differences between them and the corresponding scenarios of each way.
1.Random
Random class was born in JDK 1.0. The random number it generates is pseudo-random number, that is, regula ...
Added by Cailean on Sat, 29 Jan 2022 14:41:44 +0200
Notes on the beauty of data structure and algorithm
sort
How to analyze a "sorting algorithm"?
Execution efficiency of sorting algorithm 1.1 time complexity of best case, worst case and average case 1.2 coefficient, constant and low order of time complexity 1.3 comparison times and exchange (or movement) timesMemory consumption of sorting algorithmStability of sorting algorithm
Why ...
Added by secret007 on Sat, 29 Jan 2022 13:53:10 +0200
The beauty of data structure and algorithm -- review of single linked list
1. Course content
For details, please refer to the course "beauty of data structure and algorithm" on "geek time": 07 | linked list (Part 2): how to write the correct linked list code easily? (geekbang.org)
2. After class practice
code:
node
package dataStruct;
/**
* @ClassName Node
* @Version 1.0
* @Autho ...
Added by kenshejoe on Sat, 29 Jan 2022 11:32:32 +0200
C + + deployment pytorch model
https://zhuanlan.zhihu.com/p/191569603
[toc]
C + + deployment pytorch model
preface
The project needs to call the network trained by pytorch with C + +. Before officially starting the project, I checked various materials on the Internet. There are three implementation methods: directly implement the network from the most basic CNN module ...
Added by tonbah on Sat, 29 Jan 2022 03:57:23 +0200