Download IMAQ Vision for LabWindows/CVI
Transcript
Chapter 6 Image Processing Functions interval of (255,255) after processing the first 254 particles. The aim of this threshold is to eliminate the first 254 particles to visualize the next 254 particles. Note: The source and destination images must be of the same image type and their borders must be greater than or equal to 2. Image type: IPI_PIXEL_U8, I16 Input source_image is the image to process. dest_image is the resulting image. connectivity_8 indicates the connectivity used for particle detection. The connectivity mode directly determines if an adjacent pixel belongs to the same particle or a different particle. Possible values are: • TRUE — The function completes particle detection in connectivity mode 8. • FALSE — The function completes particle detection in connectivity mode 4. Output labelled_particles contains the number of particles detected in the image. IPI_Threshold IPIError = IPI_Threshold (IPIImageRef source_image, IPIImageRef dest_image, float min_value, float max_value, float new_value, int do_replacement); Purpose This function applies a threshold to an image. Image type: IPI_PIXEL_U8, I16, SGL Input source_image is the image to process. dest_image is the resulting image. min_value is the lowest pixel value considered. IMAQ Vision for LabWindows/CVI 6-12 © National Instruments Corporation