search for: labelfil

Displaying 1 result from an estimated 1 matches for "labelfil".

Did you mean: labelfile
2003 Nov 24
2
Questions on Random Forest
...lgorithm, so the class label image is also 512x512 and has 0, 1, 2 value. I read the binary image data as follows: datafile <- file("bone.img","rb") img <- readBin(datafile,size=2,what="integer",n=512*512,signed=FALSE) img <- as.matrix(img) close(datafile) labelfile <- file(label.img","rb") label <- readBin(labelfile,size=2,what="integer",n=512*512,signed=FALSE) label <- as.matrix(label) close(labelfile) img_and_label <- c(img,label) // binds the image data and class label img_and_label <- as.matrix(img_and_label) img...