In STM32, there are five clock sources for HSI, HSE, LSI, LSE, PLL.In fact, four clock sources, as shown (gray-blue), PLL is a PLL clock that is multiplied by a phase-locked loop circuit. ①, HSI is a high-speed internal clock, RC oscillator, frequency of 8MHz. ②, HSE is a high-speed external clock, can be connected to the quartz/ceramic resonator, or external clock source, frequency range of 4mhz~16mhz. ③
will be displayed on the line-by-line display, and the vertical direction resolution will be reduced by half. The vertical distribution rate will be decreased slightly even if the de-discrimination algorithm is used.1.2 Color Space 1.2.1 different color spaces are used differently
For a black-and-white image, we use brightness (or grayscale) to indicate its brightness or darkness, generally, we use 8-bit, 10-bit, or even 16-bit non-conforming Integers to represent the gray scale of a pixel.
We
The original Article portal has five clock sources in stm32: Hsi, HSE, LSI, LSE, and PLL.
There are actually four clock sources, as shown in (gray-blue). The PLL is generated by the frequency doubling of the PLL circuit.① HSI is a high-speed internal clock, RC oscillator, with a frequency of 8 MHz. ② HSE is a high-speed external clock, which can be connected to a Z/Ceramic Resonator or an external clock sou
The stm32 chip manual shows clearly that there are four clock sources:
1. HSI (Internal High-Speed clock 8 MHz) provides a clock source that supports BIT system clock
2. HSE (external high-speed clock) provides system clock and RTC clock source
3. LSE (low-speed external clock 32.768 kHz) can provide a clock source for rtc
4. LSI (low-speed internal clock) can provide the clock source for the independent watchdog
First, let's analyze the database fu
of any color print or image color processing. 2.HSI Color SpaceHsicolor space as a main color-oriented model, with HueH, saturationSand StrengthIthree types of basic characteristics of the different colors, and people's visual system to perceive the color pattern is more similar, see Figure2.3. Where the angular size of the disc represents the HueH, which are related to the wavelength of light, to distinguish different color categories; The horizonta
return a table.But sometimes we want to use the Table1 field as a parameter, to pass in the function to calculate, like:SELECT * FROM table1 join MyFunction (ID) on 1=1This is going to go wrong. This time we can use apply to achieve. For example:SELECT * FROM table1 cross apply MyFunction (ID) on 1=1Simply put, apply allows us to pass the data of each row of the preceding result set as an argument to the following expression, which can be either a table-valued function or a select result set.Ac
Study Dip 69th DayReprint please indicate the source of this article:Http://blog.csdn.net/tonyshengtan , out of respect for the work of the author, reprint please indicate the source! Article code is hosted, Welcome to co-development:Https://github.com/Tony-Tan/DIPproThe opening crap.Ah ah ah ah ... The office is so messy. Like the market that, said the good to do a quiet handsome man.Color transformation in color image processing refers to
g(x ,y)=T [F (x ,y)]
which
First, the image is processed in a simple threshold:/************************************************************** function: Extraction of red lantern in the image HSI space input parameters: source image src; Target image des ; image parameter width,height,nchannels; output parameter: Target image **************************************************************/void Hsi_ SEG (unsigned char* des, const unsigned char* src, int width, int height, int nch
RCC Clock module is not good understanding, the first contact I also confused, and I really mastered it is also relatively late, is that I learned to use Register control Development Board to really understand his operating principles and laws, but why I re-revised but placed in the forefront, because this is the whole embedded foundation, beginners are more difficult , but I still want to be able to grasp the best, because the real-time is very important to the embedded system, and the basis is
= 0x00000000;#elseRcc->cir = 0x009f0000;#endif}Comments:1, Bit 26 (27) -24=000: The microcontroller does not have a clock output;Bit 15-14=00:PCLK2 (APB2 clock) is used as the ADC clock after two divided;Bit 13-11=000:HCLK does not divide, namely APB2 high-speed clock PCLK2 equals AHB clock;Bit 10-8=000: Low speed APB1 clock (PCLK1) does not divide;Bit 7-4=0000:AHB clock does not divide, equals the system clock SYSCLK;Bit 3-2=00:HSI (internal high-sp
|Font SizeSubscription
IntroductionCamshiftAlgorithmThat is, the "continuously apative mean-shift" algorithm is a motion tracking algorithm. It is used to track the color information of moving objects in video images. I divide this algorithm into three parts for ease of understanding:
Back Projection calculation.
Mean Shift Algorithm
Camshift Algorithm
1 Back Projection CalculationThe steps for calculating back projection are as follows:
1. Calculate the color histogram of the tracked
Description
Code
1 description
Using stm8s internal clock (HSI);
PWM mode 2;
Duty ratio is 50%, frequency is 2Hz (convenient test LED lamp);
PD2 The LED lights, PD2 port output PWM wave;
System clock Initialization is important: CLK_CKDIVR |= 0x08;
2 Code/*tim2_ch3 PWMPD2 output*/#include voidClk_init (void){Clk_ickr|=0x01;//Enable internal high-speed clock HSI
1 -- Back Projection
CamShift is a motion tracking algorithm called "Continuously Apative Mean-Shift. It is used to track the color information of moving objects in video images. I divide this algorithm into three parts for ease of understanding:1) Back Projection Calculation2) Mean Shift Algorithm3) CamShift AlgorithmFirst, we will discuss Back Projection, and then we will continue to discuss the next two algorithms.
Back ProjectionThe steps for calculating Back Projection are as follows:
1. Ca
;# Elif defined (STM32F10X_LD_VL) | defined (STM32F10X_MD_VL) | defined (STM32F10X_HD_VL)RCC-> CIR = 0x009F0000; // initialize the CIR clock interrupt register. For details, see note 4th.RCC-> CFGR2 = 0x00000000;# ElseRCC-> CIR = 0x009F0000;# Endif}Note:1. Bit 26 (27)-24 = 000: The Microcontroller has no clock output;15-14 = 00: PCLK2 (APB2 clock) is used as the ADC clock after the second division;13-11 = 000: The HCLK is not divided into two groups, that is, the APB2 high-speed clock PCLK2 is e
Refer:
Http://blog.csdn.net/houdy/article/details/175739Back Projection
Camshift is a motion tracking algorithm called "continuously apative mean-shift. It is used to track the color information of moving objects in video images. I divide this algorithm into three parts for ease of understanding:1) Back Projection Calculation2) Mean Shift Algorithm3) camshift AlgorithmHere we will mainly discuss back projection, and continue to discuss the next two algorithms in subsequent articles.
Back Project
1 -- Back Projection
Camshift is a motion tracking algorithm called "continuously apative mean-shift. It is used to track the color information of moving objects in video images. I divide this algorithm into three parts for ease of understanding:1) Back Projection Calculation2) Mean Shift Algorithm3) camshift AlgorithmFirst, we will discuss back projection, and then we will continue to discuss the next two algorithms.
Back ProjectionThe steps for calculating back projection are as follows:
1. Ca
First look at a STM32 clock system block diagram
In STM32, there are five clock sources, namely HSI, HSE, LSI, LSE, PLL.
HSI internal high-speed RC oscillator clock, 8mhz;hse, external high-speed clock, 4M__16MHZ;LSI, internal low-speed RC clock, 40KHZ; LSE external low-speed clock, 32.768KHZ;PLL PLL Octave, by the figure, can choose Hse/2, HSI/2, HSE, the mult
CamshiftAlgorithmResearch (based on opencv)
Camshift algorithm: Camshift is a motion tracking algorithm called "continuously apative mean-shift. It is used to track the color information of moving objects in video images. I divide this algorithm into three parts for ease of understanding: 1) Back Projection Calculation 2) Mean Shift (mean shift) Algorithm 3) camshift Algorithm (Note: The above translation is purely personal !) 1) Back Projection: The steps for calculating ba
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.