Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Image processing on nios 2

Hello everyone

I want to implement edge detection algorithms in c language in nios 2. Can you guide me some reference so that I can learn image processing on nios 2 .

Thanks

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The Nios 2 processor is not at all suitable for image processing. It is far too slow. A 10 year old PC would probably do it faster. However, you could use a Nios to control some FPGA code that did your image processing algorithm.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes I know That. I am doing thesis on approximate computing on image processing. Is it possible to do simple edge detection in nios2 like what we do in matlab ??

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think anything image processing related that you might find oriented toward NIOS will be limited to control tasks of hardware pipelines.

    There isn't anything unique or interesting just running vanilla C image processing software on NIOS. As GCC is the compiler, porting your algorithm shouldn't be difficult.

    If you have a specific question or run into a problem, probably search the forum first or post a follow up thread.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I think anything image processing related that you might find oriented toward NIOS will be limited to control tasks of hardware pipelines.

    There isn't anything unique or interesting just running vanilla C image processing software on NIOS. As GCC is the compiler, porting your algorithm shouldn't be difficult.

    If you have a specific question or run into a problem, probably search the forum first or post a follow up thread.

    --- Quote End ---

    Actually I have created qsys system and run hello world program on nios2. Now i want to read image in that helloworld.c file and apply some image processing algorithms on it so can you guide me how to read image in c file
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Actually I have created qsys system and run hello world program on nios2. Now i want to read image in that helloworld.c file and apply some image processing algorithms on it so can you guide me how to read image in c file

    --- Quote End ---

    Look into the Altera HAL Host-based File System. Indirectly via the JTAG connection, you will be able to use <stdio.h> fopen() and fread() just like on a PC.