Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dantong88/Moire_Attack
/ functions
Functions
22 in github.com/Dantong88/Moire_Attack
⨍
Functions
22
◇
Types & classes
3
↓ 4 callers
Function
create_dir
(dir, print_flag = False)
utils.py:35
↓ 3 callers
Method
deg_to_rad
(self, deg)
image_transformer.py:29
↓ 3 callers
Method
rad_to_deg
(self, rad)
image_transformer.py:32
↓ 2 callers
Function
adjust_contrast_and_brightness
(input_img, beta = 30)
utils.py:50
↓ 2 callers
Method
rotate_along_axis
(self, random_f, theta=0, phi=0, gamma=0, dx=0, dy=0, dz=0)
image_transformer.py:36
↓ 1 callers
Method
__init__
(self, mean, std)
Moire_Attack.py:211
↓ 1 callers
Method
demosaic_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 callers
Function
demosaicing_CFA_Bayer_bilinear
Returns the demosaiced *RGB* colourspace array from given *Bayer* CFA using bilinear interpolation. Parameters ---------- CFA :
mosaicing_demosaicing_v2.py:8
↓ 1 callers
Method
get_M
(self, theta, phi, gamma, dx, dy, dz)
image_transformer.py:62
↓ 1 callers
Method
get_rad
(self, theta, phi, gamma)
image_transformer.py:19
↓ 1 callers
Function
image_folder_custom_label
(root, transform, idx2label)
utils.py:19
↓ 1 callers
Function
mosaicing_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 callers
Method
random_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 callers
Method
simulate_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 callers
Method
simulate_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
Method
forward
r""" Overridden.
Moire_Attack.py:126
Method
forward
(self, input)
Moire_Attack.py:216
Method
get_deg
(self, rtheta, rphi, rgamma)
image_transformer.py:24
Function
imshow
(img, title)
utils.py:12
Function
save_img
(input_img, target_save_path)
utils.py:43