Recent Changes - Search:

Main

Robotics I Fall 2007

Robotics II Spring 2007

Robotics I Fall 2006

Vision Servoing Laboratories

FPGA-Based Vision

VDSP

LabVIEW Embedded

Code

Site Admin

edit SideBar

LabViewBufferView

How to view an image post-processing.

Requires the post-process array to be in the same format as the original image, 1-dimensional unsigned 16-bit integer. Size of the array can vary, you just change the dimensions in the image viewer later on.

The way to find the pointer to the buffer is using the inline C structure in LabView. To start off, use the supplied file:

Attach:DSP_Buffer_View_Helper.txt (rename to .vi, the wiki wouldn't let me upload straight)

Wire in your modified image buffer to this VI. Note that it does not have an output, it just makes a copy in memory that we will view using VisualDSP.

Build the project and load the dxe file in VisualDSP.

Go to File -> Open and navigate to the project folder of the program, the folder with all the labview-generated C files. Open the file DSP__Buffer__View__Helper_inlineC__624.h . The number will change with each rebuild, so use the most recent one.

There should be two lines in the file:

// breakpointhere
void* pictbuff = PictureBufferC;

Insert a breakpoint on that line and run.

When the program halts, drag pictbuff into the Expressions window (brought up by clicking the glasses) to find it's memory address.

Create a new image viewer from View -> Debug Windows and follow the original instructions using the new memory address.

Beware: the pointer changes every time you run and hit the breakpoint. Just be aware this may change the output image a bit. You can easily type in the new pointer value from the Expressions window into the image viewer.

Here's an example result. The processing done here is a simple inversion, the entire 1-D array was reversed. This caused all the pixels to be in the reverse order and to swap the U and V values, creating the color difference.

Here is an image after I manually set all the U and V data to 127 (half->gray).

Edit - History - Print - Recent Changes - Search
Page last modified on December 07, 2006, at 03:00 PM