-
Notifications
You must be signed in to change notification settings - Fork 7
4. Sub Function Descriptions: rectificationPlotter
Jenna Brown edited this page Jul 1, 2020
·
2 revisions
-
This function plots a rectified image in Matlab given a corresponding X and Y meshgrid in world coordinates on the current axes. The user can plot it as an RGB image using imagesc or a grayscale image using pcolor depending on the flag. Take note of how the matrices align for each, and how Matlab plots images versus matrices. When loading an image, and then using this function be sure to use the XYZ grid output by G1_imageProducts or flipud your grid. If using this to plot products directly from imageRectifier, use the same grid you input in imageRectifier.
Variable Size Description Ir NxMx3 uint8 or NxM Rectified image with rgb or grayscale values. N is number of points in Y Direction, M is number of points in X direction X [NxM] Meshgrid of X coordinates of NxM size Y [NxM] Meshgrid of Y coordinates of NxM size imageFlag [1x1] Flag of whether to plot as an rgb image (=1) or grayscale pcolor (=0). Note if input as grayscale, output will be grayscale regardless of this value. Variable Size Description - - Plotted rectified frame on current axes with axes corresponding to world coordinates (Figure 10, one of sub-figures) -
None.