javascript - How can I display and save the input/result image? -


i have following code i'm running using node.js. in code, histogram equalization process has been made. how can display , save both original image , result (histogram equalized) image?

var jsfeat = require('./build/jsfeat.js'); var im = require('imagemagick'); var cols = 0; var rows = 0; var image = im.identify('abc.jpg', function(err, features){     if (!err){      cols = features.width;     rows = features.height; } });  var my_matrix = new jsfeat.matrix_t(cols, rows, jsfeat.u8_t | jsfeat.c4_t, data_buffer = undefined); var equalization = new jsfeat.matrix_t(cols, rows, jsfeat.u8_t | jsfeat.c4_t); var result = jsfeat.imgproc.equalize_histogram(my_matrix, equalization); 

thanks.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -