MCPcopy Create free account

hub / github.com/Dantong88/Moire_Attack / functions

Functions22 in github.com/Dantong88/Moire_Attack

↓ 4 callersFunctioncreate_dir
(dir, print_flag = False)
utils.py:35
↓ 3 callersMethoddeg_to_rad
(self, deg)
image_transformer.py:29
↓ 3 callersMethodrad_to_deg
(self, rad)
image_transformer.py:32
↓ 2 callersFunctionadjust_contrast_and_brightness
(input_img, beta = 30)
utils.py:50
↓ 2 callersMethodrotate_along_axis
(self, random_f, theta=0, phi=0, gamma=0, dx=0, dy=0, dz=0)
image_transformer.py:36
↓ 1 callersMethod__init__
(self, mean, std)
Moire_Attack.py:211
↓ 1 callersMethoddemosaic_and_denoise
Apply demosaicing to the images Input: images (tensor): batch x (height x scale_factor) x (width x scale_factor) Output:
Moire_Attack.py:78
↓ 1 callersFunctiondemosaicing_CFA_Bayer_bilinear
Returns the demosaiced *RGB* colourspace array from given *Bayer* CFA using bilinear interpolation. Parameters ---------- CFA :
mosaicing_demosaicing_v2.py:8
↓ 1 callersMethodget_M
(self, theta, phi, gamma, dx, dy, dz)
image_transformer.py:62
↓ 1 callersMethodget_rad
(self, theta, phi, gamma)
image_transformer.py:19
↓ 1 callersFunctionimage_folder_custom_label
(root, transform, idx2label)
utils.py:19
↓ 1 callersFunctionmosaicing_CFA_Bayer
Returns the *Bayer* CFA mosaic for a given *RGB* colourspace array. Parameters ---------- RGB : array_like *RGB* colourspace
mosaicing_demosaicing_v2.py:117
↓ 1 callersMethodrandom_rotation_3
Simulate the 3D rotatation during the shooting Input: images (tensor): batch x height x width x channel Rotate angle:
Moire_Attack.py:98
↓ 1 callersMethodsimulate_CFA
Simulate the raw reading of the camera sensor using bayer CFA Input: images (tensor): batch x (height x scale_factor) x (width x
Moire_Attack.py:88
↓ 1 callersMethodsimulate_LCD_display
Simulate the display of raw images on LCD screen Input: original images (tensor): batch x height x width x channel Output
Moire_Attack.py:55
Method__init__
(self, img)
image_transformer.py:12
Method__init__
(self, model, img_h, img_w, noise_budget, scale_factor, steps = 50, batch_size = 50, targeted = False)
Moire_Attack.py:39
Methodforward
r""" Overridden.
Moire_Attack.py:126
Methodforward
(self, input)
Moire_Attack.py:216
Methodget_deg
(self, rtheta, rphi, rgamma)
image_transformer.py:24
Functionimshow
(img, title)
utils.py:12
Functionsave_img
(input_img, target_save_path)
utils.py:43