I am porting a small function from C# to Objective-C (for the iPhone), and I am running into a snag with a C# method.
I'm not sure what the following C# lines would equate to in Objective C. Particularly 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 any idea what Set in C# might equate to in Objective-C. Of course I've done some Googling, but nothing pops out.
Cheers, Brett