Skip to content

Commit b2eec77

Browse files
committed
Add all data flow from grayscale conversion to gradient unification
1 parent 7eb428d commit b2eec77

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

modules/VirtualPrototype/FreeRTOS/freertos_test.c

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void transfer_window(int i, int j, unsigned long long source_address, unsigned l
190190
memcpy((target_ptr + 8), (local_window + 8), sizeof(char));
191191
}
192192

193-
static void task_test_sobel(void *pParameter)
193+
void obtain_gradients_sobel()
194194
{
195195
short int *sobel_output_ptr = (short int*) SOBEL_OUTPUT_ADDRESS_LO;
196196
short int *output_image_X_ptr = (short int*) IMG_INPROCESS_B_ADDRESS_LO;
@@ -272,11 +272,6 @@ void convert_to_grayscale()
272272
printf("Done IMG Grayscale Step: \n");
273273
}
274274

275-
static void task_test_grayscale(void *pParameter)
276-
{
277-
convert_to_grayscale();
278-
}
279-
280275
void filter_image()
281276
{
282277
unsigned char *filter_output_ptr = (unsigned char*) IMG_FILTER_OUTPUT_ADDRESS_LO;
@@ -308,11 +303,6 @@ void filter_image()
308303
printf("Done IMG Filtering Step: \n");
309304
}
310305

311-
static void task_test_filtering(void *pParameter)
312-
{
313-
filter_image();
314-
}
315-
316306
int intSqrt(int x)
317307
{
318308
unsigned int s = 0;
@@ -378,7 +368,12 @@ void unificate_img()
378368
}
379369

380370
static void testbench(void *pParameter) {
381-
// filter_image();
371+
convert_to_grayscale();
372+
373+
filter_image();
374+
375+
obtain_gradients_sobel();
376+
382377
unificate_img();
383378
}
384379

0 commit comments

Comments
 (0)