I am transferring a small function from C # to Objective-C (for iPhone) and I am confused about the C # method.
I'm not sure if the following C # lines will be equal in Objective C. In particular, the Set method .
BitArray bits = new BitArray(DESC_LEN); bits.Set(j, (ii_data[cix_1 - KERNEL_SZ/2*ii_step - KERNEL_SZ/2] + ii_data[cix_1 + KERNEL_SZ/2*ii_step + KERNEL_SZ/2] - ii_data[cix_1 - KERNEL_SZ/2*ii_step + KERNEL_SZ/2] - ii_data[cix_1 + KERNEL_SZ/2*ii_step - KERNEL_SZ/2]) > (ii_data[cix_2 - KERNEL_SZ/2*ii_step - KERNEL_SZ/2] + ii_data[cix_2 + KERNEL_SZ/2*ii_step + KERNEL_SZ/2] - ii_data[cix_2 - KERNEL_SZ/2*ii_step + KERNEL_SZ/2] - ii_data[cix_2 + KERNEL_SZ/2*ii_step - KERNEL_SZ/2] ) );
Does anyone have an idea that Set in C # can be equated to Objective-C. Of course, I did a few googling, but nothing came of it.
Cheers, Brett
source share