等しいBBS掲示板である
このサイトパクリだなそうに決まってる
|
人は等しい11月11日
|
#include "AEConfig.h"
#include "entry.h" #include "AEFX_SuiteHelper.h" #include "AEGP_SuiteHandler.h" #define PLUGIN_NAME "Custom Threshold" #define PARAM_COLOR 0 #define PARAM_THRESHOLD 1 #define NUM_PARAMS 2 static PF_Err ParamsSetup(PF_InData* in_data, PF_OutData* out_data) { PF_ParamDef def; AEFX_CLR_STRUCT(def); // 色選択 def.param_type = PF_Param_COLOR; def.uu.name = "Threshold Color"; def.u.cd.value.red = 255; def.u.cd.value.green = 255; def.u.cd.value.blue = 255; out_data->params[PARAM_COLOR] = def; // 閾値調整 def.param_type = PF_Param_FLOAT_SLIDER; def.uu.name = "Threshold Level"; def.u.fs_d.value = 128; def.u.fs_d.valid_min = 0; def.u.fs_d.valid_max = 255; out_data->params[PARAM_THRESHOLD] = def; return PF_Err_NONE; } static PF_Err Render(PF_InData* in_data, PF_OutData* out_data, PF_ParamDef* params[], PF_LayerDef* input, PF_LayerDef* output) { PF_Pixel* in_pixel, * out_pixel; PF_Pixel threshold_color = params[PARAM_COLOR]->u.cd.value; PF_FpShort threshold = params[PARAM_THRESHOLD]->u.fs_d.value; for (int y = 0; y < input->height; y++) { for (int x = 0; x < input->width; x++) { in_pixel = &((PF_Pixel*)input->data)[y * input->width + x]; out_pixel = &((PF_Pixel*)output->data)[y * output->width + x]; // 二値化処理(例: 色距離が閾値より近いか判定) PF_FpShort diff = abs(in_pixel->red - threshold_color.red) + abs(in_pixel->green - threshold_color.green) + abs(in_pixel->blue - threshold_color.blue); if (diff < threshold) { out_pixel->red = 255; out_pixel->green = 255; out_pixel->blue = 255; } else { out_pixel->red = 0; out_pixel->green = 0; out_pixel->blue = 0; } } } return PF_Err_NONE; } // メイン関数 DllExport PF_Err EntryPointFunc(PF_InData* in_data, PF_OutData* out_data, PF_ParamDef* params[], PF_LayerDef* input, PF_LayerDef* output) { return Render(in_data, out_data, params, input, output); } |
は未だ
|
あああ
|
液状化現象
|
せっくす☆
[10] お名前ドットコム > 開示だな (2025年11月07日 (金) 20時08分)
|
test
[2] 野獣Mania > ワイはヒカキンやでw (2025年05月05日 (月) 22時23分)
|