transform 4 line to px binary
takes vector for px binary function