Skip to content

Commit 91e316a

Browse files
committed
Load two images
1 parent d7b7fdd commit 91e316a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

VirtualPrototype/src/Simulator.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,14 @@ SC_MODULE(Simulator) {
111111
int width, height, channels, pixel_count;
112112
unsigned char *noisy_img, *noisy_img2;
113113

114-
noisy_img = stbi_load("inputs/car_noisy_image.png", &width, &height, &channels, 0);
114+
noisy_img = stbi_load("inputs/car_sobel_x_result.png", &width, &height, &channels, 0);
115115
pixel_count = width * height * channels;
116116
printf("Pixel Count %0d, Width: %0d, Height: %0d \n", pixel_count, width, height);
117-
118117
receiver_DUT->backdoor_write(noisy_img, pixel_count, IMG_INPUT_ADDRESS_LO);
118+
119+
noisy_img = stbi_load("inputs/car_sobel_y_result.png", &width, &height, &channels, 0);
120+
pixel_count = width * height * channels;
121+
receiver_DUT->backdoor_write(noisy_img, pixel_count, IMG_INPUT_ADDRESS_LO + pixel_count);
119122
}
120123

121124
void save_img_from_memory()

0 commit comments

Comments
 (0)