static ChessPieceProfile1 chessOCR_pieceProfileFromRawImage_1(BufferedImage img, O... _) { optPar bool withPreprocessedImages; BWImage bw = chessOCR_piecePreprocessing_1(img); BWImage bw2 = chessOCR_piecePreprocessingForFillGrade_1(img); ChessPieceProfile1 profile = new( ocr_sideProfile_scaledTo127(20, 0.5, bw), 1f-bwAverageBrightness(bw2)); if (withPreprocessedImages) profile.preprocessedImages = ll(bw, bw2); ret profile; }