Method and apparatus for stretching image
AssigneeBoe Technology Group Co., Ltd.
InventorsXiaoyu Li, Pablo Navarrete Michelini, Ran Duan, Lihua Geng, Xitong Ma
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and an apparatus for stretching an image. The method for stretching an image includes: selecting a corresponding stretching mode according to a mode selection parameter; generating a corresponding stretching filter group according to a stretching parameter and the selected stretching mode, and segmenting input image data into blocks; and processing the input image data segmented into blocks by the stretching filter group, to obtain stretched image data.
Claims18
A method for stretching an image, comprising:
- selecting a corresponding stretching mode according to a mode selection parameter;
- generating a corresponding stretching filter group according to a stretching parameter and the selected stretching mode, and segmenting input image data into blocks;
- and
- processing the input image data segmented into blocks by the stretching filter group, to obtain stretched image data,
- wherein the mode selection parameter comprises a first parameter and a second parameter, and the step of selecting a corresponding stretching mode according to a mode selection parameter comprises:
- selecting a column stretching mode when the first parameter is a first value and the second parameter is a second value;
- selecting a row stretching mode when the first parameter is the second value and the second parameter is the first value;
- and
- selecting a row and column stretching mode when both the first parameter and the second parameter are the first values.
The method for stretching an image according to claim wherein the stretching parameter comprises a row stretching parameter, and the step of generating a corresponding stretching filter group according to a stretching parameter and the selected stretching mode, and segmenting input image data into blocks comprises:
- when the row stretching mode is selected, generating a corresponding row stretching filter group according to the row stretching parameter, the row stretching filter group comprising Q filters, each filter comprising h elements;
- and
- segmenting the input image data into horizontal high/Q blocks, wherein the high is a row number of the input image data.
The method for stretching an image according to claim, wherein the step of processing the input image data segmented into blocks by the stretching filter group, to obtain stretched image data comprises:
- when the row and column stretching mode is selected, performing column stretching processing on the input image data;
- and
- performing row stretching processing on the data obtained through the column stretching processing.
An apparatus for stretching an image, comprising:
- a processor;
- and
- a memory, having computer readable codes stored thereon that, when executed, causes the processor to perform:
- selecting a corresponding stretching mode according to a mode selection parameter;
- generating a corresponding stretching filter group according to a stretching parameter and the selected stretching mode, and segmenting input image data into blocks;
- and
- processing the input image data segmented into blocks by the stretching filter group, to obtain stretched image data,
- wherein the mode selection parameter comprises a first parameter and a second parameter, and the step of selecting a corresponding stretching mode according to a mode selection parameter comprises:
- selecting a column stretching mode when the first parameter is a first value and the second parameter is a second value;
- selecting a row stretching mode when the first parameter is the second value and the second parameter is the first value;
- and
- selecting a row and column stretching mode when both the first parameter and the second parameter are the first values.
Dependencies are inferred from the claim text.