Home
last modified time | relevance | path

Searched refs:segmentation (Results 1 – 25 of 212) sorted by relevance

123456789

/external/libtextclassifier/native/utils/sentencepiece/
Dencoder.cc30 std::vector<SegmentationEntry> segmentation( in Encode() local
35 if (i > 0 && segmentation[i].previous_pos < 0) { in Encode()
43 const float unknown_penalty = segmentation[i].score + unknown_score_; in Encode()
44 if (segmentation[pos].previous_pos < 0 || in Encode()
45 segmentation[pos].score < unknown_penalty) { in Encode()
47 if (segmentation[i].piece_id == unknown_code_) { in Encode()
48 segmentation[pos] = {/*score=*/unknown_penalty, in Encode()
49 /*previous_pos=*/segmentation[i].previous_pos, in Encode()
51 /*num_pieces=*/segmentation[i].num_pieces}; in Encode()
53 segmentation[pos] = {/*score=*/unknown_penalty, in Encode()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_segmentation.h21 void vp9_enable_segmentation(struct segmentation *seg);
22 void vp9_disable_segmentation(struct segmentation *seg);
24 void vp9_disable_segfeature(struct segmentation *seg, int segment_id,
26 void vp9_clear_segdata(struct segmentation *seg, int segment_id,
29 void vp9_psnr_aq_mode_setup(struct segmentation *seg);
32 struct segmentation *seg);
44 void vp9_set_segment_data(struct segmentation *seg, signed char *feature_data,
49 void vp9_reset_segment_features(struct segmentation *seg);
Dvp9_segmentation.c22 void vp9_enable_segmentation(struct segmentation *seg) { in vp9_enable_segmentation()
28 void vp9_disable_segmentation(struct segmentation *seg) { in vp9_disable_segmentation()
34 void vp9_set_segment_data(struct segmentation *seg, signed char *feature_data, in vp9_set_segment_data()
40 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, in vp9_disable_segfeature()
45 void vp9_clear_segdata(struct segmentation *seg, int segment_id, in vp9_clear_segdata()
50 void vp9_psnr_aq_mode_setup(struct segmentation *seg) { in vp9_psnr_aq_mode_setup()
64 struct segmentation *seg) { in vp9_perceptual_aq_mode_setup()
243 struct segmentation *seg = &cm->seg; in vp9_choose_segmap_coding_method()
318 void vp9_reset_segment_features(struct segmentation *seg) { in vp9_reset_segment_features()
/external/tflite-support/tensorflow_lite_support/examples/task/vision/desktop/
Dimage_segmenter_demo.cc69 const Segmentation& segmentation = result.segmentation(0); in EncodeMaskToPngFile() local
72 reinterpret_cast<const uint8*>(segmentation.category_mask().data()); in EncodeMaskToPngFile()
76 malloc(segmentation.width() * segmentation.height() * 3 * sizeof(uint8))); in EncodeMaskToPngFile()
78 .width = segmentation.width(), in EncodeMaskToPngFile()
79 .height = segmentation.height(), in EncodeMaskToPngFile()
83 for (int i = 0; i < segmentation.width() * segmentation.height(); ++i) { in EncodeMaskToPngFile()
85 segmentation.colored_labels(raw_mask[i]); in EncodeMaskToPngFile()
108 const Segmentation& segmentation = result.segmentation(0); in DisplayColorLegend() local
109 const int num_labels = segmentation.colored_labels_size(); in DisplayColorLegend()
114 segmentation.colored_labels(index); in DisplayColorLegend()
DREADME.md123 * a TFLite image segmentation model (e.g. [deeplab_v3][3], a generic
124 segmentation model available on TensorFlow Hub),
125 * a PNG, JPEG or GIF image to run segmentation on, e.g.:
139 # Run the segmentation tool:
145 --output_mask_png=/tmp/segmentation-output.png
153 Category mask saved to: /tmp/segmentation-output.png
174 And `/tmp/segmentation-output.jpg` should contain the segmentation mask:
176 ![segmentation-output](g3doc/segmentation-output.png)
/external/rust/crates/unicode-segmentation/
DREADME.md4 …ttps://travis-ci.org/unicode-rs/unicode-segmentation.svg)](https://travis-ci.org/unicode-rs/unicod…
6 [Documentation](https://unicode-rs.github.io/unicode-segmentation/unicode_segmentation/index.html)
31 unicode-segmentation does not depend on libstd, so it can be used in crates
41 unicode-segmentation = "1.7.1"
52 * [#87](https://github.com/unicode-rs/unicode-segmentation/pull/87) Upgrade to Unicode 13
53 * [#79](https://github.com/unicode-rs/unicode-segmentation/pull/79) Implement a special-case lookup…
54 * [#77](https://github.com/unicode-rs/unicode-segmentation/pull/77) Optimization for grapheme itera…
58 * [#72](https://github.com/unicode-rs/unicode-segmentation/pull/72) Upgrade to Unicode 12
62 * [#68](https://github.com/unicode-rs/unicode-segmentation/pull/68) Upgrade to Unicode 11
66 * [#56](https://github.com/unicode-rs/unicode-segmentation/pull/56) Upgrade to Unicode 10
[all …]
DMETADATA1 name: "unicode-segmentation"
6 value: "https://crates.io/crates/unicode-segmentation"
10 value: "https://static.crates.io/crates/unicode-segmentation/unicode-segmentation-1.7.1.crate"
DCargo.toml.orig3 name = "unicode-segmentation"
7 homepage = "https://github.com/unicode-rs/unicode-segmentation"
8 repository = "https://github.com/unicode-rs/unicode-segmentation"
9 documentation = "https://unicode-rs.github.io/unicode-segmentation"
DCargo.toml14 name = "unicode-segmentation"
19 homepage = "https://github.com/unicode-rs/unicode-segmentation"
20 documentation = "https://unicode-rs.github.io/unicode-segmentation"
24 repository = "https://github.com/unicode-rs/unicode-segmentation"
/external/libaom/libaom/av1/common/
Dseg_common.h39 struct segmentation { struct
62 static INLINE int segfeature_active(const struct segmentation *seg, in segfeature_active() argument
68 static INLINE void segfeatures_copy(struct segmentation *dst, in segfeatures_copy()
69 const struct segmentation *src) { in segfeatures_copy()
81 void av1_clearall_segfeatures(struct segmentation *seg);
83 void av1_enable_segfeature(struct segmentation *seg, int segment_id,
86 void av1_calculate_segdata(struct segmentation *seg);
92 void av1_set_segdata(struct segmentation *seg, int segment_id,
95 static INLINE int get_segdata(const struct segmentation *seg, int segment_id, in get_segdata()
Dseg_common.c37 void av1_clearall_segfeatures(struct segmentation *seg) { in av1_clearall_segfeatures()
42 void av1_calculate_segdata(struct segmentation *seg) { in av1_calculate_segdata()
55 void av1_enable_segfeature(struct segmentation *seg, int segment_id, in av1_enable_segfeature()
79 void av1_set_segdata(struct segmentation *seg, int segment_id, in av1_set_segdata()
/external/libvpx/libvpx/vp9/common/
Dvp9_seg_common.h37 struct segmentation { struct
52 static INLINE int segfeature_active(const struct segmentation *seg, in segfeature_active() argument
58 void vp9_clearall_segfeatures(struct segmentation *seg);
60 void vp9_enable_segfeature(struct segmentation *seg, int segment_id,
67 void vp9_set_segdata(struct segmentation *seg, int segment_id,
70 static INLINE int get_segdata(const struct segmentation *seg, int segment_id, in get_segdata()
Dvp9_seg_common.c28 void vp9_clearall_segfeatures(struct segmentation *seg) { in vp9_clearall_segfeatures()
34 void vp9_enable_segfeature(struct segmentation *seg, int segment_id, in vp9_enable_segfeature()
47 void vp9_set_segdata(struct segmentation *seg, int segment_id, in vp9_set_segdata()
/external/libaom/libaom/av1/encoder/
Dsegmentation.h22 void av1_enable_segmentation(struct segmentation *seg);
23 void av1_disable_segmentation(struct segmentation *seg);
25 void av1_disable_segfeature(struct segmentation *seg, int segment_id,
27 void av1_clear_segdata(struct segmentation *seg, int segment_id,
Dsegmentation.c22 void av1_enable_segmentation(struct segmentation *seg) { in av1_enable_segmentation()
29 void av1_disable_segmentation(struct segmentation *seg) { in av1_disable_segmentation()
36 void av1_disable_segfeature(struct segmentation *seg, int segment_id, in av1_disable_segfeature()
41 void av1_clear_segdata(struct segmentation *seg, int segment_id, in av1_clear_segdata()
173 struct segmentation *seg = &cm->seg; in av1_choose_segmap_coding_method()
244 struct segmentation *seg = &cm->seg; in av1_reset_segment_features()
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/segmenter/
Dimage_segmenter_jni.cc100 const Segmentation& segmentation = results.segmentation(0); in ConvertToSegmentationResults() local
103 int shape_array[2] = {segmentation.height(), segmentation.width()}; in ConvertToSegmentationResults()
113 int num_pixels = segmentation.height() * segmentation.width(); in ConvertToSegmentationResults()
114 if (segmentation.has_category_mask()) { in ConvertToSegmentationResults()
117 reinterpret_cast<const jbyte*>(segmentation.category_mask().data()), in ConvertToSegmentationResults()
123 segmentation.confidence_masks().confidence_mask()) { in ConvertToSegmentationResults()
143 for (const auto& colored_label : segmentation.colored_labels()) { in ConvertToSegmentationResults()
/external/tensorflow/tensorflow/lite/g3doc/models/segmentation/
Doverview.md3 Image segmentation is the process of partitioning a digital image into multiple
4 segments (sets of pixels, also known as image objects). The goal of segmentation
8 The following image shows the output of the image segmentation model on Android.
11 <img src="images/segmentation.gif" class="attempt-right" />
21 to integrate image segmentation models within just a few lines of code. You can
40 APIs</a>, you can download our starter image segmentation model.
47 _DeepLab_ is a state-of-art deep learning model for semantic image segmentation,
53 Semantic image segmentation predicts whether each pixel of an image is
65 …pLabv3 to include a simple yet effective decoder module to refine the segmentation results especia…
113 …<li><a href="https://ai.googleblog.com/2018/03/semantic-image-segmentation-with.html">Semantic Ima…
/external/libgav1/libgav1/src/tile/bitstream/
Dmode_info.cc229 frame_header_.segmentation.last_active_segment_id + 1); in ReadSegmentId()
232 bp.segment_id > frame_header_.segmentation.last_active_segment_id) { in ReadSegmentId()
236 encoded_segment_id, frame_header_.segmentation.last_active_segment_id, in ReadSegmentId()
245 if (!frame_header_.segmentation.enabled) { in ReadIntraSegmentId()
254 if (frame_header_.segmentation.segment_id_pre_skip && in ReadSkip()
255 frame_header_.segmentation.FeatureActive(bp.segment_id, in ReadSkip()
274 frame_header_.segmentation.FeatureActive(bp.segment_id, in ReadSkipMode()
276 frame_header_.segmentation.FeatureActive(bp.segment_id, in ReadSkipMode()
278 frame_header_.segmentation.FeatureActive(bp.segment_id, in ReadSkipMode()
448 if (frame_header_.segmentation.lossless[bp.segment_id]) { in ReadPredictionModeUV()
[all …]
/external/libvpx/libvpx/test/
Dtest-data.sha161 17fbfe2fea70f6e2f3fa6ca4efaae6c0b03b5f02 *vp80-03-segmentation-01.ivf
62 3c3600dbbcde08e20d54c66fe3b7eadd4f09bdbb *vp80-03-segmentation-02.ivf
63 c156778d5340967d4b369c490848076e92f1f875 *vp80-03-segmentation-03.ivf
64 d25dcff6c60e87a1af70945b8911b6b4998533b0 *vp80-03-segmentation-04.ivf
65 362baba2ce454c9db21218f35e81c27a5ed0b730 *vp80-03-segmentation-1401.ivf
66 d223ae7ee748ce07e74c4679bfd219e84aa9f4b0 *vp80-03-segmentation-1403.ivf
67 033adf7f3a13836a3f1cffcb87c1972900f2b5c6 *vp80-03-segmentation-1407.ivf
68 4d51dfbf9f3e2c590ec99d1d6f59dd731d04375f *vp80-03-segmentation-1408.ivf
69 f37a62b197c2600d75e0ccfbb31b60efdedac251 *vp80-03-segmentation-1409.ivf
70 eb25bd7bfba5b2f6935018a930f42d123b1e7fcd *vp80-03-segmentation-1410.ivf
[all …]
Dtest-data.mk84 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-01.ivf
85 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-01.ivf.md5
86 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-02.ivf
87 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-02.ivf.md5
88 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-03.ivf
89 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-03.ivf.md5
90 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-04.ivf
91 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-04.ivf.md5
92 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-1401.ivf
93 LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER) += vp80-03-segmentation-1401.ivf.md5
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/
Dimage_segmenter.cc326 Segmentation* segmentation = result.add_segmentation(); in Postprocess() local
327 *segmentation->mutable_colored_labels() = {colored_labels_.begin(), in Postprocess()
347 segmentation->set_width(mask_dimension.width); in Postprocess()
348 segmentation->set_height(mask_dimension.height); in Postprocess()
355 auto* category_mask = segmentation->mutable_category_mask(); in Postprocess()
387 auto* confidence_masks = segmentation->mutable_confidence_masks(); in Postprocess()
391 for (int mask_y = 0; mask_y < segmentation->height(); ++mask_y) { in Postprocess()
392 for (int mask_x = 0; mask_x < segmentation->width(); ++mask_x) { in Postprocess()
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dimage_segmenter.md9 [introduction of image segmentation](../../models/segmentation/overview.md) for
32 …[pretrained image segmentation models on TensorFlow Hub](https://tfhub.dev/tensorflow/collections/…
105 Here is an example of the segmentation results of
107 generic segmentation model available on TensorFlow Hub.
132 The segmentation category mask should looks like:
134 <img src="images/segmentation-output.png" alt="segmentation-output" width="30%">
157 dimensions of the segmentation masks produced by the model, and
/external/tflite-support/tensorflow_lite_support/cc/task/vision/proto/
Dsegmentations.proto20 // Results of performing image segmentation.
23 // segmentation models, which may return one segmentation per object.
25 repeated Segmentation segmentation = 1; field
40 // class (e.g. a sky segmentation model) which turns into a single confidence
46 // IMPORTANT: segmentation masks are not direcly suited for display, in
/external/libgav1/libgav1/src/
Dbuffer_pool.cc101 Segmentation* segmentation) const { in GetSegmentationParameters()
102 CopySegmentationParameters(/*from=*/segmentation_, /*to=*/segmentation); in GetSegmentationParameters()
106 const Segmentation& segmentation) { in SetSegmentationParameters() argument
107 CopySegmentationParameters(/*from=*/segmentation, /*to=*/&segmentation_); in SetSegmentationParameters()
Dobu_parser.cc988 Segmentation* const segmentation = &frame_header_.segmentation; in ParseSegmentationParameters() local
990 segmentation->enabled = static_cast<bool>(scratch); in ParseSegmentationParameters()
991 if (!segmentation->enabled) return true; in ParseSegmentationParameters()
993 segmentation->update_map = true; in ParseSegmentationParameters()
994 segmentation->update_data = true; in ParseSegmentationParameters()
997 segmentation->update_map = static_cast<bool>(scratch); in ParseSegmentationParameters()
998 if (segmentation->update_map) { in ParseSegmentationParameters()
1000 segmentation->temporal_update = static_cast<bool>(scratch); in ParseSegmentationParameters()
1003 segmentation->update_data = static_cast<bool>(scratch); in ParseSegmentationParameters()
1004 if (!segmentation->update_data) { in ParseSegmentationParameters()
[all …]

123456789