Transformation methods for video and image processing
By building and loading an adaptive error prediction model, it predicts and compensates for errors in the DCT/IDCT transformation process, solving the problems of error accumulation and insufficient adaptability in traditional methods, significantly improving the quality and efficiency of video and image processing, and enhancing It ensures the versatility and robustness of the algorithm and maintains efficient calculation.
Patent Information
- Application Number
- CN202410776166.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Traditional DCT/IDCT methods are prone to accumulating errors during the transformation process, especially in multi-level transformation operations, resulting in reduced visual quality and compression efficiency. They also lack adaptability and cannot be flexibly adjusted to adapt to different types of video content and image quality requirements. .
Build and load video and image adaptive error prediction models, train based on historical transformation data, predict error ranges through polynomial regression models, and perform dynamic error compensation during DCT/IDCT transformation, including pre-processing and post-processing operations to optimize algorithm performance .
Significantly improve the visual quality and compression efficiency of video and image processing, enhance the adaptability and robustness of the algorithm, optimize the computing resources and processing speed, ensure the best processing effect under different conditions, and achieve the same Compatibility with existing standards.
Smart Images

Figure CN118368443B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of video processing, and in particular relates to a transformation method applied to video and image processing. Background Art
[0002] Video and image processing technology plays a vital role in modern communications, entertainment, monitoring, medical diagnosis and many scientific research fields. With the rapid development of the digital age, the demand for efficient and high-quality video and image encoding and decoding is growing, which requires the processing algorithm to maintain high compression efficiency without sacrificing too much visual quality. Among the many image and video compression technologies, Discrete Cosine Transform (DCT) and its Inverse Discrete Cosine Transform (IDCT) have become the core components of a series of international standards such as JPEG and MPEG due to their excellent energy concentration characteristics.
[0003] However, the traditional DCT / IDCT method faces several significant technical challenges in practical applications. First, DCT is prone to accumulate errors in the process of converting from the spatial domain to the frequency domain, especially in continuous multi-level transform operations. These errors mainly come from the quantization process, limited precision numerical operations (such as addition, subtraction, and shift operations), and approximations implemented by the algorithm. These accumulated errors can significantly reduce the visual quality and compression efficiency of the reconstructed image, especially in application scenarios that are sensitive to image details and edges. Secondly, traditional DCT / IDCT algorithms often lack adaptability, that is, they cannot be flexibly adjusted to achieve optimal performance when faced with different types of video content (such as high dynamic range video, video under low light conditions, or video with fast motion scenes) and image quality requirements.
[0004] In addition, the processing of accumulated errors in existing technologies mostly relies on post-processing techniques, such as deblocking filtering, which are often a passive response to errors rather than active prevention and precise correction. Therefore, it is particularly urgent to develop a new DCT / IDCT method that can actively predict and compensate for errors during the transformation process while keeping the algorithm complexity controllable. Summary of the invention
[0005] The object of the present invention is to provide a transformation method applied to video and image processing to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] The transformation method applied to video and image processing includes the steps of constructing and loading a video and image adaptive error prediction model, wherein the video and image adaptive error prediction model is trained based on video and image historical transformation data; performing preprocessing on input video and image data to prepare for input to a DCT / IDCT transformation basic step; performing the DCT / IDCT transformation basic step while recording key intermediate variables in each level of transformation;
[0008] Run the adaptive error prediction model to predict the error range of each step based on the current transformation characteristics and historical data;
[0009] After completing all transformation steps, post-processing operations are performed. Forward transformation post-processing applies integer matrices and right shift operations. The shift parameters are fixed and the output is adjusted through addition, multiplication and function.
[0010] Furthermore, constructing a video and image adaptive error prediction model specifically includes: collecting a large amount of DCT / IDCT transformation data from historical video and image processing examples, and these video and image data include the intermediate results of the transformation, the final output, and the error measurement value;
[0011] Extracting features of video and image data, including pixel differences before and after transformation;
[0012] Normalize the video and image data features to eliminate the dimension effect;
[0013] Select a polynomial regression model to construct a video and image adaptive error prediction model, use the least squares method to estimate the parameters of the video and image adaptive error prediction model, and ensure that the video and image adaptive error prediction model can best fit the error distribution in the training data;
[0014] The video and image adaptive error prediction model is cross-validated, and the video and image processing data are divided into a training set and a validation set. According to the results of the cross-validation, the video and image adaptive error prediction model is adjusted, and the parameters of the optimization algorithm are adjusted until satisfactory prediction performance is obtained; the optimized mathematical model is converted into an algorithm code for easy loading and calling in the actual video and image processing process.
[0015] Furthermore, the video and image adaptive error prediction model is:
[0016] , the corresponding least squares parameter estimation formula is:
[0017] , where P is the design matrix, and its i-th row is , e is the error vector.
[0018] Further, the preprocessing process:
[0019] Adjust the video frames and images to the target processing size. For the video in the video and image data, ensure that the frame rate of all frames is consistent and perform necessary frame insertion or frame extraction processing; apply denoising algorithms to reduce image noise in the video and image data, adjust the brightness and contrast of the image, perform gamma correction on the image and optimize the data distribution to make it more suitable for DCT transformation; split the video frames and images into multiple blocks of fixed-format pixels;
[0020] For video sequences, inter-frame alignment is performed to ensure motion consistency between consecutive frames and reduce misprediction caused by motion; image data is converted to the required precision format, such as integer or floating point, to match the requirements of the DCT / IDCT algorithm.
[0021] Furthermore, the error range of each step is predicted based on the current transformation features and historical data as follows: the transformation-related features are extracted from the current video frame or image block to be processed, the data is normalized, and the historical transformation data is combined. Based on the feature similarity, the historical case closest to the current data is selected as a reference for error prediction. The distance metric is used to determine the similarity. The integrated historical data and features are used to train a polynomial regression model. The goal of the model is to learn the error pattern in the historical data and predict the error distribution that may occur in the current transformation step.
[0022] The normalized features of the current data are used as input to the trained error prediction model;
[0023] Error range prediction: Based on the input features, the model outputs the possible error range or specific error value for each step of the current transformation, analyzes the predicted error range, determines the transformation steps or intermediate variables that have the most significant impact on the final output, prioritizes error compensation, and dynamically formulates compensation strategies based on the predicted error, including but not limited to adjusting coefficients, directly adding compensation values at specific locations, or adjusting the calculation order.
[0024] Further, the basic steps of DCT / IDCT transformation include performing one-dimensional inverse transformation on the video and the image, selecting integer operation, calculating the video and the image using multiplication coefficients, and obtaining one-dimensional inverse transformed video and image output data;
[0025] After the inverse transformation, the result of the one-dimensional inverse transformation is right-shifted;
[0026] Preprocess the video and image by positive transformation, and perform left shift operation on the input video and image data, with fixed shift parameters;
[0027] One-dimensional forward transformation of video and image, select integer operation, use multiplication coefficients to calculate the video and image, in the opposite direction of one-dimensional inverse transformation, and obtain the output data of one-dimensional forward transformation.
[0028] Beneficial effects: The transformation method for video and image processing proposed in this application realizes effective control of the accumulated error in the DCT / IDCT transformation process by introducing an adaptive error prediction model and a dynamic compensation mechanism, and significantly enhances the quality and efficiency of video and image processing. The specific technical effects are reflected in the following aspects:
[0029] Significantly improve visual quality and compression efficiency: The adaptive error prediction model accurately predicts the error range of each transformation step and implements error compensation in a targeted manner, effectively suppressing the cumulative error commonly seen in multi-level transformations, significantly improving the visual quality of reconstructed videos and images, while maintaining a high compression efficiency and reducing information loss.
[0030] Enhance the adaptability and robustness of the algorithm: This method can dynamically adjust the compensation strategy according to the characteristics of the input video and image. It can flexibly adapt to high dynamic range video, low light environment or fast motion scene, ensuring the best processing effect under various conditions, and improving the versatility and robustness of the algorithm.
[0031] Optimizing computing resources and processing speed: Although error prediction and compensation steps are added, the overall computing complexity is controlled due to the use of efficient algorithms such as polynomial regression models, and unnecessary calculations are reduced through preprocessing and intelligent adjustment of intermediate variables. The efficiency of the processing flow is maintained, which is conducive to the application of real-time video processing and large-scale data sets.
[0032] Intelligent feedback and continuous optimization: Through the intelligent feedback mechanism, the model parameters and compensation strategies are continuously adjusted according to the deviation between the actual output and the expected results, achieving continuous self-optimization of the algorithm performance, ensuring the stability and accuracy of long-term operation, and reducing the need for human intervention.
[0033] Promote standardization and compatibility: This technical solution is optimized without changing the existing DCT / IDCT basic architecture, ensuring compatibility with existing video coding standards (such as JPEG, MPEG, etc.), facilitating seamless integration and application within the existing technical framework, and accelerating the promotion and popularization of technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Flowchart of the transformation method applied to video and image processing. DETAILED DESCRIPTION
[0035] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0036] This application discloses a transformation method applied to video and image processing, referring to Figure 1 , including the steps of: S1 constructing and loading a video and image adaptive error prediction model, the video and image adaptive error prediction model is trained based on video and image historical transformation data, including but not limited to linear test and random number generation test data sets; constructing the video and image adaptive error prediction model specifically includes: collecting a large amount of DCT / IDCT transformation data from historical video and image processing instances, the video and image data including the intermediate results of the transformation, the final output and the error measurement value;
[0037] Extracting features of video and image data, including pixel differences before and after transformation;
[0038] Normalize the video and image data features to eliminate the dimension effect;
[0039] Select a polynomial regression model to construct a video and image adaptive error prediction model, use the least squares method to estimate the parameters of the video and image adaptive error prediction model, and ensure that the video and image adaptive error prediction model can best fit the error distribution in the training data;
[0040] The video and image adaptive error prediction model is cross-validated, and the video and image processing data are divided into a training set and a validation set. According to the results of the cross-validation, the video and image adaptive error prediction model is adjusted, and the parameters of the optimization algorithm are adjusted until satisfactory prediction performance is obtained; the optimized mathematical model is converted into an algorithm code for easy loading and calling in the actual video and image processing process.
[0041] The general error e can be predicted by a polynomial combination of m features, and the model form is:
[0042] , where d is the highest order of the polynomial, is the total number of model parameters (including the constant term ),
[0043] are the model parameters to be determined.
[0044] The model parameters are estimated using the least squares method, that is, minimizing the residual sum of squares:
[0045] , where N is the number of samples, is the value of the i-th sample in the j-th characteristic polynomial term (including X i_norm of all orders of monomials and interaction terms).
[0046] The dataset is divided into a training set and a validation set. After the parameters are estimated using the training set, the model performance is evaluated on the validation set, such as the mean square error (MSE) or the coefficient of determination. According to the validation results, the polynomial order d and model parameter β are adjusted by grid search, random search or gradient descent method until the model performance meets the predetermined criteria.
[0047] Specific mathematical formula examples
[0048] Two features are considered in the application The second-order polynomial model of , ignoring the interaction term, is:
[0049] , the corresponding least squares parameter estimation formula is:
[0050] , where P is the design matrix, and its i-th row is , e is the error vector.
[0051] S2 performs preprocessing on the input video and image data to prepare for input to the basic steps of DCT / IDCT transformation; the basic steps of DCT / IDCT transformation include: performing one-dimensional inverse transformation on the video and image, selecting integer operations, calculating the video and image using multiplication coefficients, and obtaining one-dimensional inverse transformed video and image output data;
[0052] After the inverse transformation, the result of the one-dimensional inverse transformation is right-shifted;
[0053] Preprocess the video and image by positive transformation, and perform left shift operation on the input video and image data, with fixed shift parameters;
[0054] One-dimensional forward transformation of video and image, select integer operation, use multiplication coefficients to calculate the video and image, in the opposite direction of one-dimensional inverse transformation, and obtain the output data of one-dimensional forward transformation.
[0055] Detailed preprocessing process in S2:
[0056] Resize video frames and images to the target processing size, usually a multiple of 8, to ensure compatibility with DCT / IDCT block sizes;
[0057] For the video and image data, ensure that the frame rate of all frames is consistent and perform necessary frame insertion or frame extraction processing; apply denoising algorithms (such as median filtering, bilateral filtering or non-local mean denoising) to reduce image noise in video and image data and improve the signal-to-noise ratio;
[0058] By adjusting the brightness and contrast of the image, the overall visual effect of the image is made more uniform and the details of the dark and bright parts are enhanced; the image is gamma corrected to ensure the display consistency on different devices, and the data distribution is optimized to make it more suitable for DCT transformation; the video frame and image are divided into multiple fixed format (such as 8*8) pixel blocks;
[0059] For video sequences, inter-frame alignment is performed to ensure motion consistency between consecutive frames and reduce misprediction caused by motion; image data is converted to the required precision format, such as integer or floating point, to match the requirements of the DCT / IDCT algorithm.
[0060] Through the above preprocessing steps, the input video and image data are optimized to the state most suitable for DCT / IDCT transformation, while providing high-quality input for the adaptive error prediction model, ensuring the efficiency and accuracy of the entire transformation process.
[0061] S3 performs the basic steps of DCT / IDCT transformation and records the key intermediate variables in each level of transformation;
[0062] In this technical solution, "key intermediate variables" specifically refer to variables generated during the execution of DCT / IDCT transformations that have a direct impact on the final transformation results. These variables are usually temporary storage data during the execution of the transformation algorithm, and they reflect the key state of data changes before and after the transformation. For 8x8 discrete cosine transform (DCT) and inverse discrete cosine transform (IDCT), key intermediate variables include but are not limited to the following aspects:
[0063] 1. Key intermediate variables in DCT transform
[0064] Coefficient matrix: When performing DCT transformation, a set of fixed orthogonal transformation coefficient matrices are first used. These coefficients define how to convert from the spatial domain to the frequency domain. Although these are not intermediate variables in the traditional sense, they are the core of the transformation calculation, and the subsequent adaptive error compensation involves fine-tuning these coefficients.
[0065] Frequency domain coefficients: The coefficient matrix generated after each 8x8 pixel block is transformed by DCT, especially the DC component (DC coefficient) and AC component (AC coefficient), which are the key variables that directly reflect the transformation results.
[0066] Quantization results: If a quantization operation is performed, the quantized coefficients are also important intermediate variables, because the quantization process will introduce nonlinear errors, which need to be taken into account by the subsequent error compensation mechanism.
[0067] 2. Key intermediate variables in IDCT transformation
[0068] Inverse quantization coefficients: If quantization is performed after DCT, then the coefficients or quantization table used in the inverse quantization process are the key variables that determine the degree of recovery of the data after inverse quantization.
[0069] Inverse transform coefficients: The IDCT process also uses a fixed set of inverse transform coefficient matrices, which are the basis for recovering the spatial domain signal.
[0070] Reconstructed pixel values: The pixel matrix after inverse IDCT transformation but before any post-processing (such as deblocking). These pixel values are directly related to image quality.
[0071] Adjustment of intermediate variables involved in adaptive error compensation
[0072] Prediction error: The potential error distribution in the current transformation step predicted by the adaptive error prediction model. These prediction error values are the basis for adjusting the intermediate variables.
[0073] Compensation value: A specific compensation value or coefficient adjustment scheme calculated for the prediction error. For example, for some key coefficients (such as the DC coefficient), a compensation value is directly added to correct the prediction error; for other coefficients, the multiplication coefficients in the transformation or inverse transformation process are adjusted.
[0074] Intermediate calculation results: These are temporary variables in a specific transformation phase or calculation step, which are adjusted according to the error compensation strategy to reduce the accumulated error.
[0075] Specific steps
[0076] Error prediction: For the current transformation block, the error prediction model trained with historical data is used to predict the error generated at each step.
[0077] Intermediate variable identification: Determine which intermediate variables (such as specific coefficients, quantitative results, etc.) have the greatest impact on the final output and are most susceptible to error accumulation.
[0078] Compensation calculation: Calculate the compensation required for each key intermediate variable based on the prediction error. This involves complex calculation logic, such as adjusting specific elements in the DCT / IDCT coefficient matrix based on the prediction error distribution.
[0079] Implement compensation: After each stage of the transformation, directly modify the values of these intermediate variables or adjust the parameters of subsequent calculation steps to apply the calculated compensation values.
[0080] Iterative optimization: Through the intelligent feedback mechanism, the error prediction model and compensation strategy are continuously fine-tuned according to the deviation between the actual output and the expected result to achieve continuous optimization.
[0081] S4 runs the adaptive error prediction model to predict the error range of each step based on the current transformation characteristics and historical data;
[0082] Extract transformation-related features from the current video frame or image block to be processed, normalize the data, combine with historical transformation data, select the historical case closest to the current data based on feature similarity, and use it as a reference for error prediction. Use distance metrics (such as Euclidean distance and cosine similarity) to determine similarity. Use the integrated historical data and features to train a polynomial regression model. The goal of the model is to learn the error pattern in the historical data and predict the error distribution that may occur in the current transformation step. Adjust the model parameters through cross-validation, grid search, or gradient descent to optimize the prediction performance.
[0083] The normalized features of the current data are used as input to the trained error prediction model;
[0084] Error range prediction: The model outputs the possible error range or specific error value for each step of the current transformation based on the input features. These predicted values reflect the expected error distribution based on historical data and current data features.
[0085] Analyze the error range of the prediction, determine which transformation steps or intermediate variables have the most significant impact on the final output, and prioritize error compensation. Based on the prediction error, dynamically formulate compensation strategies, including but not limited to adjusting coefficients, directly adding compensation values at specific locations, or adjusting the calculation order;
[0086] That is, according to the prediction error, the intermediate variables are fine-tuned, including adjusting the coefficient or directly adding compensation values at specific locations;
[0087] Through this series of steps, the technical solution can dynamically predict the error range based on the specific situation of the current transformation and past experience, and take measures to compensate, thereby effectively suppressing the cumulative error and improving the quality and efficiency of video and image processing;
[0088] After completing all transformation steps, post-processing operations are performed. Forward transformation post-processing applies integer matrices and right shift operations. The shift parameters are fixed and the output is adjusted through addition, multiplication and function.
[0089] Through the above steps, this solution not only solves the problems of accuracy and accumulation of computational errors in the prior art, but also improves the adaptability and robustness of the algorithm through an intelligent adaptive mechanism, making it a more reliable and efficient transformation method in the field of video and image processing.
[0090] The transformation method for video and image processing proposed in this application realizes effective control of the accumulated error in the DCT / IDCT transformation process by introducing an adaptive error prediction model and a dynamic compensation mechanism, and significantly enhances the quality and efficiency of video and image processing. The specific technical effects are reflected in the following aspects:
[0091] Significantly improve visual quality and compression efficiency: The adaptive error prediction model accurately predicts the error range of each transformation step and implements error compensation in a targeted manner, effectively suppressing the cumulative error commonly seen in multi-level transformations, significantly improving the visual quality of reconstructed videos and images, while maintaining a high compression efficiency and reducing information loss.
[0092] Enhance the adaptability and robustness of the algorithm: This method can dynamically adjust the compensation strategy according to the characteristics of the input video and image. It can flexibly adapt to high dynamic range video, low light environment or fast motion scene, ensuring the best processing effect under various conditions, and improving the versatility and robustness of the algorithm.
[0093] Optimizing computing resources and processing speed: Although error prediction and compensation steps are added, the overall computing complexity is controlled due to the use of efficient algorithms such as polynomial regression models, and unnecessary calculations are reduced through preprocessing and intelligent adjustment of intermediate variables. The efficiency of the processing flow is maintained, which is conducive to the application of real-time video processing and large-scale data sets.
[0094] Intelligent feedback and continuous optimization: Through the intelligent feedback mechanism, the model parameters and compensation strategies are continuously adjusted according to the deviation between the actual output and the expected results, achieving continuous self-optimization of the algorithm performance, ensuring the stability and accuracy of long-term operation, and reducing the need for human intervention.
[0095] Promote standardization and compatibility: This technical solution is optimized without changing the existing DCT / IDCT basic architecture, ensuring compatibility with existing video coding standards (such as JPEG, MPEG, etc.), facilitating seamless integration and application within the existing technical framework, and accelerating the promotion and popularization of technology.
[0096] In summary, the technical solution of the present application not only solves the core problems in the traditional DCT / IDCT method through a series of innovative improvements, but also improves the comprehensive performance of video and image processing through intelligent means, providing strong technical support for the development of related fields.
[0097] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0098] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be covered by the present application.
Claims
1. Transformation methods applied to video and image processing, It is characterized in that The method includes the steps of constructing and loading a video and image adaptive error prediction model, wherein the video and image adaptive error prediction model is trained based on video and image historical transformation data; performing preprocessing on input video and image data to prepare for input to a basic step of DCT / IDCT transformation; performing a basic step of DCT / IDCT transformation, and recording key intermediate variables in each level of transformation; Run the adaptive error prediction model to predict the error range of each step based on the current transformation characteristics and historical data; After completing all transformation steps, post-processing operations are performed, and the forward transformation post-processing applies integer matrices and right shift operations. The shift parameters are fixed, and the output is adjusted by addition, multiplication and function. The video and image adaptive error prediction model is constructed as follows: a large amount of DCT / IDCT transformation data is collected from historical video and image processing examples. These video and image data contain the intermediate results of the transformation, the final output and the error measurement value; Extracting features of video and image data, including pixel differences before and after transformation; Normalize the features of video and image data to eliminate the impact of dimension; Select a polynomial regression model to construct a video and image adaptive error prediction model, use the least squares method to estimate the parameters of the video and image adaptive error prediction model, and ensure that the video and image adaptive error prediction model can best fit the error distribution in the training data; The video and image adaptive error prediction model is cross-validated, and the video and image processing data are divided into a training set and a validation set. According to the results of the cross-validation, the video and image adaptive error prediction model is adjusted, and the parameters of the optimization algorithm are adjusted until satisfactory prediction performance is obtained; the optimized mathematical model is converted into an algorithm code for easy loading and calling in the actual video and image processing process.
2. The transformation method for video and image processing according to claim 1, It is characterized in that Preprocessing process: Adjust the video frames and images to the target processing size. For the video in the video and image data, ensure that the frame rate of all frames is consistent, and perform frame insertion or frame extraction processing; apply denoising algorithms to reduce image noise in the video and image data, adjust the brightness and contrast of the image, perform gamma correction on the image, and optimize the data distribution to make it more suitable for DCT transformation; Split video frames and images into blocks of fixed-format pixels; For video sequences, inter-frame alignment is performed to ensure motion consistency between consecutive frames and reduce misprediction caused by motion; image data is converted to the required precision format, such as integer or floating point, to match the requirements of the DCT / IDCT algorithm.
3. The transformation method for video and image processing according to claim 1, It is characterized in that The error range of each step is predicted based on the current transformation features and historical data as follows: extract transformation-related features from the current video frame or image block to be processed, normalize the data, combine the historical transformation data, and select the historical case closest to the current data based on feature similarity as a reference for error prediction. Use distance metrics to determine similarity, and use the integrated historical data and features to train a polynomial regression model. The goal of the model is to learn the error patterns in the historical data and predict the error distribution that may occur in the current transformation step. The normalized features of the current data are used as input to the trained error prediction model; Error range prediction: Based on the input features, the model outputs the possible error range or specific error value for each step of the current transformation, analyzes the predicted error range, determines the transformation steps or intermediate variables that have the most significant impact on the final output, prioritizes error compensation, and dynamically formulates compensation strategies based on the predicted error, including adjusting coefficients, directly adding compensation values at specific locations, or adjusting the calculation order.
4. The transformation method for video and image processing according to claim 1, It is characterized in that The basic steps of DCT / IDCT transformation include performing one-dimensional inverse transformation on video and image, selecting integer operation, calculating the video and image using multiplication coefficients, and obtaining one-dimensional inverse transformed video and image output data; After the inverse transformation, the result of the one-dimensional inverse transformation is right-shifted; Preprocess the video and image by positive transformation, and perform left shift operation on the input video and image data, with fixed shift parameters; One-dimensional forward transformation of video and image, select integer operation, use multiplication coefficients to calculate the video and image, in the opposite direction of one-dimensional inverse transformation, and obtain the output data of one-dimensional forward transformation.
Citation Information
Patent Citations
Method and apparatus for residual sign prediction in transform domain
CN111819852A
DCT / IDCT (discrete cosine transform / inverse discrete cosine transform) optimization method and system
CN112911289A
