Add equality check on labelCount.
Remove range check on v_intensity[1].