InvHough

Inverse Hough Transform. The integer input specifies how many of the brightest pixels shall be taken into account when performing the Inverse Hough operation.

 

function call:

[out_img1]=vsg('InvHough',in_img1,num1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image. This should be a Hough space image.

num1 – an integer representing the number of highest input pixels to use in the inverse transform.

 

Description:

out_img1 – An image which has dimensions which are the same as the input image dimensions. The output image contains the lines corresponding to the num1 most significant pixels of the input Hough space image.

 

Example:

img=openimage('sixth.bmp');

h=figure;image(uint8(img));set(h,'Name','Input image');axis image;

[img] = vsg('Threshold',img,50);

[out_img1]=vsg('Hough',img);

h=figure; imagesc((out_img1(:,:,1)));colormap(gray),set(h,'Name','Hough image'); axis image;

[out_img2]=vsg('InvHough',out_img1,30);

h=figure; imagesc((out_img2(:,:,1)));colormap(gray),set(h,'Name','inv Hough image'); axis image;


Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on the red colour plane.

Home       Functions    Back