First lets start off by Downloading Jbed.zip and put it directly in SD card. Click here to download from 4shared.com; Now download CWM.zip ( ClockWorkMod Recovery) and put it directly in SD card. Click here to download from 4shared.com; Now boot into recovery mode by holding Up Volume Key+Home Button+Power Key. Install the JBED.apk file on your device. BUT DON’T OPEN IT YET! Reboot your device. Open JBED app » open menu and select SD Card » select the jar/jad file you want to open and install it. Now open the java app your installed. Hope you’re able to open jar files on Android device following the guide above. Happy Androiding!
Bed Zipline
#PCA whitening involves finding the inverse square root of the covariance matrix |
#of a set of observations, which is prohibitively expensive when dealing |
#with natural images |
#starting with a path to a single image (img_path) |
importnumpyasnp |
fromPILimportImage |
fromsklearnimportpreprocessing |
deff_whitening(img_path): |
img=Image.open(open(img_path)) |
img=np.asarray(img, dtype='uint8').transpose(2, 0, 1) |
whitened= [] |
foriiinrange(3):#loop over color channels |
ch=img[ii] -img[ii].mean()#center the data |
aa=np.fft.fft2(a) |
spectr=np.sqrt(np.mean(np.dot(abs(aa),abs(aa)))) |
out=np.fft.ifft2(np.dot(aa,1./spectr)) |
whitened.append(preprocessing.scale(abs(out))) |
returnnp.asarray(whitened) |
commented Apr 9, 2020
Thanks for this gist! |