Erik Smistad

Erik Smistad

(59 comments, 16 posts)

This user hasn't shared any profile information

Posts by Erik Smistad

Gjenskapingen av Hamar domkirke – Del 1

5

I det obligatoriske faget Eksperter i Team har jeg og en gruppe på 3 andre valgt oppgaven med å gjenskape Hamar domkirke i virtuell virkelighet. Det vil si at vi skal modellere den i 3D på datamaskiner og så plassere den i et 3D landskap. Kirken ble bygget rundt år 1200 og ble rasert i 1567 av svenskene under den nordiske 7 års krigen.


Hamar domkirkeruin

Det eneste som er igjen av kirka idag

Domkirken slik Olaf Nordhagen mente den kunne ha sett ut

Domkirken slik Olaf Nordhagen mente den kunne ha sett ut

Etter andre dag med jobbing har gruppa fått modellert hovedtrekkene til både fase 1 og 2.


Modell av hamar domkirke - del 1

Vår 3D modell laget med programmet 3D studio max


Modell av Hamar domkirke (bakside) - del 1

Sett bakfra

Neste steg er å legge mer detaljer til modellene. Som f.eks. dører, vinduer, takpynt o.l.

Hopfield network

0

This neural network proposed by Hopfield in 1982 can be seen as a network with associative memory and can be used for different pattern recognition problems. This post contains my exam notes for the course TDT4270 Statistical image analysis and learning and explains the network properties, activation and learning algorithm of the Hopfield network.
(more…)

Pseudo-random numbers and sampling from probability distributions

0

One often needs a source of random numbers for use in stochastic simulations. Since a computer is deterministic, it can’t generate real random numbers, unless one happen to have a quantum random generator at hand, like these. But computers can generate sequences of pseudo-random numbers which are deterministic sequences of numbers which has the same statistical properties as sequences of real random numbers. All of the different random functions in various programming languages, like rand() in C, create sequences of pseudo-random numbers. This post contains my exam notes for the course TDT4270 Statistical image analysis and learning and explains how to generate these sequences, what sampling is and how to sample from any probability distribution.

(more…)

Moore Neighbor Contour Tracing Algorithm in C++

7

This post shows the implementation of Moore’s neighbor tracing algorithm in C++. This algorithm performs what is called contour tracing i.e.
tracing the borders or boundaries of, in this case, a binary image. The two images below illustrates what the algorithm does with a pure black and white/binary image.

Picture before running Moore Neighbor Tracing algorithm
Picture before running Moore Neighbor Tracing algorithm

(more…)

How to restrict user access to content in folders using PHP and Apache .htaccess files

4

So I was faced with this problem: I needed to restrict access to content(images, files, documents..) in folders, and normally this is done by using a .htacces and .htpasswd file, but I needed more functionallity than this method provided. This extra functionality could be that you simply have a list of users in a database and want to authenticate and authorize users against this database using PHP. In this entry I explain a method I developed to do exactly this.

(more…)

Fix for HTTP Error when uploading images in WordPress 2.8

1

When installing this wordpress blog I encountered a problem when trying to upload files. When googling the problem I found that some had been trying to mess around with the .htaccess file. I tried that, but it didn’t seem to do the trick for this version of wordpress. So after a while I found a solution which worked on my version of wordpress.
(more…)

Erik Smistad's RSS Feed
Go to Top