%LBPreturnsthelocalbinarypatternimageorLBPhistogramofanimage.%J=LBP(I,R,N,MAPPING,MODE)returnseitheralocalbinarypattern%codedimageorthelocalbinarypatternhistogramofanintensity%imageI.TheLBPcodesarecomputedusingNsamplingpointsona%circleofradiusRandusingmappingtabledefined