[go: up one dir, main page]

CN111246081B - Method for simulating low-resolution camera imaging by high-resolution image - Google Patents

Method for simulating low-resolution camera imaging by high-resolution image Download PDF

Info

Publication number
CN111246081B
CN111246081B CN201911335915.7A CN201911335915A CN111246081B CN 111246081 B CN111246081 B CN 111246081B CN 201911335915 A CN201911335915 A CN 201911335915A CN 111246081 B CN111246081 B CN 111246081B
Authority
CN
China
Prior art keywords
img
psf
num
low
resolution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201911335915.7A
Other languages
Chinese (zh)
Other versions
CN111246081A (en
Inventor
聂婷
陈长征
李宪圣
张星祥
毕国玲
刘洪兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN201911335915.7A priority Critical patent/CN111246081B/en
Publication of CN111246081A publication Critical patent/CN111246081A/en
Application granted granted Critical
Publication of CN111246081B publication Critical patent/CN111246081B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/71Charge-coupled device [CCD] sensors; Charge-transfer registers specially adapted for CCD sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The method for simulating the imaging of the low-resolution camera by the high-resolution image, provided by the invention, is a low-resolution image method for simulating the design parameters according to the preset input of the ideal high-resolution image, by combining optical design parameters and CCD size parameters and considering the influence of CCD and optical transfer function sampling on the imaging.

Description

Method for simulating low-resolution camera imaging by high-resolution image
Technical Field
The invention relates to the technical field of computer simulation, in particular to a method for simulating low-resolution camera imaging by using a high-resolution image.
Background
Resolution is an important index parameter of a satellite-borne optical remote sensing system, and due to the long development period and high complexity of a camera, the imaging effect of a story is evaluated according to parameters such as optical design and the like, which is particularly important.
Disclosure of Invention
In view of the above, there is a need to provide a method for simulating low-resolution camera imaging with high-resolution images, which is economical, simple and convenient, and facilitates design optimization of the camera.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for simulating low-resolution camera imaging by a high-resolution image, which comprises the following steps:
inputting an original high-resolution image Img _ high, wherein the size of the image is W x H;
inputting the resolution of the original high-resolution image, recorded as gsd _ high;
inputting the resolution of a low-resolution image to be fitted, and recording as gsd _ low;
inputting the CCD size of a simulated low-resolution camera, recording the CCD size as CCD _ size and optical PSF size, recording the PSF _ size and the optical transfer function of the camera to be simulated as PSF _ OP;
calculating a proportionality coefficient k of gsd _ high and gsd _ low, wherein k is gsd _ low/gsd _ high;
if k is an integer, define num _ repeat as k; if k is a decimal, taking a decimal point of k and counting the number of n to obtain k1, defining that n _ ccd is k1 × 10n, and n _ psf is 10 n;
calculating the greatest common divisor r of n _ ccd and n _ psf, and calculating num _ response which is n _ ccd/r;
determining the size of a low-resolution image point diffusion function map Img _ psf, wherein row is 3 × num _ repeat, column low is 3 × num _ repeat, and the initial value is assigned to 0;
assigning the central position of Img _ psf, wherein the specific assignment ranges from num _ response +1 to num _ response × 2 rows, num _ response +1 to num _ response columns, and the regions are assigned as 1;
the Img _ psf is normalized by a first formula,
the first formula is: img _ psf ═ Img _ psf/sum (Img _ psf); wherein sum (Img _ psf) represents the sum of point spread functions;
obtaining an initial resolution image Img _ con by using a high resolution image convolution point spread function Img _ psf by using a second formula, wherein the second formula is as follows:
img _ con ═ conv2(Img _ high, Img _ psf, 'same'), where conv2 represents the convolution operation in the matlab tool two-dimensional;
down-sampling the image img _ conv by n times to obtain an image img _ low0 without considering the actual optical transfer function, wherein n is 1/num _ response; img _ low0 ═ imresize (img _ conv, n, 'biliar');
wherein, imresize represents an interpolation tool in MATLAB tool, 'bilinar' is cubic interpolation;
calculating num _ reset 1 according to the CCD size of the input simulated low-resolution camera and the optical transfer function of the camera to be simulated, wherein num _ reset 1 is CCD _ size/psf _ size;
according to the img _ low0 interpolation, aligning num _ response 1 with the size of psf and obtaining an image img _ res according to a third formula:
the third formula is img _ res ═ imres (img _ low0, num _ repeat 1, 'bilinar'), where imres represents one of the MATLAB tools and 'bilinar' is cubic interpolation;
convolving the image img _ res with the input optical PSF _ OP to obtain an image img _ conv2, img _ conv2 being conv2(img _ res, PSF _ OP, 'same'); wherein conv2 represents the convolution operation in two dimensions of matlab tool;
sampling img _ conv2 to obtain an output analog low-resolution image img _ low, wherein img _ low is imresize (img _ conv2,1/num _ response, 'biliner'); wherein, imresize represents one of the interpolation tools in MATLAB tool, 'bilinar' is cubic interpolation.
The invention adopts the technical scheme that the method has the advantages that:
the method for simulating the imaging of the low-resolution camera by the high-resolution image, provided by the invention, is a low-resolution image method for simulating the design parameters according to the preset input of the ideal high-resolution image, by combining optical design parameters and CCD size parameters and considering the influence of CCD and optical transfer function sampling on the imaging.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a method for simulating low-resolution camera imaging by using a high-resolution image according to an embodiment of the present invention.
Fig. 2 is an input original high resolution image provided by an embodiment of the present invention.
Fig. 3 is a diagram illustrating PSF _ OP of an optical transfer function of a camera to be simulated according to an embodiment of the invention.
FIG. 4 shows that the resolution of 5m is obtained without considering the optical transfer function according to the embodiment of the present invention.
FIG. 5 is a low resolution image of an output simulation obtained by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of steps of a method for simulating low-resolution camera imaging by using a high-resolution image according to an embodiment of the present invention includes the following steps:
step S110: an original high-resolution image Img _ high is input, and the image size is W x H.
Referring to fig. 2, the original high resolution image input by the embodiment of the present invention has an image size of 4000 × 5000, and the resolution image is 1 m.
Step S120: the resolution of the original high resolution image is input, noted gsd _ high.
Step S130: the resolution of the low resolution image to be fitted is input, noted gsd _ low.
Step S140: the CCD dimensions of the simulated low resolution camera, denoted as CCD _ size and optical PSF size, denoted PSF _ size and the optical transfer function of the camera to be simulated, denoted PSF _ OP.
Please refer to fig. 3, which is a diagram illustrating PSF _ OP of an optical transfer function of a camera to be simulated according to an embodiment of the present invention.
Step S150: calculating a proportionality coefficient k of gsd _ high and gsd _ low, wherein k is gsd _ low/gsd _ high;
if k is an integer, define num _ repeat as k; when k is a decimal, k is counted to n digits to obtain k1, and n _ ccd is defined as k1 × 10n, and n _ psf is defined as 10 n.
Step S160: the greatest common divisor r of n _ ccd and n _ psf is calculated, and num _ response which is n _ ccd/r is calculated.
Step S170: and determining the size of the low-resolution image point diffusion function map Img _ psf, wherein row is 3 × num _ repeat, column low is 3 × num _ repeat, and the initial value is set to 0.
Step S180: the central position of Img _ psf is assigned, specifically, the assigned values range from num _ response +1 to num _ response × 2 rows, and num _ response +1 to num _ response columns, and the assigned values of the regions are all 1.
Step S190: carrying out normalization processing on the Img _ psf by adopting a first formula, wherein the first formula is as follows: img _ psf ═ Img _ psf/sum (Img _ psf); where sum (Img _ psf) represents the sum of the point spread functions.
Step S210: obtaining an initial resolution image Img _ con by using a high resolution image convolution point spread function Img _ psf by using a second formula, wherein the second formula is as follows:
img _ con ═ conv2(Img _ high, Img _ psf, 'same'), where conv2 represents the convolution operation in the matlab tool two dimensions.
Step S220: down-sampling the image img _ conv by n times to obtain an image img _ low0 without considering the actual optical transfer function, wherein n is 1/num _ response; img _ low0 ═ imresize (img _ conv, n, 'biliar');
wherein, imresize represents one of the interpolation tools in MATLAB tool, 'bilinar' is cubic interpolation.
Referring to fig. 4, an image with a resolution of 5m, 800 x 1000, was obtained for an embodiment of the present invention without considering the optical transfer function.
Step S230: num _ reset 1 is calculated according to the CCD size of the input simulated low resolution camera and the optical transfer function of the camera to be simulated, num _ reset 1 is CCD _ size/psf _ size.
Step S240: according to the img _ low0 interpolation, aligning num _ response 1 with the size of psf and obtaining an image img _ res according to a third formula;
the third formula is img _ res ═ imres (img _ low0, num _ repeat 1, 'bilinar'), where imres represents one of the MATLAB tools and 'bilinar' is cubic interpolation.
Step S250: convolving the image img _ res with the input optical PSF _ OP to obtain an image img _ conv2, img _ conv2 being conv2(img _ res, PSF _ OP, 'same'); wherein conv2 represents the convolution operation in two dimensions of the matlab tool.
Step S260: sampling img _ conv2 to obtain an output analog low-resolution image img _ low, wherein img _ low is imresize (img _ conv2,1/num _ response, 'biliner'); wherein, imresize represents one of the interpolation tools in MATLAB tool, 'bilinar' is cubic interpolation.
Referring to fig. 5, the output analog low-resolution image img _ low obtained through the above steps is an image with a resolution of 5m and a size of 800 × 1000.
The method for simulating the imaging of the low-resolution camera by the high-resolution image, provided by the invention, is a low-resolution image method for simulating the design parameters according to the preset input of the ideal high-resolution image, by combining optical design parameters and CCD size parameters and considering the influence of CCD and optical transfer function sampling on the imaging.
Of course, the method for simulating low-resolution camera imaging by using high-resolution images of the present invention may also have various changes and modifications, and is not limited to the specific structure of the above-mentioned embodiments. In conclusion, the scope of the present invention should include those changes or substitutions and modifications which are obvious to those of ordinary skill in the art.

Claims (1)

1.一种高分辨率图像模拟低分辨率相机成像的方法,其特征在于,包括下述步骤:1. a method for high-resolution image simulation low-resolution camera imaging, is characterized in that, comprises the following steps: 输入原始高分辨率图像Img_high,图像大小为W*H;Input the original high-resolution image Img_high, the image size is W*H; 输入所述原始高分辨率图像的分辨率,记为gsd_high;Input the resolution of the original high-resolution image, denoted as gsd_high; 输入待拟合低分辨图像的分辨率,记为gsd_low;Enter the resolution of the low-resolution image to be fitted, denoted as gsd_low; 输入模拟的低分辨相机的CCD尺寸,记为ccd_size和光学psf大小,记为psf_size及待模拟相机的光学传递函数,记为PSF_OP;Input the CCD size of the simulated low-resolution camera, denoted as ccd_size and optical psf size, denoted as psf_size and the optical transfer function of the camera to be simulated, denoted as PSF_OP; 计算gsd_high与gsd_low的比例系数k,k=gsd_low/gsd_high;Calculate the proportional coefficient k of gsd_high and gsd_low, k=gsd_low/gsd_high; 若k为整数,则定义num_resample=k;若k为小数,将k取小数点后n位数得到k1,定义n_ccd=k1*10n,n_psf=10n;If k is an integer, define num_resample=k; if k is a decimal, take k to n digits after the decimal point to get k1, define n_ccd=k1*10n, n_psf=10n; 计算n_ccd和n_psf的最大公约数r,并计算num_resample,所述num_resample=n_ccd/r;Calculate the greatest common divisor r of n_ccd and n_psf, and calculate num_resample, the num_resample=n_ccd/r; 确定低分辨率图像点扩散函数图Img_psf的大小,其中,行row=3*num_resample,列low=3*num_resample,初始值赋值为0;Determine the size of the low-resolution image point spread function map Img_psf, where row=3*num_resample, column low=3*num_resample, and the initial value is assigned 0; 将Img_psf的中心位置赋值,具体赋值范围为从第num_resample+1到num_resample*2行,第num_resample+1到2*num_resample列,该区域都赋值为1;Assign the center position of Img_psf, the specific assignment range is from row num_resample+1 to num_resample*2, and column num_resample+1 to 2*num_resample, and this area is assigned a value of 1; 将Img_psf采用第一公式进行归一化处理,Img_psf is normalized by the first formula, 所述第一公式为:将Img_psf归一化处理为所述点扩散函数与点扩散函数之和sum(Img_psf)的商;The first formula is: normalize Img_psf as the quotient of the point spread function and the sum of the point spread function sum(Img_psf); 采用第二公式用高分辨图像卷积点扩散函数Img_psf得到初始将分辨率图像img_conv,所述第二公式如下:Adopt the second formula to obtain the initial resolution image img_conv with the high-resolution image convolution point spread function Img_psf, and the second formula is as follows: img_conv=conv2(Img_high,Img_psf,'same'),其中,conv2代表matlab工具二维上的卷积操作;img_conv=conv2(Img_high,Img_psf,'same'), where conv2 represents the convolution operation on the two-dimensional matlab tool; 将图像img_conv进行下采样n倍,得到不考虑实际光学传函的图像img_low0,n=1/num_resample;img_low0=imresize(img_conv,n,'bilinear');Downsample the image img_conv by n times to obtain the image img_low0 without considering the actual optical transfer function, n=1/num_resample; img_low0=imresize(img_conv,n,'bilinear'); 其中,imresize代表MATLAB工具中一种插值工具,'bilinear'为三次插值;Among them, imresize represents an interpolation tool in the MATLAB tool, and 'bilinear' is cubic interpolation; 根据输入模拟的低分辨相机的CCD尺寸及待模拟相机的光学传递函数,计算num_resample1,num_resample1=ccd_size/psf_size;According to the CCD size of the input simulated low-resolution camera and the optical transfer function of the camera to be simulated, calculate num_resample1, num_resample1=ccd_size/psf_size; 根据所述img_low0插值,将num_resample1与psf的尺寸对齐并根据第三公式得到图像img_res:According to the img_low0 interpolation, align num_resample1 with the size of psf and get the image img_res according to the third formula: 所述第三公式为img_res=imresize(img_low0,num_resample1,'bilinear');The third formula is img_res=imresize(img_low0,num_resample1,'bilinear'); 将图像img_res与输入光学PSF_OP进行卷积得到图像img_conv2,img_conv2=conv2(img_res,PSF_OP,'same');其中,conv2代表matlab工具二维上的卷积操作;Convolve the image img_res with the input optical PSF_OP to obtain the image img_conv2, img_conv2=conv2(img_res,PSF_OP,'same'); where, conv2 represents the convolution operation on the two-dimensional matlab tool; 将img_conv2进行采样,得到输出模拟的低分辨率图像img_low,img_low=imresize(img_conv2,1/num_resample,'bilinear')。Sampling img_conv2 to obtain an output simulated low-resolution image img_low, img_low=imresize(img_conv2,1/num_resample,'bilinear').
CN201911335915.7A 2019-12-23 2019-12-23 Method for simulating low-resolution camera imaging by high-resolution image Expired - Fee Related CN111246081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911335915.7A CN111246081B (en) 2019-12-23 2019-12-23 Method for simulating low-resolution camera imaging by high-resolution image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911335915.7A CN111246081B (en) 2019-12-23 2019-12-23 Method for simulating low-resolution camera imaging by high-resolution image

Publications (2)

Publication Number Publication Date
CN111246081A CN111246081A (en) 2020-06-05
CN111246081B true CN111246081B (en) 2021-03-23

Family

ID=70863911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911335915.7A Expired - Fee Related CN111246081B (en) 2019-12-23 2019-12-23 Method for simulating low-resolution camera imaging by high-resolution image

Country Status (1)

Country Link
CN (1) CN111246081B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5696848A (en) * 1995-03-09 1997-12-09 Eastman Kodak Company System for creating a high resolution image from a sequence of lower resolution motion images
CN102798851B (en) * 2012-08-27 2014-02-05 电子科技大学 Geometric-imaging-based MODIS (Moderate Resolution Imaging Spectroradiometer) LAI product verification method
US10217190B2 (en) * 2016-12-27 2019-02-26 Kla-Tencor Corporation System and method for reconstructing high-resolution point spread functions from low-resolution inspection images
CN107292819A (en) * 2017-05-10 2017-10-24 重庆邮电大学 A kind of infrared image super resolution ratio reconstruction method protected based on edge details
CN108765288B (en) * 2018-05-25 2022-05-31 杭州电子科技大学 An edge-preserving POCS image super-resolution reconstruction method

Also Published As

Publication number Publication date
CN111246081A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
Lin et al. Fundamental limits of reconstruction-based superresolution algorithms under local translation
TWI512686B (en) Texture unit for general purpose computing
Meijering et al. Image reconstruction by convolution with symmetrical piecewise nth-order polynomial kernels
CN110214340B (en) Refinement of structured light depth map using RGB color data
US20150029386A1 (en) Microlens array architecture for avoiding ghosting in projected images
CN111353963A (en) Temperature compensation method and device for depth camera
CN104182962A (en) Picture definition evaluation method and device
CN104601905A (en) Method and apparatus for generating high dynamic range image and computer program product
CN111246081B (en) Method for simulating low-resolution camera imaging by high-resolution image
Cenni et al. Behavioral modeling of a CMOS video sensor platform using SystemC AMS/TLM
CN115375567A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JPH11215516A (en) Pixel interpolation method, pixel interpolation circuit and its medium with pixel interpolation program recorded therein
JPH0555915B2 (en)
JP2012048402A (en) Pattern identification device and control method thereof, and program
JP5846048B2 (en) Image processing apparatus and imaging apparatus
CN114008627B (en) Correction method for geometrically distorted QR code
US20170026593A1 (en) Image processing devices and image processing methods
CN111860809A (en) A method of filling the image sensor chip with pseudo-units for processing the first convolutional layer
JP5387289B2 (en) Image processing apparatus, image processing method and program thereof
JP2022184136A (en) Information processing device, information processing method
CN109819137B (en) Image acquisition and output methods
JP2016139980A (en) Image processor, image processing method and display device
CN118036339B (en) A method, device and electronic equipment for determining planetary magnetic field model coefficients
CN113111891B (en) Image reconstruction method and device, terminal equipment and storage medium
US20250265802A1 (en) Image processing device and image processing method for rendering images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210323