Samsung NX5 has a
15.0MP APS-C (23.4 x 15.6 mm ) sized CMOS sensor and features DRIM Engine processor. On the other hand, Sony NEX-5N has a
16.0MP APS-C (23.4 x 15.6 mm ) sized CMOS sensor and features Bionz processor.
Below you can see the NX5 and NEX-5N sensor size comparison.
Sensor Size and Resolution Comparison image of Samsung NX5 and Sony NEX-5N Cameras
Samsung NX5 and Sony NEX-5N have the same sensor sizes so they will provide same level of control over the depth of field when used with same focal length and aperture. On the other hand, since Samsung NX5 has 14% larger pixel area compared to Sony NEX-5N, it has potential to collect more light on pixel level hence have less noise in low light / High ISO images.
Sensor size sets the circle of confusion, so it drives how much depth of field each
of these bodies gives you at a given aperture. You can calculate it exactly for the
Samsung NX5
or the
Sony NEX-5N ,
including hyperfocal distance.