Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-129
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-129
2021-129
Commits
9463c15c
Commit
9463c15c
authored
Oct 18, 2021
by
hasintha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ui fixes
parent
d8d86aa4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
app/src/main/java/com/app/smartphotoeditor/activities/DenoisingActivity.java
...om/app/smartphotoeditor/activities/DenoisingActivity.java
+2
-2
app/src/main/java/com/app/smartphotoeditor/activities/LowLightEnhanceActivity.java
.../smartphotoeditor/activities/LowLightEnhanceActivity.java
+2
-1
app/src/main/java/com/app/smartphotoeditor/activities/RestorationActivity.java
.../app/smartphotoeditor/activities/RestorationActivity.java
+2
-1
app/src/main/java/com/app/smartphotoeditor/services/ImageDenoising.java
...ava/com/app/smartphotoeditor/services/ImageDenoising.java
+1
-1
No files found.
app/src/main/java/com/app/smartphotoeditor/activities/DenoisingActivity.java
View file @
9463c15c
...
...
@@ -38,7 +38,7 @@ public class DenoisingActivity extends AppCompatActivity {
private
Button
revertButton
,
nextButton2
;
private
LoadingDialogAdapter
loadingDialog
;
private
ImageDenoising
imageDenoising
;
private
boolean
switchImage
=
fals
e
,
alreadyDenoised
=
true
;
private
boolean
switchImage
=
tru
e
,
alreadyDenoised
=
true
;
private
Handler
handler
=
null
;
@Override
...
...
@@ -80,7 +80,7 @@ public class DenoisingActivity extends AppCompatActivity {
public
void
handleMessage
(
android
.
os
.
Message
msg
)
{
imageDisplay
.
setImageBitmap
(
imageDenoising
.
getDenoisedBitmap
());
loadingDialog
.
dismissDialog
();
revertButton
.
setText
(
"TURN OFF"
);
}
;
...
...
app/src/main/java/com/app/smartphotoeditor/activities/LowLightEnhanceActivity.java
View file @
9463c15c
...
...
@@ -59,7 +59,7 @@ public class LowLightEnhanceActivity extends AppCompatActivity {
private
LoadingDialogAdapter
loadingDialog
;
private
Bitmap
inputImage
,
editedImage
,
outputImage
;
private
Button
revertButton
;
private
boolean
switchImage
=
fals
e
,
alreadyEnhanced
=
true
;
private
boolean
switchImage
=
tru
e
,
alreadyEnhanced
=
true
;
private
Handler
handler
=
null
;
Thread
lowlightThread
;
private
EqualizeHistogram
equalizeHistogram
;
...
...
@@ -134,6 +134,7 @@ public class LowLightEnhanceActivity extends AppCompatActivity {
imageDisplay
.
setImageBitmap
(
equalizeHistogram
.
getEnhancedBitmap
());
loadingDialog
.
dismissDialog
();
revertButton
.
setText
(
"TURN OFF"
);
}
;
...
...
app/src/main/java/com/app/smartphotoeditor/activities/RestorationActivity.java
View file @
9463c15c
...
...
@@ -30,7 +30,7 @@ public class RestorationActivity extends AppCompatActivity {
private
ImageView
imageDisplay
;
private
ImageRestoration
imageRestoration
;
private
Button
revertButton
;
private
boolean
switchImage
=
fals
e
,
alreadyRestored
=
true
;
private
boolean
switchImage
=
tru
e
,
alreadyRestored
=
true
;
private
LoadingDialogAdapter
loadingDialog
;
private
Handler
handler
=
null
;
...
...
@@ -93,6 +93,7 @@ public class RestorationActivity extends AppCompatActivity {
imageDisplay
.
setImageBitmap
(
imageRestoration
.
getRestoreBitmap
());
loadingDialog
.
dismissDialog
();
revertButton
.
setText
(
"TURN OFF"
);
}
;
...
...
app/src/main/java/com/app/smartphotoeditor/services/ImageDenoising.java
View file @
9463c15c
...
...
@@ -50,7 +50,7 @@ public class ImageDenoising {
imageString
=
getStringImage
(
inputImage
);
PyObject
pyo
=
py
.
getModule
(
"
test
"
);
PyObject
pyo
=
py
.
getModule
(
"
imageDenoising
"
);
PyObject
obj
=
pyo
.
callAttr
(
"main"
,
imageString
);
String
str
=
obj
.
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment