pytorch implementation of histogram matching
Project description
pytorch-histogram-matching
Installation
pip install pytorch_histogram_matching
Usage
from pytorch_histogram_matching import Histogram_Matching
import torch
dst = torch.randint(0, 256, (4, 3, 512,512)).cuda() / 255.
ref = torch.randint(0, 256, (4, 3, 512,512)).cuda() / 255.
HM = Histogram_Matching()
rst = HM(dst, ref)
Test
python test.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pytorch_histogram_matching-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6da2064012ee56fa669b47d43474c50b7fc0c9c8538e3acb33ad4397213398 |
|
MD5 | 17778d7ea625a9a0f5048f396471c3af |
|
BLAKE2b-256 | 618b77f34824572f3188f5e1193ac3c483101efd42a487b57837b9d0a1df65f2 |