If you can measure torque, you can compute brake mean effective pressure (BMEP). If you then know or have a correlation for friction MEP (FMEP), then
NIMEP = BMEP + FMEP
I do believe the Heywood text and others have some empirical correlations for FMEP, which is primarily a function of engine speed for a given engine.
You can get an estimate of the FMEP by switching the fuel off, closing the throttles and measuring the rate of deceleration of the engine. If you know what the rotational inertia is then you can work out the torque required to slow the engine, and so work back to FMEP. Then if you measure BMEP you can calculate IMEP as FireLover suggests. Cheers