Name
class_ndim_boxclass_ndim_boxClassNdimBoxclass_ndim_boxClassNdimBoxClassNdimBox — Classify pixels using hyper-cuboids.
class_ndim_boxclass_ndim_boxClassNdimBoxclass_ndim_boxClassNdimBoxClassNdimBox classifies the pixels of the multi-channel
image given in MultiChannelImageMultiChannelImageMultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImage. To do so, the
classificator ClassifHandleClassifHandleClassifHandleClassifHandleClassifHandleclassifHandle
created with create_class_boxcreate_class_boxCreateClassBoxcreate_class_boxCreateClassBoxCreateClassBox is used. The
classificator can be trained using learn_ndim_boxlearn_ndim_boxLearnNdimBoxlearn_ndim_boxLearnNdimBoxLearnNdimBox or as
described with create_class_boxcreate_class_boxCreateClassBoxcreate_class_boxCreateClassBoxCreateClassBox. More information on the
structure of the classificator can be found also under that operator.
MultiChannelImageMultiChannelImageMultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImage is a multi channel image. Its
pixel values are used for the classification.
- Multithreading type: exclusive (runs in parallel only with independent operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
Multi channel input image.
Handle of the classifier.
read_image(Image,'montery')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'green')
fwrite_string(FileHandle,'Draw the learning region')
fnew_line(FileHandle)
draw_region(Reg1,WindowHandle)
reduce_domain(Image,Reg1,Foreground)
set_color(WindowHandle,'red')
fwrite_string(FileHandle,'Draw Background')
fnew_line(FileHandle)
draw_region(Reg2,WindowHandle)
reduce_domain(Image,Reg2,Background)
fwrite_string(FileHandle,'Training')
fnew_line(FileHandle)
create_class_box(ClassifHandle)
learn_ndim_box(Foreground,Background,Image,ClassifHandle)
fwrite_string(FileHandle,'Classification')
fnew_line(FileHandle)
class_ndim_box(Image,Res,ClassifHandle)
set_draw(WindowHandle,'fill')
disp_region(Res,WindowHandle)
close_class_box(ClassifHandle)
read_image(&Image,"montery");
disp_image(Image,WindowHandle);
set_color(WindowHandle,"green");
fwrite_string(FileHandle,"Draw the foreground");
fnew_line(FileHandle);
draw_region(&Reg1,WindowHandle);
reduce_domain(Image,Reg1,&Foreground);
set_color(WindowHandle,"red");
fwrite_string(FileHandle,"Draw background");
fnew_line(FileHandle);
draw_region(&Reg2,WindowHandle);
reduce_domain(Image,Reg2,&Background);
fwrite_string(FileHandle,"Start to learn");
fnew_line(FileHandle);
create_class_box(&ClassifHandle);
learn_ndim_box(Foreground,Background,Image,ClassifHandle);
fwrite_string(FileHandle,"start classification");
fnew_line(FileHandle);
class_ndim_box(Image,&Res,ClassifHandle);
set_draw(WindowHandle,"fill");
disp_region(Res,WindowHandle);
close_class_box(ClassifHandle);
read_image(Image,'montery')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'green')
fwrite_string(FileHandle,'Draw the learning region')
fnew_line(FileHandle)
draw_region(Reg1,WindowHandle)
reduce_domain(Image,Reg1,Foreground)
set_color(WindowHandle,'red')
fwrite_string(FileHandle,'Draw Background')
fnew_line(FileHandle)
draw_region(Reg2,WindowHandle)
reduce_domain(Image,Reg2,Background)
fwrite_string(FileHandle,'Training')
fnew_line(FileHandle)
create_class_box(ClassifHandle)
learn_ndim_box(Foreground,Background,Image,ClassifHandle)
fwrite_string(FileHandle,'Classification')
fnew_line(FileHandle)
class_ndim_box(Image,Res,ClassifHandle)
set_draw(WindowHandle,'fill')
disp_region(Res,WindowHandle)
close_class_box(ClassifHandle)
read_image(Image,'montery')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'green')
fwrite_string(FileHandle,'Draw the learning region')
fnew_line(FileHandle)
draw_region(Reg1,WindowHandle)
reduce_domain(Image,Reg1,Foreground)
set_color(WindowHandle,'red')
fwrite_string(FileHandle,'Draw Background')
fnew_line(FileHandle)
draw_region(Reg2,WindowHandle)
reduce_domain(Image,Reg2,Background)
fwrite_string(FileHandle,'Training')
fnew_line(FileHandle)
create_class_box(ClassifHandle)
learn_ndim_box(Foreground,Background,Image,ClassifHandle)
fwrite_string(FileHandle,'Classification')
fnew_line(FileHandle)
class_ndim_box(Image,Res,ClassifHandle)
set_draw(WindowHandle,'fill')
disp_region(Res,WindowHandle)
close_class_box(ClassifHandle)
read_image(Image,'montery')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'green')
fwrite_string(FileHandle,'Draw the learning region')
fnew_line(FileHandle)
draw_region(Reg1,WindowHandle)
reduce_domain(Image,Reg1,Foreground)
set_color(WindowHandle,'red')
fwrite_string(FileHandle,'Draw Background')
fnew_line(FileHandle)
draw_region(Reg2,WindowHandle)
reduce_domain(Image,Reg2,Background)
fwrite_string(FileHandle,'Training')
fnew_line(FileHandle)
create_class_box(ClassifHandle)
learn_ndim_box(Foreground,Background,Image,ClassifHandle)
fwrite_string(FileHandle,'Classification')
fnew_line(FileHandle)
class_ndim_box(Image,Res,ClassifHandle)
set_draw(WindowHandle,'fill')
disp_region(Res,WindowHandle)
close_class_box(ClassifHandle)
read_image(Image,'montery')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'green')
fwrite_string(FileHandle,'Draw the learning region')
fnew_line(FileHandle)
draw_region(Reg1,WindowHandle)
reduce_domain(Image,Reg1,Foreground)
set_color(WindowHandle,'red')
fwrite_string(FileHandle,'Draw Background')
fnew_line(FileHandle)
draw_region(Reg2,WindowHandle)
reduce_domain(Image,Reg2,Background)
fwrite_string(FileHandle,'Training')
fnew_line(FileHandle)
create_class_box(ClassifHandle)
learn_ndim_box(Foreground,Background,Image,ClassifHandle)
fwrite_string(FileHandle,'Classification')
fnew_line(FileHandle)
class_ndim_box(Image,Res,ClassifHandle)
set_draw(WindowHandle,'fill')
disp_region(Res,WindowHandle)
close_class_box(ClassifHandle)
Let N be the number of hyper-cuboids and A be the area of the
input region. Then the runtime complexity is O(N,A).
class_ndim_boxclass_ndim_boxClassNdimBoxclass_ndim_boxClassNdimBoxClassNdimBox returns 2 (H_MSG_TRUE) if all parameters are
correct. The behavior with respect to the input images and output
regions can be determined by setting the values of the flags
'no_object_result'"no_object_result""no_object_result""no_object_result""no_object_result""no_object_result", 'empty_region_result'"empty_region_result""empty_region_result""empty_region_result""empty_region_result""empty_region_result", and
'store_empty_region'"store_empty_region""store_empty_region""store_empty_region""store_empty_region""store_empty_region" with set_systemset_systemSetSystemset_systemSetSystemSetSystem.
If necessary, an exception is raised.
create_class_boxcreate_class_boxCreateClassBoxcreate_class_boxCreateClassBoxCreateClassBox,
learn_class_boxlearn_class_boxLearnClassBoxlearn_class_boxLearnClassBoxLearnClassBox,
median_imagemedian_imageMedianImagemedian_imageMedianImageMedianImage,
compose2compose2Compose2compose2Compose2Compose2,
compose3compose3Compose3compose3Compose3Compose3,
compose4compose4Compose4compose4Compose4Compose4,
compose5compose5Compose5compose5Compose5Compose5,
compose6compose6Compose6compose6Compose6Compose6,
compose7compose7Compose7compose7Compose7Compose7
class_ndim_normclass_ndim_normClassNdimNormclass_ndim_normClassNdimNormClassNdimNorm,
class_2dim_supclass_2dim_supClass2dimSupclass_2dim_supClass2dimSupClass2dimSup,
class_2dim_unsupclass_2dim_unsupClass2dimUnsupclass_2dim_unsupClass2dimUnsupClass2dimUnsup
descript_class_boxdescript_class_boxDescriptClassBoxdescript_class_boxDescriptClassBoxDescriptClassBox
Foundation