remove_texture_inspection_model_imageT_remove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage (Operator)

Name

remove_texture_inspection_model_imageT_remove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage — Löschen ausgewählter oder aller Bilder eines Texturinspektionsmodells.

Signatur

remove_texture_inspection_model_image( : : TextureInspectionModel, Indices : RemainingIndices)

Herror T_remove_texture_inspection_model_image(const Htuple TextureInspectionModel, const Htuple Indices, Htuple* RemainingIndices)

void RemoveTextureInspectionModelImage(const HTuple& TextureInspectionModel, const HTuple& Indices, HTuple* RemainingIndices)

static HTuple HTextureInspectionModel::RemoveTextureInspectionModelImage(const HTextureInspectionModelArray& TextureInspectionModel, const HTuple& Indices)

HTuple HTextureInspectionModel::RemoveTextureInspectionModelImage(const HTuple& Indices) const

static void HOperatorSet.RemoveTextureInspectionModelImage(HTuple textureInspectionModel, HTuple indices, out HTuple remainingIndices)

static HTuple HTextureInspectionModel.RemoveTextureInspectionModelImage(HTextureInspectionModel[] textureInspectionModel, HTuple indices)

HTuple HTextureInspectionModel.RemoveTextureInspectionModelImage(HTuple indices)

Beschreibung

remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage löscht alle oder einzelne, ausgewählte Bilder eines Texturinspektionsmodells TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel.

Eine Verwendung von remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage ist einerseits zu empfehlen, um den Speicherplatz eines abgespeicherten Modells zu reduzieren. Dies ist vor allem dann von Vorteil, wenn das Texturinspektionsmodell offline trainiert und mit write_texture_inspection_modelwrite_texture_inspection_modelWriteTextureInspectionModelWriteTextureInspectionModelWriteTextureInspectionModel abgespeichert wurde, da in diesem Fall die Testbilder mit Hilfe von apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModelApplyTextureInspectionModel weiterhin klassifiziert werden können, der benötigte Speicherplatz jedoch auf ein Minimum reduziert wurde. Andererseits können damit auf einfach Weise Bilder, die für eine spätere Klassifizierung von Testbildern nicht (mehr) benötigt werden, aus dem Modell entfernt werden. Dies ermöglicht es den Nutzer mit einem vollständig konfigurierten Texturmodell weiterzuarbeiten während er lediglich die verwendeten Bilddaten auf das zu lösende Inspektionsproblem abstimmen muss. Nach dem Entfernen von Bildern aus dem Texturinspektionsmodell muss es neu trainiert werden.

Um gezielt Bilder aus dem Texturinspektionsmodells zu entfernen, können im Parameter IndicesIndicesIndicesIndicesindices die Indices der entsprechenden Bilder angegeben werden. Eine Überprüfung, welche Bilder sich noch im Texturinspektionsmodell befinden, kann mit dem Operator get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam unter Angabe des Wertes 'image_indices'"image_indices""image_indices""image_indices""image_indices" erfolgen. Sollte der Nutzer noch nicht vergebene Indices zu Löschen von Bildern verwenden, so werden diese ignoriert. remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage bietet außerdem die Möglichkeit an, IndicesIndicesIndicesIndicesindices auf den Wert 'all'"all""all""all""all" zu setzen. Damit werden automatisch alle Bilder aus dem Texturinspektionsmodells entfernt.

Falls mit remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage alle hinzugefügten Bilder aus dem Modell entfernt wurden, so kann das Modell erst (wieder) trainiert werden, wenn mit add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImage neue Bilder hinzugefügt wurden. Falls nur ein Teil der Bilder aus dem Modell gelöscht wurde, so werden bei einem Aufruf von train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModel alle Schritte des Trainings ausgeführt, da die ggf. noch vorhandenen Trainingsdaten nicht mehr mit der zu diesem Zeitpunkt verwendeten Datengrundlage übereinstimmen.

remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage gibt im Parameter RemainingIndicesRemainingIndicesRemainingIndicesRemainingIndicesremainingIndices die Indices der Bilder zurück die nach dem Aufruf noch im Texturinspektionsmodells vorhanden sind.

Das Konzept der Texturinspektion ist bei der Einleitung zum Kapitel Inspektion / Texturinspektion beschrieben.

Ausführungsinformationen

Dieser Operator modifiziert den Zustand des folgenden Eingabeparameters:

Während der Ausführung dieses Operators muss der Zugriff auf den Wert dieses Parameters synchronisiert werden, wenn er über mehrere Threads hinweg verwendet wird.

Parameter

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel (input_control, Zustand wird modifiziert)  texture_inspection_model(-array) HTextureInspectionModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Texturinspektionsmodells.

IndicesIndicesIndicesIndicesindices (input_control)  integer-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Indices der Bilder, die aus dem Texturinspektionsmodell entfernt werden sollen.

RemainingIndicesRemainingIndicesRemainingIndicesRemainingIndicesremainingIndices (output_control)  integer-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Indices der Bilder, die weiterhin vom Texturinspektionsmodell verwendet werden.

Beispiel (HDevelop)

* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* Read and add training images
read_image (TrainImage, 'carpet/carpet_01')
add_texture_inspection_model_image (TrainImage, TextureInspectionModel, \
                                    Indices)
* Get added training images
get_texture_inspection_model_image (TrainImageOut, TextureInspectionModel)
* Remove training images
remove_texture_inspection_model_image (TextureInspectionModel, Indices, \
                                       RemainingIndices)

Ergebnis

Sind die Parameterwerte korrekt, dann liefert remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModel

Siehe auch

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel, clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModelClearTextureInspectionModel, set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam, get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam, add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImage

Modul

Matching