| 1 |
********* |
| 2 |
Jim class |
| 3 |
********* |
| 4 |
|
| 5 |
.. toctree:: |
| 6 |
:maxdepth: 3 |
| 7 |
|
| 8 |
.. py:module:: jiplib |
| 9 |
|
| 10 |
.. autoclass:: Jim |
| 11 |
|
| 12 |
=========== |
| 13 |
Jim methods |
| 14 |
=========== |
| 15 |
|
| 16 |
--------------------- |
| 17 |
Access Jim attributes |
| 18 |
--------------------- |
| 19 |
|
| 20 |
.. automethod:: jiplib.Jim.nrOfCol |
| 21 |
.. automethod:: jiplib.Jim.nrOfRow |
| 22 |
.. automethod:: jiplib.Jim.nrOfBand |
| 23 |
.. automethod:: jiplib.Jim.nrOfPlane |
| 24 |
.. automethod:: jiplib.Jim.printNoDataValues |
| 25 |
.. automethod:: jiplib.Jim.pushNoDataValue |
| 26 |
.. automethod:: jiplib.Jim.setNoDataValue |
| 27 |
.. automethod:: jiplib.Jim.setNoData |
| 28 |
.. automethod:: jiplib.Jim.clearNoData |
| 29 |
.. automethod:: jiplib.Jim.getDataType |
| 30 |
|
| 31 |
.. |
| 32 |
from MIA module imem |
| 33 |
- getBitsPerPixel |
| 34 |
|
| 35 |
-------------------------- |
| 36 |
Get geospatial information |
| 37 |
-------------------------- |
| 38 |
|
| 39 |
.. automethod:: jiplib.Jim.covers |
| 40 |
.. automethod:: jiplib.Jim.getGeoTransform |
| 41 |
.. automethod:: jiplib.Jim.setGeoTransform |
| 42 |
.. automethod:: jiplib.Jim.copyGeoTransform |
| 43 |
.. automethod:: jiplib.Jim.getProjection |
| 44 |
.. automethod:: jiplib.Jim.setProjection |
| 45 |
.. automethod:: jiplib.Jim.getBoundingBox |
| 46 |
.. automethod:: jiplib.Jim.getCenterPos |
| 47 |
.. automethod:: jiplib.Jim.getUlx |
| 48 |
.. automethod:: jiplib.Jim.getUly |
| 49 |
.. automethod:: jiplib.Jim.getLrx |
| 50 |
.. automethod:: jiplib.Jim.getLry |
| 51 |
.. automethod:: jiplib.Jim.getDeltaX |
| 52 |
.. automethod:: jiplib.Jim.getDeltaY |
| 53 |
.. automethod:: jiplib.Jim.getRefPix |
| 54 |
|
| 55 |
-------------------- |
| 56 |
Input/Output methods |
| 57 |
-------------------- |
| 58 |
|
| 59 |
.. automethod:: jiplib.Jim.open |
| 60 |
.. automethod:: jiplib.Jim.close |
| 61 |
.. automethod:: jiplib.Jim.write |
| 62 |
.. automethod:: jiplib.Jim.dumpImg |
| 63 |
.. automethod:: jiplib.Jim.isEqual |
| 64 |
.. |
| 65 |
from MIA module imem |
| 66 |
# - imageCreate |
| 67 |
# - imageCopy |
| 68 |
# - imageLutCopy |
| 69 |
# - imageLutCreate |
| 70 |
# - imageLutFree |
| 71 |
# - imageDump |
| 72 |
- setPixVal |
| 73 |
- getPixVal |
| 74 |
.. |
| 75 |
# *** from MIA module io (redundant?) |
| 76 |
# - gdalInfo |
| 77 |
# - gdalRead |
| 78 |
# - readImageBinary |
| 79 |
# - readImage |
| 80 |
# - readImageToType |
| 81 |
# - writeColorMapTiff |
| 82 |
# - writeTiff |
| 83 |
# - writeTiffOneStripPerLine |
| 84 |
# - gdalGetGeoKey |
| 85 |
# - gdalGetTiffTagGeo |
| 86 |
# - readImageScale |
| 87 |
# - readTiffSubset |
| 88 |
# - tiffInfoFieldValue |
| 89 |
# - tiffInfo |
| 90 |
# - writeGeoTiff |
| 91 |
# - writeMultibandGeoTiff |
| 92 |
|
| 93 |
------------------------------------- |
| 94 |
Subset methods and geometry operators |
| 95 |
------------------------------------- |
| 96 |
|
| 97 |
.. automethod:: jiplib.Jim.crop |
| 98 |
|
| 99 |
Geometry operators (from MIA module gemetry) |
| 100 |
|
| 101 |
- imageFrameSet |
| 102 |
- imageFrameAdd |
| 103 |
- imageFrameSubstract |
| 104 |
- imageInsert |
| 105 |
- imageInsertCompose |
| 106 |
- imageCut |
| 107 |
- getBoundingBoxNonZeroDomain |
| 108 |
- imageMagnify |
| 109 |
- imageRotateCoor |
| 110 |
- predicateSizeAndTypeEqual |
| 111 |
- predicateSizeEqual |
| 112 |
- plotLine |
| 113 |
- overlapMatrix |
| 114 |
|
| 115 |
--------------- |
| 116 |
Convert methods |
| 117 |
--------------- |
| 118 |
|
| 119 |
.. automethod:: jiplib.Jim.convert |
| 120 |
.. automethod:: jiplib.Jim.jim2np |
| 121 |
.. automethod:: jiplib.Jim.np2jim |
| 122 |
|
| 123 |
.. |
| 124 |
# - band2plane |
| 125 |
# - plane2band |
| 126 |
# - jim2json |
| 127 |
# - json2jim |
| 128 |
# - jim2mia (private) |
| 129 |
# - mia2jim (private) |
| 130 |
.. |
| 131 |
from MIA module format |
| 132 |
- convertTo1bitPerPixel |
| 133 |
- convertTo4bitPerPixel |
| 134 |
- convertToUint16 |
| 135 |
- convertToUint32 |
| 136 |
- convertToFloat32 |
| 137 |
- convertToDouble64 |
| 138 |
- convertToUchar8 |
| 139 |
- convertDouble64ToFloat32 |
| 140 |
- convertUint32toFloat32 |
| 141 |
- convertSwapBytes |
| 142 |
- convertDeinterleave |
| 143 |
# can be moved to member function of JimList |
| 144 |
- convertHsiToRgb |
| 145 |
- convertHlsToRgb |
| 146 |
- convertRgbToHsx |
| 147 |
- convertRgbTo3d |
| 148 |
.. |
| 149 |
from MIA module imem |
| 150 |
# - imageToArray |
| 151 |
# - imageFromArray |
| 152 |
|
| 153 |
----------------------------------------------- |
| 154 |
Convolution filters and morphological operators |
| 155 |
----------------------------------------------- |
| 156 |
|
| 157 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 158 |
spectral/temporal domain (1D) |
| 159 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 160 |
|
| 161 |
.. automethod:: jiplib.Jim.filter1d |
| 162 |
|
| 163 |
^^^^^^^^^^^^^^^^^^^ |
| 164 |
spatial domain (2D) |
| 165 |
^^^^^^^^^^^^^^^^^^^ |
| 166 |
|
| 167 |
.. automethod:: jiplib.Jim.filter2d |
| 168 |
|
| 169 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 170 |
Advanced spatial morphological operators |
| 171 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 172 |
|
| 173 |
convolutional filters (from MIA module convolve) |
| 174 |
|
| 175 |
- convolve |
| 176 |
- convolveDownSample |
| 177 |
- runSum2d |
| 178 |
- runSum3d |
| 179 |
- runSumInSquareNgb |
| 180 |
- meanFilterInSquareNgb |
| 181 |
- meanFilterIn2dNgb |
| 182 |
- varianceFilterIn2dNgb |
| 183 |
- sumInSquareNgb |
| 184 |
- gradientAzimuth |
| 185 |
- orientationMap |
| 186 |
- phaseCorrelation |
| 187 |
|
| 188 |
Morphological operators (from MIA module erodil) |
| 189 |
|
| 190 |
- morphoErodeLine |
| 191 |
- morphoDilateLine |
| 192 |
- morphoDilateLinePeriodic |
| 193 |
- morphoErodeLinePeriodic |
| 194 |
- morphoErodeNgb4 |
| 195 |
- morphoDilateNgb4 |
| 196 |
- morphoErode |
| 197 |
- morphoDilate |
| 198 |
- morphoRankFilter |
| 199 |
- morphoRankFilterSquare |
| 200 |
- morphoRankFilterLine |
| 201 |
- morphoRankFilterLineTI |
| 202 |
- morphoGradientMultibandSquareNgb |
| 203 |
- morphoGradientMultiband2dNgb |
| 204 |
|
| 205 |
Morphological operators (from MIA module opclo) |
| 206 |
|
| 207 |
- morphoOpeningAttribute |
| 208 |
- morphoOpeningArea |
| 209 |
- morphoClosingArea |
| 210 |
- morphoOpeningAreaROI |
| 211 |
- morphoClosingAreaROI |
| 212 |
- convexHull |
| 213 |
- morphoClosingHalfPlane |
| 214 |
- morphoClosingHalfPlaneTI |
| 215 |
|
| 216 |
Morphological operators (from MIA module hmt) |
| 217 |
|
| 218 |
- skeleton |
| 219 |
- pruneBinary |
| 220 |
- extractPixelConfigurationBinary |
| 221 |
- extractPixelConfigurationGrey |
| 222 |
- switchOperator |
| 223 |
- skeletonOrderIndependent |
| 224 |
- skeletonAnchored |
| 225 |
- orderDependentThin |
| 226 |
- orderDependentThinFifo |
| 227 |
- orderIndependentThin |
| 228 |
- orderIndependentThinFifo |
| 229 |
|
| 230 |
Geodesy operators (from MIA module geodesy) |
| 231 |
|
| 232 |
- geodesicReconstructionByDilation |
| 233 |
- geodesicReconstructionByErosion |
| 234 |
- geodesicReconstruction |
| 235 |
- geodesicComplete |
| 236 |
- getRegionalMinima |
| 237 |
- geodesicTimeFlat |
| 238 |
- geodesicTime |
| 239 |
- geodesicTimeSymmetric |
| 240 |
|
| 241 |
Distance functions (from MIA dist module) |
| 242 |
|
| 243 |
- distance2d4 |
| 244 |
- distance2dChamfer57 |
| 245 |
- distance2dChamfer |
| 246 |
- distance2dEuclideanFifo |
| 247 |
- distance2dEuclideanSquared |
| 248 |
- distanceInfluenceZones2dEuclidean |
| 249 |
- distanceInfluenceZones2dOrderedIndependent |
| 250 |
- distanceGeodesic |
| 251 |
- distance2dEuclideanConstrained |
| 252 |
|
| 253 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 254 |
spatial and spectral domain (3D) |
| 255 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 256 |
|
| 257 |
Morphological operators (from MIA module erodil) |
| 258 |
|
| 259 |
- morphoErodeVolumic |
| 260 |
|
| 261 |
---------------------- |
| 262 |
Classification methods |
| 263 |
---------------------- |
| 264 |
|
| 265 |
.. automethod:: jiplib.Jim.classify |
| 266 |
.. automethod:: jiplib.Jim.classifySML |
| 267 |
.. automethod:: jiplib.Jim.reclass |
| 268 |
.. |
| 269 |
automethod:: jiplib.Jim.validate |
| 270 |
|
| 271 |
.. |
| 272 |
from MIA module stats |
| 273 |
- classStatsInfo |
| 274 |
- classMinDst |
| 275 |
- classBox |
| 276 |
- classMahanalobis |
| 277 |
- classMaximumLikelihood |
| 278 |
- similarityDetectionSequential |
| 279 |
- crosscorrNormalisedLewis |
| 280 |
- crosscorrNormalised |
| 281 |
|
| 282 |
------------------------ |
| 283 |
Mask / Threshold methods |
| 284 |
------------------------ |
| 285 |
|
| 286 |
.. automethod:: jiplib.Jim.setThreshold |
| 287 |
.. automethod:: jiplib.Jim.getMask |
| 288 |
.. automethod:: jiplib.Jim.setMask |
| 289 |
.. |
| 290 |
from MIA module pointop |
| 291 |
- pointOpThresh |
| 292 |
- pointOpSetLevel |
| 293 |
- pointOpSetRange |
| 294 |
|
| 295 |
-------------------------------------- |
| 296 |
Statistical methods and interpolations |
| 297 |
-------------------------------------- |
| 298 |
|
| 299 |
.. automethod:: jiplib.Jim.statProfile |
| 300 |
.. automethod:: jiplib.Jim.getStats |
| 301 |
.. automethod:: jiplib.Jim.stretch |
| 302 |
|
| 303 |
.. |
| 304 |
automethod:: jiplib.Jim.fillNoData (currently only in pktools, to be ported to jiplib) |
| 305 |
|
| 306 |
.. |
| 307 |
from MIA module imem |
| 308 |
- imageInfo |
| 309 |
- getFirstPixWithVal |
| 310 |
.. |
| 311 |
Miscelaneous operators (from MIA module miscel) |
| 312 |
- orientationMean |
| 313 |
- orientationCoherence |
| 314 |
- paraboloidGetCoordinatesExtremum |
| 315 |
- linearFit |
| 316 |
- gradientTransition |
| 317 |
.. |
| 318 |
from MIA module stats |
| 319 |
- histo1d |
| 320 |
- histo2d |
| 321 |
- histo3d |
| 322 |
- histo1dCumulative |
| 323 |
- applyLUT3d |
| 324 |
- applyLUT2d |
| 325 |
- surfaceArea |
| 326 |
- runSumDir |
| 327 |
- getMinMax |
| 328 |
- getFirstMaxOffset |
| 329 |
- histoCompress |
| 330 |
- applyLUT1d |
| 331 |
- applyLUT1dTypeMatch |
| 332 |
- getSum |
| 333 |
- propagateMaxDir |
| 334 |
- predicateIdentity |
| 335 |
- getMax |
| 336 |
- getMinMax |
| 337 |
- histoMatchRgb (can be moved to member function of JimList) |
| 338 |
- histoMatch3dRgb (can be moved to member function of JimList) |
| 339 |
- linearCombinationMultiband (not implemented yet) |
| 340 |
- meanConditional (not implemented yet) |
| 341 |
- sortIndex |
| 342 |
.. |
| 343 |
from MIA module proj |
| 344 |
- gridding |
| 345 |
# - cs2cs (not implemented yet) |
| 346 |
|
| 347 |
-------------------------------------------------- |
| 348 |
Extracting pixel values from overlays and sampling |
| 349 |
-------------------------------------------------- |
| 350 |
|
| 351 |
.. automethod:: jiplib.Jim.extractOgr |
| 352 |
.. automethod:: jiplib.Jim.extractSample |
| 353 |
.. automethod:: jiplib.Jim.extractImg |
| 354 |
|
| 355 |
-------------------------------- |
| 356 |
Digitial elevation model methods |
| 357 |
-------------------------------- |
| 358 |
|
| 359 |
.. |
| 360 |
- filterdem (currently only in pktools, to be ported to jiplib and renamed to dem2dtm) |
| 361 |
- dsm2shadow (currently only in pktools, to be ported to jiplib) |
| 362 |
.. |
| 363 |
(from MIA dem module) |
| 364 |
- demFlowDirectionD8 |
| 365 |
- demSlopeD8 |
| 366 |
- demFlow |
| 367 |
- demFlowNew |
| 368 |
- demContributingDrainageArea |
| 369 |
- demContributingDrainageAreaStratify |
| 370 |
- demFlowDirectionDInf |
| 371 |
- demContributingDrainageAreaDInf |
| 372 |
- demSlopeDInf |
| 373 |
- demFloodDirection |
| 374 |
- demCatchmentBasinOutlet |
| 375 |
- demCatchmenBasinConfluence |
| 376 |
- demStrahlerOrder |
| 377 |
- demPitRemovalCarve |
| 378 |
- demPitRemovalOptimal |
| 379 |
- demFlowDirectionFlat |
| 380 |
- demFlowDirectionFlatGeodesic |
| 381 |
- demUpstreamMaxHeight |
| 382 |
- demShade |
| 383 |
- demLineDilate3d |
| 384 |
|
| 385 |
---------------------------------------- |
| 386 |
Segmentation methods and label operators |
| 387 |
---------------------------------------- |
| 388 |
|
| 389 |
.. |
| 390 |
Segment operators (from MIA module segment) |
| 391 |
- segmentationWatershed |
| 392 |
- segmentationWatershedFAH |
| 393 |
- skeletonFah |
| 394 |
- skeletonFah2 |
| 395 |
- compose |
| 396 |
- segmentationWatershedOrderIndependent |
| 397 |
- segmentationSeededRegionGrowing |
| 398 |
- segmentationSeededRegionGrowingMultiband (not implemented yet) |
| 399 |
- segmentationSeededRegionGrowingCore (not implemented yet) |
| 400 |
- labelQuasiFlatZones (not implemented yet) |
| 401 |
- segmentationSeededRegionGrowingMultiband (error in rename: both mssrg and mcisrg are mapped to same function?) |
| 402 |
- segmentImageMultiband (not implemented yet) |
| 403 |
- writeGnuPlot3D (not implemented yet) |
| 404 |
- vectorizeImage (not implemented yet) |
| 405 |
- predicatePartitionEqual |
| 406 |
- predicatePartitionFiner |
| 407 |
- imgc |
| 408 |
- dendrogram (not implemented yet) |
| 409 |
- partitionSimilarity |
| 410 |
.. |
| 411 |
Label methods (from MIA module label) |
| 412 |
- labelBinary |
| 413 |
- labelPixNgb |
| 414 |
- labelFlatZones |
| 415 |
- labelFlatZonesSeeded |
| 416 |
- flatZonesSeeded |
| 417 |
- labelPix |
| 418 |
- labelsResolve |
| 419 |
- labelsReorder |
| 420 |
- labelErode |
| 421 |
- propagate |
| 422 |
- labelsSet |
| 423 |
- labelsSetGraph |
| 424 |
- labelsSetArea |
| 425 |
- labelRelabel |
| 426 |
- labelsGetLut |
| 427 |
- labelsGetLutSeq |
| 428 |
- labelsImageGetLut |
| 429 |
- labelsGetContortionLut |
| 430 |
- dissimToAlphaCCs |
| 431 |
- vertexDegreeAlpha |
| 432 |
- vertexSeparation |
| 433 |
- labelVertexConnectedness |
| 434 |
- labelAlphaCCs |
| 435 |
- labelConstrainedCCsMi |
| 436 |
- labelConstrainedCCsCi |
| 437 |
- labelConstrainedCCs |
| 438 |
- labelConstrainedCCsVariance |
| 439 |
- labelConstrainedCCsMultibandDissim |
| 440 |
- labelConstrainedCCsAttr |
| 441 |
- alphaTreeDissimGet (can be moved to member function of JimList) |
| 442 |
- edgeWeight |
| 443 |
- dbscan |
| 444 |
- labelsGetOuterEdgeLut |
| 445 |
- labelsGetOuterEdge |
| 446 |
- labelsGetOuterContour |
| 447 |
.. |
| 448 |
Arithmetic operators (from MIA module pointop) |
| 449 |
- pointOpBitwise |
| 450 |
- pointOpNegation |
| 451 |
- pointOpArith |
| 452 |
- pointOpArithCst |
| 453 |
- pointOpAbs |
| 454 |
- pointOpSqrt |
| 455 |
- pointOpLog |
| 456 |
- pointOpAtan |
| 457 |
- pointOpCos |
| 458 |
- pointOpAcos |
| 459 |
- pointOpSin |
| 460 |
- pointOpAsin |
| 461 |
- pointOpModulo |
| 462 |
- pointOpComplement |
| 463 |
- pointOpPower2 |
| 464 |
- pointOpBlank |
| 465 |
- pointOpBitShift |