Giter Club home page Giter Club logo

pfcm's Introduction

ERP-CMP

EquiRectangular - CubeMap Projections


cmpToErp :

getErpPatch(campFaces)

CubeMap Projection to EquiRectangular Projection

Parameters:
  • cmpFaces : CubeMap Projected Faces (OpenCV BGR Format): front, right, back, left, top, bottom with shape : [6, H, W, 3]
Returns:
  • erpPatch : Equirectangular Projected Image with shape : [H, W*2, 3]

erpToCmp :

getCmpFaces(erpPatch, H=None, W=None)

EquiRectangular Projection to CubeMap Projection Function

Parameters:
  • erpPatch : Equirectangular Projected Image (OpenCV BGR Format)
  • H : Height of CMP Faces (default : erpPatch.shape[0] // 2)
  • W : Width of CMP Faces (default : erpPatch.shape[1] // 4)
Returns:
  • cmpFaces : CubeMap Projected Faces: front, right, back, left, top, bottom with shape : [6, H, W, 3]

References

  1. https://github.com/rayryeng/cubic2equi/blob/master/cubic2equi.m
  2. https://github.com/pepepor123/equirectangular-to-cubemap

pfcm's People

Contributors

ibradje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lzl4525 sinhmd

pfcm's Issues

Add epsilon to avoid divide by 0

It would be good to add a small number like epsilon = 0.000000001 or something to the pdistfcm function and whenever you have a denominator that could be 0.

def pdistfcm(cntr, data):
    out = np.zeros(shape=(cntr.shape[0], data.shape[0]))
    for k in range(cntr.shape[0]):
        out[k] = np.sqrt(np.sum((np.power(data-cntr[k], 2)).T, axis=0)) + 0.000000000001 #add eps to avoid divide by 0
    return out

gpu acceleration

Hello,

First of all, thank you very much for sharing this project. Just one suggestion: could you transform your project to large scale kmeans with GPU capacity? I think it will be quicker when we choose a big number of clusters. What do you think?

Reference:
https://github.com/src-d/kmcuda

Brain MRI Segmentation

Hi, thank you for sharing. What should I change with these codes if I want to segment such a brain MRI (181*217, bmp)which is shown as follow? Looking forward to your reply. Thanks.

781

Typo in equation for U update

Equation 21 in the PFCM paper has an exponent of 2/(m-1) which SHOULD correspond to 2/(expo-1), but you have 2/(nc-1) in the code. I believe this is a typo in both the predict and pfcm functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.