Comments (3)
Hi Matt
I added a disk in the new version, and fixed a bug on the thresholding. Lett's see if it meets the expectations...
from solex_ser_recon.
Hi,
I'm attaching here a comparison of the the prom results, one being what I think is the current way in Solex_ser_recon and the other reflects the adjustment I suggested above. "16_33_15_pipp_protus.png" is the new version ...
The relevant portion of code that generated this is
`
#prom image thresholds
if disk_display==True:
x0=circle[0]
y0=circle[1]
wi=circle[2]-5
he=circle[3]-5
#ang=-int(circle[3])
r=int(min(wi,he)-3)
c=(0,0,0)
#r=int(circle[2])-5
#frame_contrasted3=cv2.circle(frame_contrasted3, (x0,y0),r,80,-1,lineType=cv2.LINE_AA)
frame=cv2.ellipse(frame, (x0,y0),(wi,he),-circle[4],0,360,(0,0,0),-1,lineType=cv2.LINE_AA ) #MattC apply tilt, change color to black
frame1=np.copy(frame)
Threshold_Upper=np.percentile(frame1,99.9999) #MattC drop *.18
Threshold_low=0
#print('Threshold Lower prom', Threshold_low)
#print('Threshold Upper prom', Threshold_Upper)
frame1[frame1>Threshold_Upper]=Threshold_Upper
fc2=(frame1-Threshold_low)* (scalemax/(Threshold_Upper-Threshold_low))
fc2[fc2<0]=0
frame_contrasted3=np.array(fc2, dtype=datasize)
cv2.imshow('proms',frame_contrasted3)
`
(Apologies for supply an English-language version. But it should be easy to see that I just moved one block of code further up and made a couple of small adjustments reflected by my initials).
To my eye, the result seems better when I compare them side by side in GIMP, for instance.
from solex_ser_recon.
I modified the code as per your suggestion, but sill keep some threshold high. So, done !
from solex_ser_recon.
Related Issues (17)
- 65000--> 64000 HOT 6
- Bandwidth of the image HOT 1
- Issue with edited SER files HOT 1
- A few issues with ellipse HOT 2
- AVI support HOT 1
- Tilt correction not applied HOT 1
- Ellipse fitting question HOT 2
- AVI support
- Question about codeblock HOT 2
- Small bug HOT 3
- poly error? HOT 1
- yaml issues HOT 1
- UnboundLocalError: local variable 'r' referenced before assignment HOT 2
- UI issue with retention of settings
- Horizontal stripes in recon image HOT 1
- Windows explosion - feature request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solex_ser_recon.