Dictionary coding method based on Shannon coding, image processing method and processing equipment
A technology of image processing and coding methods, applied in the field of super-resolution images, can solve the problems of occupying storage space, large vocabulary, and long time to read into memory, etc., and achieve the effect of reducing model complexity and simplifying learning tasks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Such as figure 1 As shown, the present invention provides a dictionary encoding method based on Shannon encoding, and the dictionary encoding method adopts Shannon encoding, including the following steps. S10: Sort the q numerical symbols in the sparse representation dictionary in the order of decreasing occurrence probability. The sum of the probability of occurrence of all numerical symbols in the dictionary is 1, but the probability of each numerical symbol is different. After sorting, the first numerical value The probability of occurrence of the symbol is the highest, followed by the occurrence probability of the second numerical symbol, and so on, the probability of occurrence of the qth numerical symbol is the lowest. S20: Pass -logP(S i )≤l i i ) inequality, calculate the integer code length l of each numerical symbol i , that is, for l i The obtained value range is rounded, wherein i=1, 2, ... q, P(S i ) is the probability of the i-th numerical symbol appe...
Embodiment 2
[0033] An image processing method based on Shannon coding, the image processing method performs super-resolution processing through the super-resolution dictionary provided in Embodiment 1, such as figure 2 As shown, the following steps are included: S100: Input the low-resolution image to be processed, and perform block segmentation to obtain multiple low-resolution segmentation blocks, and the size of the block segmentation is based on the size of the low-resolution image and the required high resolution Image OK. S200: Perform feature extraction on all low-resolution segmentation blocks to obtain a feature block of each low-resolution segmentation block. The features mainly include information such as brightness, edge, texture, and color of the low-resolution segmentation block. S300: Find the primary atom closest to the feature block in the super-resolution dictionary, subtract the feature block and the atom, and obtain a primary residual. An atom is an entry in a super-...
Embodiment 3
[0039] A processing device comprising: one or more processors; a memory for storing one or more computer programs, and one or more processors for executing the one or more computer programs stored in the memory so that one or more The processor executes the Shannon coding-based dictionary coding method of Embodiment 1, and / or the Shannon coding-based image processing method of Embodiment 2. The processing device enables the compression of the super-resolution dictionary, reduces the storage space, and shortens the time to read it into the memory, thereby reducing the preloading time of the super-resolution dictionary model in the embedded system and improving the efficiency of image super-resolution processing .
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


