Start create python version.
3
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
6
.idea/encodings.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/cpp/skeletonApp/skeletonApp/skeletonApp.cpp" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
48
.idea/inspectionProfiles/Project_Default.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyArgumentEqualDefaultInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyAugmentAssignmentInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyClassicStyleClassInspection" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ourVersions">
|
||||
<value>
|
||||
<list size="5">
|
||||
<item index="0" class="java.lang.String" itemvalue="3.7" />
|
||||
<item index="1" class="java.lang.String" itemvalue="3.8" />
|
||||
<item index="2" class="java.lang.String" itemvalue="3.9" />
|
||||
<item index="3" class="java.lang.String" itemvalue="3.10" />
|
||||
<item index="4" class="java.lang.String" itemvalue="3.10" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyMandatoryEncodingInspection" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyMissingOrEmptyDocstringInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyMissingTypeHintsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="argparse" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="N802" />
|
||||
<option value="N803" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredIdentifiers">
|
||||
<list>
|
||||
<option value="anc.models.samples.Sample._meta" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
10
.idea/lpo-image-processing.iml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.9 (lpo-image-processing)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
7
.idea/misc.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (lpo-image-processing)" project-jdk-type="Python SDK" />
|
||||
<component name="PythonCompatibilityInspectionAdvertiser">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/lpo-image-processing.iml" filepath="$PROJECT_DIR$/.idea/lpo-image-processing.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
3
cpp/skeletonApp/skeletonApp/SkeletonApp_en_150.ts
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en_150"></TS>
|
@ -23,9 +23,8 @@
|
||||
|
||||
#include "skeletonApp.h"
|
||||
|
||||
skeletonApp::skeletonApp(QWidget *parent)
|
||||
: QMainWindow(parent), imageLabel(new QLabel)
|
||||
, scrollArea(new QScrollArea)
|
||||
skeletonApp::skeletonApp(QWidget *parent): QMainWindow(parent),
|
||||
imageLabel(new QLabel), scrollArea(new QScrollArea)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
@ -74,7 +73,7 @@ bool skeletonApp::loadFile(const QString& fileName)
|
||||
int bitPlanes = image.bitPlaneCount();
|
||||
int depth = image.depth();
|
||||
QImage::Format format = image.format();
|
||||
int bytesPerLine = image.bytesPerLine();//niezale¿nie od formatu( pbm, pgm, ppm), wyrównanie do 4B
|
||||
int bytesPerLine = image.bytesPerLine();//niezale<EFBFBD>nie od formatu( pbm, pgm, ppm), wyr<79>wnanie do 4B
|
||||
|
||||
|
||||
nbChannels = 1;
|
||||
@ -96,7 +95,7 @@ bool skeletonApp::loadFile(const QString& fileName)
|
||||
|
||||
for (int j = 0; j < image.width(); j++)
|
||||
{
|
||||
QRgb impix = image.pixel(j, i);//pixel() dzia³a w logice pixel(x,y) - najpierw specyfikuje kolumnê
|
||||
QRgb impix = image.pixel(j, i);//pixel() dzia<EFBFBD>a w logice pixel(x,y) - najpierw specyfikuje kolumn<6D>
|
||||
|
||||
std::vector<int> pixel;
|
||||
|
||||
|
27
cpp/skeletonApp/skeletonApp/skeletonApp.pro
Normal file
@ -0,0 +1,27 @@
|
||||
QT += core gui
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
CONFIG += c++20
|
||||
|
||||
# You can make your code fail to compile if it uses deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
skeletonApp.cpp
|
||||
|
||||
HEADERS += \
|
||||
skeletonApp.h
|
||||
|
||||
FORMS += \
|
||||
skeletonApp.ui
|
||||
|
||||
TRANSLATIONS += \
|
||||
SkeletonApp_en_150.ts
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
@ -1,15 +0,0 @@
|
||||
[[source]]
|
||||
url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
name = "pypi"
|
||||
|
||||
[packages]
|
||||
pyqt6 = "*"
|
||||
pip = "*"
|
||||
pyqt6-sip = "*"
|
||||
pyqt5 = "*"
|
||||
|
||||
[dev-packages]
|
||||
|
||||
[requires]
|
||||
python_version = "3.9"
|
2
python/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
"""Import classes"""
|
||||
from skeletonApp import SkeletonApp
|
BIN
python/icons/Information.chm
Normal file
BIN
python/icons/all-icons-1.png
Normal file
After Width: | Height: | Size: 238 KiB |
BIN
python/icons/disabled/bmp/16x16/Find text.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/disabled/bmp/16x16/New file.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/disabled/bmp/16x16/Palette.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/disabled/bmp/20x20/Find text.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/disabled/bmp/20x20/New file.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/disabled/bmp/20x20/Palette.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/disabled/bmp/24x24/Find text.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/disabled/bmp/24x24/New file.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/disabled/bmp/24x24/Palette.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/disabled/bmp/32x32/Find text.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/disabled/bmp/32x32/New file.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/disabled/bmp/32x32/Palette.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/disabled/bmp/48x48/Find text.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/disabled/bmp/48x48/New file.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/disabled/bmp/48x48/Palette.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/disabled/gif/16x16/Find text.gif
Normal file
After Width: | Height: | Size: 370 B |
BIN
python/icons/disabled/gif/16x16/New file.gif
Normal file
After Width: | Height: | Size: 244 B |
BIN
python/icons/disabled/gif/16x16/Palette.gif
Normal file
After Width: | Height: | Size: 404 B |
BIN
python/icons/disabled/gif/20x20/Find text.gif
Normal file
After Width: | Height: | Size: 429 B |
BIN
python/icons/disabled/gif/20x20/New file.gif
Normal file
After Width: | Height: | Size: 296 B |
BIN
python/icons/disabled/gif/20x20/Palette.gif
Normal file
After Width: | Height: | Size: 501 B |
BIN
python/icons/disabled/gif/24x24/Find text.gif
Normal file
After Width: | Height: | Size: 505 B |
BIN
python/icons/disabled/gif/24x24/New file.gif
Normal file
After Width: | Height: | Size: 341 B |
BIN
python/icons/disabled/gif/24x24/Palette.gif
Normal file
After Width: | Height: | Size: 601 B |
BIN
python/icons/disabled/gif/32x32/Find text.gif
Normal file
After Width: | Height: | Size: 642 B |
BIN
python/icons/disabled/gif/32x32/New file.gif
Normal file
After Width: | Height: | Size: 464 B |
BIN
python/icons/disabled/gif/32x32/Palette.gif
Normal file
After Width: | Height: | Size: 820 B |
BIN
python/icons/disabled/gif/48x48/Find text.gif
Normal file
After Width: | Height: | Size: 968 B |
BIN
python/icons/disabled/gif/48x48/New file.gif
Normal file
After Width: | Height: | Size: 669 B |
BIN
python/icons/disabled/gif/48x48/Palette.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
python/icons/disabled/ico/Find text.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/disabled/ico/New file.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/disabled/ico/Palette.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/disabled/png/16x16/Find text.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
python/icons/disabled/png/16x16/New file.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
python/icons/disabled/png/16x16/Palette.png
Normal file
After Width: | Height: | Size: 683 B |
BIN
python/icons/disabled/png/20x20/Find text.png
Normal file
After Width: | Height: | Size: 780 B |
BIN
python/icons/disabled/png/20x20/New file.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
python/icons/disabled/png/20x20/Palette.png
Normal file
After Width: | Height: | Size: 920 B |
BIN
python/icons/disabled/png/24x24/Find text.png
Normal file
After Width: | Height: | Size: 960 B |
BIN
python/icons/disabled/png/24x24/New file.png
Normal file
After Width: | Height: | Size: 514 B |
BIN
python/icons/disabled/png/24x24/Palette.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
python/icons/disabled/png/32x32/Find text.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
python/icons/disabled/png/32x32/New file.png
Normal file
After Width: | Height: | Size: 704 B |
BIN
python/icons/disabled/png/32x32/Palette.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
python/icons/disabled/png/48x48/Find text.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
python/icons/disabled/png/48x48/New file.png
Normal file
After Width: | Height: | Size: 985 B |
BIN
python/icons/disabled/png/48x48/Palette.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
python/icons/hot/bmp/16x16/Find text.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/hot/bmp/16x16/New file.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/hot/bmp/16x16/Palette.bmp
Normal file
After Width: | Height: | Size: 822 B |
BIN
python/icons/hot/bmp/20x20/Find text.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/hot/bmp/20x20/New file.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/hot/bmp/20x20/Palette.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/hot/bmp/24x24/Find text.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/hot/bmp/24x24/New file.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/hot/bmp/24x24/Palette.bmp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
python/icons/hot/bmp/32x32/Find text.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/hot/bmp/32x32/New file.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/hot/bmp/32x32/Palette.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
python/icons/hot/bmp/48x48/Find text.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/hot/bmp/48x48/New file.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/hot/bmp/48x48/Palette.bmp
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
python/icons/hot/gif/16x16/Find text.gif
Normal file
After Width: | Height: | Size: 587 B |
BIN
python/icons/hot/gif/16x16/New file.gif
Normal file
After Width: | Height: | Size: 604 B |
BIN
python/icons/hot/gif/16x16/Palette.gif
Normal file
After Width: | Height: | Size: 1022 B |
BIN
python/icons/hot/gif/20x20/Find text.gif
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
python/icons/hot/gif/20x20/New file.gif
Normal file
After Width: | Height: | Size: 722 B |
BIN
python/icons/hot/gif/20x20/Palette.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
python/icons/hot/gif/24x24/Find text.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
python/icons/hot/gif/24x24/New file.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/hot/gif/24x24/Palette.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
python/icons/hot/gif/32x32/Find text.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
python/icons/hot/gif/32x32/New file.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
python/icons/hot/gif/32x32/Palette.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
python/icons/hot/gif/48x48/Find text.gif
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
python/icons/hot/gif/48x48/New file.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
python/icons/hot/gif/48x48/Palette.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
python/icons/hot/ico/Find text.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/hot/ico/New file.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/hot/ico/Palette.ico
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
python/icons/hot/png/16x16/Find text.png
Normal file
After Width: | Height: | Size: 735 B |
BIN
python/icons/hot/png/16x16/New file.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
python/icons/hot/png/16x16/Palette.png
Normal file
After Width: | Height: | Size: 905 B |