Selection of gray values of a multi channel image using an index image.
The operator ::select_grayvalues_from_channels selects gray values from a MultichannelImage. The channel number for each pixel is determined by using IndexImage: The gray value in IndexImage is used as the channel number in MultichannelImage.
|
MultichannelImage (input_object) |
multichannel-image(-array) -> Hobject: HImage(Array) ( byte ) |
| Multichannel gray image. | |
|
IndexImage (input_object) |
singlechannelimage -> Hobject: HImage ( byte ) |
| Image, where gray values are interpreted als indexes. | |
|
Selected (output_object) |
singlechannelimage -> Hobject * : HImage ( byte ) |
| Depth image. | |
compose3(Focus0,Focus1,Focus2,&MultiFocus); depth_from_focus(MultiFocus,&Depth,&Confidence,'highpass','next_maximum'); mean_image(Depth,&Smooth,15,15); select_grayvalues_from_channels(MultiChannel,Smooth,SharpImage);
::depth_from_focus, ::mean_image
Tools