如何使用ImageJ进行二值图像分类?

时间:2017-04-29 01:17:10

标签: machine-learning computer-vision classification imagej

我想进行二进制图像分类,我认为ImageJ是一个很好的平台,但是唉,我很茫然。我想做的伪代码如下。我如何在ImageJ中实现这一点?它不必完全遵循伪代码,我只是希望能够了解我想要做什么。 (如果有插件或更合适的平台已经执行此操作,您能指出我吗?)

培训:

train_directory = get folder from user
train_set = get all image files in train_directory

class_file = get text file from user
// each row of class_file contains image name and a "1" or "-1"
// a "1" indicates that image belongs to the positive class

model = build_model_from_train_set_and_class_file
write_model_to_output_file
// end train

进行测试:

test_directory = get folder from user
test_set = get all images in test_directory
if (user wants to)
    class_file = get text file from user
    // normally for testing one would always know the class of the image
    // the if statement is just in case the user does not

model = read_model_file
output = classify_images_as_positive_or_negative
write_output_to_file

请注意,用户不应进行任何预处理:没有额外的掩码集,没有绘图,没有其他标签等。算法必须能够从训练图像中找出训练图像中常见的内容单独并适当地建立模型。当然,该算法可以进行任何预处理,它只是不能依赖已经完成的预处理。

我尝试使用CVIPtools但是它想要在所有图像上使用蒙版来进行特征提取。

0 个答案:

没有答案